Create agent
Create a new agent in the caller’s workspace. All fields are optional — if
omitted, the server picks an Untitled Agent N name and applies the default
config (default-enabled tools, empty prompt). The created agent is published
as version 1 and ready to run immediately.
Authorizations
Workspace API key issued from the web app. Pass as
Authorization: Bearer YOUR_API_KEY.
Body
All fields are optional. Omitted fields fall back to server defaults:
name → "Untitled Agent N", config → default-enabled tools.
Response
Agent created.
Full agent representation.
ID of this specific version of the agent.
Stable identifier across all versions of this agent. Use this when you need to refer to "the agent" as a logical entity rather than a specific version.
Sequential version number (1, 2, 3 …) within this agent group.
Lifecycle status of an agent version.
draft— work-in-progress, not yet runnable for end userspublished— live, runnablearchived— superseded by a newer version
draft, published, archived Full agent configuration object. Free-form JSON — common keys include
system_prompt, tools, states, milestones, model. Treat unknown
keys as opaque.
Whether this agent can be run. Inactive agents reject runs with 403.