Get an agent definition version
GET /api/agent-definitions/versions/{versionId}
Returns a single agent definition version, including its captured configuration and audit metadata. Version rows are immutable and survive deletion of the parent agent.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique identifier of the version to retrieve.
Responses
Section titled “ Responses ”The version was found and returned.
A single published, superseded, or rejected version of an agent definition. Restoring a version creates a new published version rather than mutating history.
object
Unique identifier for this version row.
Example
v1a2b3c4-5678-9abc-def0-1234567890abThe tenant this version belongs to. Agent versions always belong to a tenant.
Example
a0b1c2d3-4567-89ab-cdef-0123456789abThe agent definition this version belongs to.
Example
ag1a2b3c-5678-9abc-def0-1234567890abMonotonic version number within the agent, starting at 1.
Example
3Lifecycle status of this version. ‘published’ is the currently active version, ‘superseded’ is a former published version, ‘draft’ and ‘pending_review’ are unpublished work, ‘rejected’ was declined in review.
Example
publishedThe change-set session that produced this version, when one applies.
Human-readable agent name captured in this version.
Example
Shipping TrackerAgent description captured in this version.
Example
Looks up shipping status and tracking information.The agent role captured in this version, such as ‘specialist’.
Example
specialistStable slug identifying the agent role.
Example
shipping-trackerThe model identifier captured in this version. Null when the platform default is used.
System prompt captured in this version, when set.
Capabilities the agent requires, captured in this version.
Example
[ "mcp:call"]Custom instructions captured in this version, when set.
Maximum tool-use iterations captured in this version.
Example
6The connection and allowed-tool bindings captured in this version.
object
Reference to a connection.
Example
mc1a2b3c-5678-9abc-def0-1234567890abTool names the agent may call on the connection.
Example
[ "get_shipment_status"]Identifier of the actor who authored this version, or an api-key actor reference when created programmatically.
Example
kp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6dOptional note the author attached to this version.
Example
Corrected the delivery estimate for Germany.How this version was produced. Values include ‘manual’, ‘backfill’, ‘restore’, and ‘sandbox_apply’.
Example
manualThe originating session when this version was produced by an applied change-set.
The conversation that inspired this version, when it originated from a resolved conversation.
The version this one succeeds. Null for the first version.
Timestamp when this version became published. Null while unpublished.
Example
2026-03-15T10:30:00.000ZTimestamp when this version was superseded by a newer one. Null while current.
Timestamp when this version was rejected in review, when applicable.
Reason recorded when the version was rejected in review.
Timestamp when this version row was created.
Example
2026-03-15T10:30:00.000ZTimestamp when this version row was last updated.
Example
2026-03-15T10:30:00.000ZNo agent definition version exists with the given ID in the authenticated tenant.
Standard error response returned by all endpoints on failure.
object
A human-readable error message describing what went wrong.
Example
Conversation not found