Skip to main content
POST
/
api
/
v1
/
prompt-blocks
Create Prompt Block
curl --request POST \
  --url https://api.example.com/api/v1/prompt-blocks
Use this route for editable static prompt blocks. Dynamic prompt blocks are registered in AgentFlow code with @prompt_block.

Request

{
  "name": "account_guidance",
  "description": "Guidance for account analysis.",
  "message": "system",
  "type": "static",
  "mode": "cached",
  "scope": "conversation",
  "tags": ["crm", "guidance"],
  "order": 45,
  "ttl": 1800,
  "agents": ["MainAgent"],
  "body": "When analyzing accounts, prioritize renewal risk and expansion signals.",
  "enabled": true
}

Response

Returns the created prompt block, including body.