Agents · Create an agent
Creates an agent from a title, model and system prompt. Returns its record
including id and slug.
Keep the prompt to the agent’s role and constraints. Detailed behaviour is better attached as a skill than packed into prompt text — skills are separately readable, editable and replaceable.
resource: agent://build-guide covers the build sequence.
Authentication
Header authentication of the form Api-Key <token>
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Provider-qualified model, e.g. openai:gpt-4o-mini. Omit to take the platform default rather than guessing a string.
The agent's standing instructions. Durable behaviour belongs in skills instead — they are editable independently and do not require rewriting the prompt.
draft until you are ready. Only active agents can be run, so a trigger on a draft agent fires and fails.
Built-in tool slugs. Write-only convenience — replaces the whole set, it does not append.
Agent-level flags. allow_skill_override is the one that matters: without it, built-in skills cannot be edited.
Response
The created agent, including its id and generated slug.
