Skip to main content

Create a prompt fragment

POST 

/api/v1/prompt-fragments/create

Creates a reusable template block that profiles include with {{template "fragment_id" .}}. Use it for text repeated across profiles — safety rules, tone, a shared preamble — so editing it once updates every profile that includes it.

fragment_id must be unique within the project.

Request

Responses

Fragment created; the stored record is echoed back