List an agent's live versions
GET
/v1/agents/{agentId}/live-versions
const url = 'https://example.com/v1/agents/example/live-versions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”agentId
required
string
AgentId — dotted namespace (acme.drafting).
Responses
Section titled “Responses”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
An org’s projects.
object
kind
required
string
orgId
required
string format: uuid
One project.
object
kind
required
string
projectId
required
string format: uuid
A segment path within a project: it covers every run whose path starts with it.
object
kind
required
string
projectId
required
string format: uuid
path
required
Array<object>
object
key
required
Lowercase, like an identifier: company, contact-role.
string
value
required
string
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" }}