Documentation menu

Agents

7 operations.

MethodEndpointDescription
GET/api/v1/agentsList agents
GET/api/v1/agents/{coordinator}Get agent content
DELETE/api/v1/agents/{coordinator}Delete an agent
GET/api/v1/agents/{coordinator}/metaGet agent metadata
GET/api/v1/agents/{coordinator}/revisionsList all revisions of an agent
GET/api/v1/agents/{coordinator}/revisions/{revisionId}Get an immutable agent revision
POST/api/v1/agents/pushPush (create or extend) an agent revision

List agents

GET /api/v1/agents

List agents owned by the authenticated organization.

Query Parameters

  • filter: Filter by Agent name or slug (partial match, case-insensitive)
  • limit: Maximum results (default 20)
  • cursor: Opaque cursor returned in pagination.nextCursor.

Parameters

query

NameTypeRequiredDescription
filterstringoptionalFilters agents using the server-side agent search expression. Applies to List agents.
projectIdstringoptionalFilters results to the specified Project. Applies to List agents.
limitintegeroptionalSets the maximum number of resources returned in this page. Applies to List agents.
cursorstringoptionalOpaque cursor returned by the previous page; omit it to read the first page. Applies to List agents.

Responses

StatusDescriptionBody
200Response for status 200application/json — object — agents: array<one of 2 types> (required); pagination: object (required)
400The request is malformed or cannot be processed.application/json — PublicApiError — error: object (required)
401Authentication failed. The Authorization header is missing, or the credential is invalid or expired.application/json — PublicApiError — error: object (required)
403Access denied. The authenticated user does not have permission to perform this action.application/json — PublicApiError — error: object (required)
404Resource not found.application/json — PublicApiError — error: object (required)
409Request conflicts with current state of the resource, including safe deployment conflict classifications.application/json — PublicApiError — error: object (required)
422Request validation failed. Check the request body, query parameters, or path parameters.application/json — PublicApiError — error: object (required)
429Too many requests. The code foreign_resource_rate_limited means the caller made too many requests for Projects outside its reach: correct the Project id instead of retrying.application/json — PublicApiError — error: object (required)
500The server could not complete the request.application/json — PublicApiError — error: object (required)
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.application/json — PublicApiError — error: object (required)

Get agent content

GET /api/v1/agents/{coordinator}

Get agent content by canonical key. Public reads use the current published revision; authenticated execution reads use the revision captured when execution started.

Path Format

  • /api/v1/agents/:coordinator — coordinator agent

Access

Project Agent reads require an exact Agent and Environment coordinate in the authenticated organization. System Agent reads resolve the active publication by slug and require no Environment selector.

Parameters

path

NameTypeRequiredDescription
coordinatorstringrequiredIdentifies the coordinator agent by its canonical name. Applies to Get agent content.

query

NameTypeRequiredDescription
agentIdstringoptionalSelects the Project Agent by its stable identifier. Applies to Get agent content.
environmentIdstringoptionalSelects the active Project environment coordinate. Applies to Get agent content.

Responses

StatusDescriptionBody
200Response for status 200application/json — object — data: object (required)
400The request is malformed or cannot be processed.application/json — PublicApiError — error: object (required)
401Authentication failed. The Authorization header is missing, or the credential is invalid or expired.application/json — PublicApiError — error: object (required)
403Access denied. The authenticated user does not have permission to perform this action.application/json — PublicApiError — error: object (required)
404Resource not found.application/json — PublicApiError — error: object (required)
409Request conflicts with current state of the resource, including safe deployment conflict classifications.application/json — PublicApiError — error: object (required)
422Request validation failed. Check the request body, query parameters, or path parameters.application/json — PublicApiError — error: object (required)
429Too many requests. The code foreign_resource_rate_limited means the caller made too many requests for Projects outside its reach: correct the Project id instead of retrying.application/json — PublicApiError — error: object (required)
500The server could not complete the request.application/json — PublicApiError — error: object (required)
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.application/json — PublicApiError — error: object (required)

Delete an agent

DELETE /api/v1/agents/{coordinator}

Begin deletion of an Agent using its resolved immutable revision as the concurrency coordinate. Dependent-row cleanup is performed separately.

Path Format

  • /api/v1/agents/:coordinator

Requirements

  • Project Agents: authorized project member.
  • System Agents: service-admin only.
  • A 409 is returned if the Agent changed during deletion.

Parameters

path

