Skip to content

List an agent's live versions

GET
/v1/agents/{agentId}/live-versions
curl --request GET \
--url https://example.com/v1/agents/example/live-versions \
--header 'Authorization: Bearer <token>'

Every scope with a live version pinned, and the promotion that set it.

agentId
required
string

AgentId — dotted namespace (acme.drafting).

The pins.

Media typeapplication/json
object
data
required
Array<object>
object
agentId
required
string
scope
required
One of: discriminator: kind

The agent’s default for the whole tenant.

object
kind
required
string
Allowed values: tenant
version
required
string
promotionId
required

The promotion that set it.

string format: uuid
setAt
required
string format: date-time
Example
{
"data": [
{
"scope": {
"kind": "tenant"
}
}
]
}

Missing / malformed / expired / revoked bearer token.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}