Documentation menu

Agents

12 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}/delegates/{delegate}Get agent content
DELETE/api/v1/agents/{coordinator}/delegates/{delegate}Delete an agent
GET/api/v1/agents/{coordinator}/delegates/{delegate}/metaGet agent metadata
GET/api/v1/agents/{coordinator}/delegates/{delegate}/revisionsList all revisions of an agent
GET/api/v1/agents/{coordinator}/delegates/{delegate}/revisions/{revisionId}Get an immutable agent revision
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 200
application/json
object
  • agents (required): array<one of 2 types>
  • pagination (required): object
400Invalid request parameters.
application/json
PublicApiError
  • error (required): object
401Authentication required.
application/json
PublicApiError
  • error (required): object
403projectId not in accessible Projects.
application/json
PublicApiError
  • error (required): object
404projectId not found in the organization.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

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
  • /api/v1/agents/:coordinator/delegates/:delegate — delegate 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 200
application/json
getApiV1AgentsByCoordinator
  • data (required): object
400Invalid coordinator or delegate name format.
application/json
PublicApiError
  • error (required): object
401Authentication required.
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Agent not found.
application/json
PublicApiError
  • error (required): object
409The Agent changed concurrently; resolve its active revision and retry.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

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
  • /api/v1/agents/:coordinator/delegates/:delegate

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 200
application/json
object
  • data (required): object
400Invalid coordinator or delegate name format.
application/json
PublicApiError
  • error (required): object
401Authentication failed or access denied.
application/json
PublicApiError
  • error (required): object
403The authenticated credential lacks the required Agent operation permission.
application/json
PublicApiError
  • error (required): object
404Agent not found.
application/json
PublicApiError
  • error (required): object
409Agent changed concurrently; resolve its active revision and retry.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Get agent content

GET/api/v1/agents/{coordinator}/delegates/{delegate}

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
  • /api/v1/agents/:coordinator/delegates/:delegate — delegate 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.
delegatestringrequiredIdentifies the delegate 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 200
application/json
getApiV1AgentsByCoordinatorDelegatesByDelegate
  • data (required): object
400Invalid coordinator or delegate name format.
application/json
PublicApiError
  • error (required): object
401Authentication required.
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Agent not found.
application/json
PublicApiError
  • error (required): object
409The Agent changed concurrently; resolve its active revision and retry.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Delete an agent

DELETE/api/v1/agents/{coordinator}/delegates/{delegate}

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
  • /api/v1/agents/:coordinator/delegates/:delegate

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.
delegatestringrequiredIdentifies the delegate 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 200
application/json
object
  • data (required): object
400Invalid coordinator or delegate name format.
application/json
PublicApiError
  • error (required): object
401Authentication failed or access denied.
application/json
PublicApiError
  • error (required): object
403The authenticated credential lacks the required Agent operation permission.
application/json
PublicApiError
  • error (required): object
404Agent not found.
application/json
PublicApiError
  • error (required): object
409Agent changed concurrently; resolve its active revision and retry.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Get agent metadata

GET/api/v1/agents/{coordinator}/delegates/{delegate}/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
  • /api/v1/agents/:coordinator/delegates/:delegate/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.
delegatestringrequiredIdentifies the delegate 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 200
application/json
object
  • data (required): object
400Invalid coordinator or delegate name.
application/json
PublicApiError
  • error (required): object
401Authentication failed.
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Agent not found or has no revision.
application/json
PublicApiError
  • error (required): object
409The agent changed concurrently; retry the request.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

List all revisions of an agent

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

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

Path Format

  • /api/v1/agents/:coordinator/revisions
  • /api/v1/agents/:coordinator/delegates/:delegate/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.
delegatestringrequiredIdentifies the delegate 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 200
application/json
object
  • revisions (required): array<object>
  • pagination (required): object
400Invalid coordinator or delegate name format.
application/json
PublicApiError
  • error (required): object
401Authentication required.
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Agent not found.
application/json
PublicApiError
  • error (required): object
409The agent changed concurrently; retry the request.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Get an immutable agent revision

GET/api/v1/agents/{coordinator}/delegates/{delegate}/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.
delegatestringrequiredIdentifies the delegate 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 200
application/json
getApiV1AgentsByCoordinatorDelegatesByDelegateRevisionsByRevisionId
  • data (required): object
400Invalid coordinator, delegate, or revision ID format.
application/json
PublicApiError
  • error (required): object
401Authentication required.
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Agent revision not found.
application/json
PublicApiError
  • error (required): object
409The agent changed concurrently; retry the request.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

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
  • /api/v1/agents/:coordinator/delegates/:delegate/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 200
application/json
object
  • data (required): object
400Invalid coordinator or delegate name.
application/json
PublicApiError
  • error (required): object
401Authentication failed.
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Agent not found or has no revision.
application/json
PublicApiError
  • error (required): object
409The agent changed concurrently; retry the request.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

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
  • /api/v1/agents/:coordinator/delegates/:delegate/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 200
application/json
object
  • revisions (required): array<object>
  • pagination (required): object
400Invalid coordinator or delegate name format.
application/json
PublicApiError
  • error (required): object
401Authentication required.
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Agent not found.
application/json
PublicApiError
  • error (required): object
409The agent changed concurrently; retry the request.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

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 200
application/json
getApiV1AgentsByCoordinatorRevisionsByRevisionId
  • data (required): object
400Invalid coordinator, delegate, or revision ID format.
application/json
PublicApiError
  • error (required): object
401Authentication required.
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Agent revision not found.
application/json
PublicApiError
  • error (required): object
409The agent changed concurrently; retry the request.
application/json
PublicApiError
  • error (required): object
422Request validation failed.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

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 200
application/json
object
  • data (required): one of 2 types
400Bad Request
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid credentials
application/json
PublicApiError
  • error (required): object
403Project Agent is not accessible in this Project.
application/json
PublicApiError
  • error (required): object
409Request conflicts with current state of the resource, including safe deployment conflict classifications.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object
503Service temporarily unavailable (e.g. execution capacity exhausted). The response carries a Retry-After header; retry with backoff.
application/json
PublicApiError
  • error (required): object