Skip to content

The version a run would use

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

Resolves the version a run of this agent would use for a project and segment path: the most specific live version (segment path, project, org, tenant), else the latest registered. A run that names its version, or a follow-up turn in a conversation, isn’t resolved this way.

agentId
required
string

AgentId — dotted namespace (acme.drafting).

projectId
string format: uuid

The run’s project; omit → only the agent’s tenant-wide pin applies.

segment
Array<string>

One step of the segment path, key:value; repeat it in order, coarse to fine.

The resolved version.

Media typeapplication/json
object
agentId
required
string
version
required

The version a run would use (semver).

string
via
required

A live pin chose it, or nothing is live on the way up and it is the latest.

string
Allowed values: live latest
liveScope
One of: discriminator: kind

The agent’s default for the whole tenant.

object
kind
required
string
Allowed values: tenant
Example
{
"via": "live",
"liveScope": {
"kind": "tenant"
}
}

A malformed project id or segment, or a segment without a project.

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"
}
}

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"
}
}

No agent with that id.

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"
}
}