NameTypeRequiredDescription
coordinatorstringrequiredIdentifies the coordinator agent by its canonical name. Applies to Delete an agent.

query

NameTypeRequiredDescription
agentIdstringoptionalSelects the Project Agent by its stable identifier. Applies to Delete an agent.
environmentIdstringoptionalSelects the active Project environment coordinate. Applies to Delete an agent.

Responses

StatusDescriptionBody
200Response for status 200application/json — object — data: object (required)
400The request is malformed or cannot be processed.application/json — PublicApiError — error: object (required)
401Authentication failed. The Authorization header is missing, or the credential is invalid or expired.application/json — PublicApiError — error: object (required)
403Access denied. The authenticated user does not have permission to perform this action.application/json — PublicApiError — error: object (required)
404Resource not found.application/json — PublicApiError — error: object (required)
409Request conflicts with current state of the resource, including safe deployment conflict classifications.application/json — PublicApiError — error: object (required)
422Request validation failed. Check the request body, query parameters, or path parameters.application/json — PublicApiError — error: object (required)
429Too many requests. The code foreign_resource_rate_limited means the caller made too many requests for Projects outside its reach: correct the Project id instead of retrying.application/json — PublicApiError — error: object (required)
500The server could not complete the request.application/json — PublicApiError — error: object (required)
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.application/json — PublicApiError — error: object (required)

Get agent metadata

GET /api/v1/agents/{coordinator}/meta

Get agent owner and revision metadata (owner-only). Public reads use the current published revision; authenticated execution reads use the revision captured when execution started.

Path Format

  • /api/v1/agents/:coordinator/meta

Access

Owner-only: the agent owner must belong to the authenticated organization.

Parameters

path

NameTypeRequiredDescription
coordinatorstringrequiredIdentifies the coordinator agent by its canonical name. Applies to Get agent metadata.

query

NameTypeRequiredDescription
agentIdstringoptionalSelects the Project Agent by its stable identifier. Applies to Get agent metadata.
environmentIdstringoptionalSelects the active Project environment coordinate. Applies to Get agent metadata.

Responses

StatusDescriptionBody
200Response for status 200application/json — object — data: object (required)
400The request is malformed or cannot be processed.application/json — PublicApiError — error: object (required)
401Authentication failed. The Authorization header is missing, or the credential is invalid or expired.application/json — PublicApiError — error: object (required)
403Access denied. The authenticated user does not have permission to perform this action.application/json — PublicApiError — error: object (required)
404Resource not found.application/json — PublicApiError — error: object (required)
409Request conflicts with current state of the resource, including safe deployment conflict classifications.application/json — PublicApiError — error: object (required)
422Request validation failed. Check the request body, query parameters, or path parameters.application/json — PublicApiError — error: object (required)
429Too many requests. The code foreign_resource_rate_limited means the caller made too many requests for Projects outside its reach: correct the Project id instead of retrying.application/json — PublicApiError — error: object (required)
500The server could not complete the request.application/json — PublicApiError — error: object (required)
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.application/json — PublicApiError — error: object (required)

List all revisions of an agent

GET /api/v1/agents/{coordinator}/revisions

Retrieve all revisions of an agent (owner-only).

Path Format

  • /api/v1/agents/:coordinator/revisions

Access

Owner-only: the agent owner must belong to the authenticated organization.

Pagination

  • limit: Number of revisions to return (1-100, default 20).
  • cursor: Opaque cursor returned in pagination.nextCursor; omit it for the first page.
  • A non-null pagination.nextCursor indicates another page is available.

Parameters

path

NameTypeRequiredDescription
coordinatorstringrequiredIdentifies the coordinator agent by its canonical name. Applies to List all revisions of an agent.

query

NameTypeRequiredDescription
agentIdstringoptionalSelects the Project Agent by its stable identifier. Applies to List all revisions of an agent.
environmentIdstringoptionalSelects the active Project environment coordinate. Applies to List all revisions of an agent.
limitintegeroptionalSets the maximum number of resources returned in this page. Applies to List all revisions of an agent.
cursorstringoptionalOpaque cursor returned by the previous page; omit it to read the first page. Applies to List all revisions of an agent.

Responses

