- Draft — editable. Push configuration to it as often as you like.
- Published — frozen. Exactly one published version is the agent’s live version, the one conversations run against.
- Archived — retired from everyday use.
Create a draft version
cURL
POST /management/v1/agents/{agentId}/versions
Where the draft starts from:
empty, template, or version (clone an
existing version).Required when
source is version — the version to clone.Required when
source is template.Free-form label for your own bookkeeping.
Free-form tags.
Notes shown alongside the version.
List versions
GET /management/v1/agents/{agentId}/versions
Lists the agent’s versions as a paginated
list, filterable by:
draft, published, archived.Partial match on the version tag (e.g.
v3).Exact match.
Partial match on the label.
Only return base versions (revision 0).
Update a version
PATCH /management/v1/agents/{agentId}/versions/{versionId}
Updates a version’s metadata — label, tags, notes. The configuration
itself changes through push, never here.
Publish a version
POST /management/v1/agents/{agentId}/versions/{versionId}/publish
Makes this version the agent’s live version. One verb covers the whole
story:
- Publishing a draft freezes it, then makes it live (shipping).
- Publishing an already-published version re-activates it (rolling back or switching).
Archive a version
POST /management/v1/agents/{agentId}/versions/{versionId}/archive
Retires a version from everyday use. The live version can’t be archived —
publish another version first.
Push a configuration bundle
Upload configuration to a version, committing a new revision:cURL
POST /management/v1/agents/{agentId}/versions/{versionId}/push
What is pushing:
agent_builder, ui, or cli.Describe the change (up to 4000 characters).
The versioned agent configuration bundle. Must include
schema_version and
general_settings. The bundle is validated before it’s committed — invalid
configurations return a 422 with field-level details.new_version_tag, revision_id, sha256, size).
Pull a configuration bundle
GET /management/v1/agents/{agentId}/versions/{versionId}/pull
Downloads a version’s configuration bundle — the current revision, or a
specific one:
Revision tag (e.g.
v3.2). Omit for the version’s current tag.