Skip to main content
Besides invoking Experts, you can author and maintain your own through the API.
Create and update both leave the agent in draft. A draft is invocable by its author only, with no review required — build it, call it, iterate, and publish to the marketplace when you’re satisfied.

Create or update a draft

string
required
Agent name. Must be unique among your agents.
string
Agent identifier. Derived from the name when omitted. Passing an existing identifier updates that agent (it must be yours).
string
default:"0.1.0"
Version string.
string
Persona definition (Markdown).
string
Soul content.
string
Agent instruction content.
string
Skill content.
string
Opening message.
object
Sandbox template; same fields as an Environment template.
object[]
Tool configuration.
Other optional fields: description, category, tags, changelog, overview.
curl
The draft is immediately invocable:
curl

Update a draft

Send only the fields you want to change; name and version are carried forward from the current row.

Publish to the marketplace

string
Release version. Defaults to the current version.
string
Release notes.
Publication goes through the platform review gate. The API cannot bypass it.

Other operations

Errors

Next steps

Sessions

Create long-lived sessions and append events

Environments

Define sandbox runtime and dependencies