StatusDescriptionBody
200Response for status 200application/json — object — revisions: array<AgentRevision> (required); pagination: object (required)
400The request is malformed or cannot be processed.application/json — PublicApiError — error: object (required)
401Authentication failed. The Authorization header is missing, or the credential is invalid or expired.application/json — PublicApiError — error: object (required)
403Access denied. The authenticated user does not have permission to perform this action.application/json — PublicApiError — error: object (required)
404Resource not found.application/json — PublicApiError — error: object (required)
409Request conflicts with current state of the resource, including safe deployment conflict classifications.application/json — PublicApiError — error: object (required)
422Request validation failed. Check the request body, query parameters, or path parameters.application/json — PublicApiError — error: object (required)
429Too many requests. The code foreign_resource_rate_limited means the caller made too many requests for Projects outside its reach: correct the Project id instead of retrying.application/json — PublicApiError — error: object (required)
500The server could not complete the request.application/json — PublicApiError — error: object (required)
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.application/json — PublicApiError — error: object (required)

Get an immutable agent revision

GET /api/v1/agents/{coordinator}/revisions/{revisionId}

Get the exact authenticated owner revision identified by the URL. This endpoint does not resolve the owner's latest revision and does not merge delegate revisions.

Parameters

path

NameTypeRequiredDescription
coordinatorstringrequiredIdentifies the coordinator agent by its canonical name. Applies to Get an immutable agent revision.
revisionIdstringrequiredIdentifies the immutable agent revision being addressed. Applies to Get an immutable agent revision.

query

NameTypeRequiredDescription
agentIdstringoptionalSelects the Project Agent by its stable identifier. Applies to Get an immutable agent revision.
environmentIdstringoptionalSelects the active Project environment coordinate. Applies to Get an immutable agent revision.

Responses

StatusDescriptionBody
200Response for status 200application/json — object — data: object (required)
400The request is malformed or cannot be processed.application/json — PublicApiError — error: object (required)
401Authentication failed. The Authorization header is missing, or the credential is invalid or expired.application/json — PublicApiError — error: object (required)
403Access denied. The authenticated user does not have permission to perform this action.application/json — PublicApiError — error: object (required)
404Resource not found.application/json — PublicApiError — error: object (required)
409Request conflicts with current state of the resource, including safe deployment conflict classifications.application/json — PublicApiError — error: object (required)
422Request validation failed. Check the request body, query parameters, or path parameters.application/json — PublicApiError — error: object (required)
429Too many requests. The code foreign_resource_rate_limited means the caller made too many requests for Projects outside its reach: correct the Project id instead of retrying.application/json — PublicApiError — error: object (required)
500The server could not complete the request.application/json — PublicApiError — error: object (required)
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.application/json — PublicApiError — error: object (required)

Push (create or extend) an agent revision

POST /api/v1/agents/push

Creates one immutable Project Agent revision or publishes one System Agent revision. Project authoring requires explicit projectId and agentId coordinates; it does not deploy or activate an Environment. Delegate edges must reference explicit canonical revision pins. When Idempotency-Key is supplied, retries with the same payload replay the completed response; reusing it with a different payload returns 409.

Parameters

header

NameTypeRequiredDescription
Idempotency-Keystringoptional

Request body

Required — Request body for: Push (create or extend) an agent revision.

application/json

Alternative 1
NameTypeRequiredDescription
scopeKeystringrequired
createOnlybooleanoptional
agentKind"system"required
agentIdunknownoptional
environmentIdunknownoptional
projectIdunknownoptional
agentsobjectrequired
Alternative 2
NameTypeRequiredDescription
scopeKeystringrequired
createOnlybooleanoptional
agentKind"project"required
agentIdstringrequired
projectIdstringrequired
agentsobjectrequired

Responses

StatusDescriptionBody
200Response for status 200application/json — object — data: one of 2 types (required)
400The request is malformed or cannot be processed.application/json — PublicApiError — error: object (required)
401Authentication failed. The Authorization header is missing, or the credential is invalid or expired.application/json — PublicApiError — error: object (required)
403Access denied. The authenticated user does not have permission to perform this action.application/json — PublicApiError — error: object (required)
404Resource not found.application/json — PublicApiError — error: object (required)
409Request conflicts with current state of the resource, including safe deployment conflict classifications.application/json — PublicApiError — error: object (required)
422Request validation failed. Check the request body, query parameters, or path parameters.application/json — PublicApiError — error: object (required)
429Too many requests. The code foreign_resource_rate_limited means the caller made too many requests for Projects outside its reach: correct the Project id instead of retrying.application/json — PublicApiError — error: object (required)
500The server could not complete the request.application/json — PublicApiError — error: object (required)
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.application/json — PublicApiError — error: object (required)