Skip to main content

Create Prompt

POST 

/v1/prompts/

Creates a prompt for an agent; the provided text becomes the prompt's first version. Returns the full prompt with its enabled version. For a playbook (type "playbook") also pass description — the catalog line the model decides by — and optionally config.crm_fields_conditions for platform auto-enable. The text is validated first: violations (broken Jinja, dynamic parts above the cache breakpoint, .md references, Jinja variables inside a playbook) return HTTP 412 with detail.code prompt_checks_failed and a findings list; resubmit with acknowledged_checks to override non-critical findings.

Request​

Responses​

Successful Response