Agents
Read agents, their activation state and versions, request launch tickets for runs, and list the models a workspace can use.
An agent is a saved configuration: a purpose, an authority level, the data classes it may handle, skills, knowledge layers, connections and a model. An agent under managed activation does not run from its editable draft. A workspace admin reviews and activates an exact version, and runs execute that version until it is paused, revoked or replaced. These pages call an agent that has such an active version an activated agent.
The read operations on this page accept an API key with the read scope or a signed-in session. Requesting a launch ticket needs the run scope. See Authentication for keys and scopes.
Creating, editing, reviewing, activating, pausing, revoking and deleting agents is done by people signed in to the web workspace. Those operations refuse API keys today, so an integration can read agents and run activated versions, but cannot author or activate them. Prepare a workspace for API runs lists the steps a workspace admin takes in the web workspace to get an agent to an active version.
List and read agents
status is the agent's lifecycle label: draft, in_review, approved, published or revoked. authority is one of answer, draft, recommend, prepare_action, execute_with_approval or execute_automatically. runtimeMode is one of cloud_only, local_preferred, local_only or hybrid. dataClasses draws from public, internal, confidential, restricted and secrets. grantLifecycle is managed for an agent that runs only from an activated version, and legacy_unadopted for an agent created before managed activation that a workspace admin has not yet moved to it.
GET /api/agents
List agents
Returns every agent in the workspace, most recently updated first. The list is not paginated. When the calling key can also make this read over MCP, the request counts against the same rate limit as its MCP calls; see Rate limits.
Access: API key with the read scope, or a signed-in workspace member.
Returns: An object { agents }. Each agent has id, name, status, grantLifecycle, authority, runtimeMode, model, delegation, purpose, outcome, dataClasses, skills, knowledgeLayers, localPermissions, clarification, readiness (0 to 100, how completely the agent is configured), owner (a free-text label), createdBy (the creator's user id), version (a display label), connections (connection ids), sourcePackId, sourceTemplateId, sourceTemplateVersion, createdAt and updatedAt. An agent under managed activation also has activeGrant with versionId and state: available, paused, revoked or not_active. createdAt is an ISO 8601 timestamp; updatedAt is a date-time string that is not guaranteed to be ISO 8601, so parse it leniently.
curl https://centerofagentic.com/api/agents \
-H "Authorization: Bearer $COA_API_KEY"{
"agents": [
{
"activeGrant": {
"versionId": "9b2e4c70-5d1a-4f3e-8c26-7a1d0e5b4f92",
"state": "available"
},
"grantLifecycle": "managed",
"id": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
"name": "Contract summary assistant",
"status": "published",
"authority": "recommend",
"runtimeMode": "hybrid",
"model": "example-lab/example-chat-1",
"delegation": null,
"purpose": "Summarise supplier contracts for the procurement team.",
"outcome": "A one-page summary with renewal dates and open risks.",
"dataClasses": ["public", "internal"],
"skills": ["summarize"],
"knowledgeLayers": { "domain": true },
"localPermissions": { "selectedFiles": true },
"clarification": {},
"readiness": 100,
"owner": "Procurement",
"createdBy": "user_example0000000000000000",
"version": "0.1.0",
"connections": [],
"sourcePackId": null,
"sourceTemplateId": null,
"sourceTemplateVersion": null,
"createdAt": "2026-11-20T08:30:00.000Z",
"updatedAt": "Sat Nov 21 2026 09:14:03 GMT+0000 (Coordinated Universal Time)"
}
]
}GET /api/agents/{id}
Get one agent
Returns the same agent object as the list, with two additions and one difference. proposalRevision is a hash of the agent's stored record; it changes whenever any stored field changes, including status and the update time, which makes it useful for change detection. runtimeRestrictions and, unlike the list, dataClasses carry the stored values exactly as saved, without defaults filled in. The response is sent with Cache-Control: private, no-store, and the MCP rate-limit note on the list applies here too.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The agent id. The value is not validated before the lookup: an id that is not a UUID produces a 500 response with server_error, not 404. |
Returns: The agent object with proposalRevision (64 hexadecimal characters) and runtimeRestrictions, an object { authority, localPermissions, runtimeMode }.
| Status | Code | When |
|---|---|---|
| 404 | not_found | No agent with this id exists in the workspace. |
curl https://centerofagentic.com/api/agents/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11 \
-H "Authorization: Bearer $COA_API_KEY"{
"activeGrant": {
"versionId": "9b2e4c70-5d1a-4f3e-8c26-7a1d0e5b4f92",
"state": "available"
},
"proposalRevision": "4b1f0c2d9e8a7f6053c1d2e4b5a6978801f2e3d4c5b6a7980a1b2c3d4e5f6071",
"grantLifecycle": "managed",
"id": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
"name": "Contract summary assistant",
"status": "published",
"authority": "recommend",
"runtimeMode": "hybrid",
"model": "example-lab/example-chat-1",
"delegation": null,
"purpose": "Summarise supplier contracts for the procurement team.",
"outcome": "A one-page summary with renewal dates and open risks.",
"dataClasses": ["public", "internal"],
"skills": ["summarize"],
"knowledgeLayers": { "domain": true },
"localPermissions": { "selectedFiles": true },
"clarification": {},
"readiness": 100,
"owner": "Procurement",
"createdBy": "user_example0000000000000000",
"version": "0.1.0",
"connections": [],
"sourcePackId": null,
"sourceTemplateId": null,
"sourceTemplateVersion": null,
"createdAt": "2026-11-20T08:30:00.000Z",
"updatedAt": "Sat Nov 21 2026 09:14:03 GMT+0000 (Coordinated Universal Time)",
"runtimeRestrictions": {
"authority": "recommend",
"localPermissions": { "selectedFiles": true },
"runtimeMode": "hybrid"
}
}GET /api/agents/{id}/preview
Preview the system prompt of an agent's saved configuration
Composes the system prompt from the agent's current saved configuration, including its selected skills and knowledge sources. A run of an activated agent uses the prompt captured in its active version, which can differ from this preview when the configuration was edited after activation.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The agent id. An id that is not a UUID produces a 500 response with server_error, not 404. |
Returns: An object { systemPrompt }, where systemPrompt is a string.
| Status | Code | When |
|---|---|---|
| 404 | not_found | No agent with this id exists in the workspace. |
Activation state
Managed activation separates the editable draft from what runs. A candidate is a captured copy of the draft that is waiting for review; the active version is the capture a workspace admin activated. Preparing a candidate, activating it, restricting, pausing and revoking are done in the web workspace by signed-in people.
GET /api/agents/{id}/grants
Get an agent's activation state
Returns the candidate awaiting review, the active version, and whether the agent is paused or revoked. Each capture is the exact configuration that was captured, including the manifest, the system prompt and the allowed models. The example shows an agent that has not been activated yet.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The agent id. |
Returns: An object with protocol (agent-active-grants/1), lifecycle (managed or legacy_unadopted), expected (the current state markers draftRevision, activeVersionId, restrictionRevision, epoch and availabilityRevision), candidate ({ id, digest, capture } or null), active ({ id, digest, activatedBy, activatedAt, capture } or null), revoked, paused, retentionDays and retentionBasis (both null until a retention period has been recorded).
| Status | Code | When |
|---|---|---|
| 404 | not_found | No agent with this id exists in the workspace. |
| 400 | invalid_grant_input | The id in the path is not a UUID. |
| 503 | grant_state_unavailable | The activation state could not be read. Repeat the read before acting on an earlier result. |
curl https://centerofagentic.com/api/agents/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/grants \
-H "Authorization: Bearer $COA_API_KEY"{
"protocol": "agent-active-grants/1",
"lifecycle": "managed",
"expected": {
"draftRevision": null,
"activeVersionId": null,
"restrictionRevision": 0,
"epoch": 0,
"availabilityRevision": 0
},
"candidate": null,
"active": null,
"revoked": false,
"paused": false,
"retentionDays": null,
"retentionBasis": null
}Versions
Every activation produces a version with its own id. An agent can also have entries in an older, label-based version log, for example from before it moved to managed activation; those entries are identified by a version label instead of an id.
GET /api/agents/{id}/versions
List an agent's versions
Returns activated versions first, newest first, followed by entries from the label-based version log, newest first. For an activated version, id and version are both the version id, status is published, note is Managed activation and activationVerified is true. An agent id that does not exist in the workspace returns an empty list.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The agent id. An id that is not a UUID produces a 500 response with server_error. |
Returns: An object { versions }. Each entry has id, version, status, note, createdBy, createdAt and activationVerified, which is false for entries from the label-based version log. note and createdBy can be null. createdAt is a date-time string that is not guaranteed to be ISO 8601, so parse it leniently.
curl https://centerofagentic.com/api/agents/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/versions \
-H "Authorization: Bearer $COA_API_KEY"{
"versions": [
{
"id": "9b2e4c70-5d1a-4f3e-8c26-7a1d0e5b4f92",
"version": "9b2e4c70-5d1a-4f3e-8c26-7a1d0e5b4f92",
"status": "published",
"note": "Managed activation",
"createdBy": "user_example0000000000000000",
"createdAt": "Sat Nov 21 2026 09:14:03 GMT+0000 (Coordinated Universal Time)",
"activationVerified": true
}
]
}GET /api/agents/{id}/version-snapshot
Get the snapshot of one agent version
Returns what was captured for one version: the manifest, the configuration and the system prompt. Fetch two snapshots to compare versions. Pass the version value of an entry from the versions list: a version id for an activated version, or a version label for an entry from the label-based version log.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The agent id. An id that is not a UUID produces a 500 response with server_error, not 404. |
| Name | Type | Description |
|---|---|---|
version required | string | The version to read: the id of an activated version (a UUID), or the version label of an entry from the label-based version log. The match is exact. |
Returns: An object with version, manifest (the package manifest that bounds what the version may do), grantBasis ({ gate, entries } or null), config, systemPrompt and createdAt (an ISO 8601 timestamp). config holds name, purpose, outcome, clarification, authority, runtime_mode, data_classes, skills, knowledge_layers, local_permissions, connections and model. An activated version also has digest and activationVerified: true. For an entry from the label-based version log, systemPrompt and createdAt can be null.
| Status | Code | When |
|---|---|---|
| 400 | version_required | The version query parameter is missing or empty. |
| 404 | no_snapshot | The agent has no snapshot for this version. |
curl "https://centerofagentic.com/api/agents/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/version-snapshot?version=9b2e4c70-5d1a-4f3e-8c26-7a1d0e5b4f92" \
-H "Authorization: Bearer $COA_API_KEY"Launch tickets
Running an activated agent takes two calls. First request a launch ticket; then call the run endpoint with the headers X-CoA-Agent-Protocol: agent-active-grants/1 and X-CoA-Agent-Ticket set to the ticket id, and a JSON body equal to the ticket's request. A ticket starts one run: presenting it again with the same body returns the existing run's id instead of starting a second run. Without the protocol header a run of an agent under managed activation is refused with 426 agent_protocol_required, and without a ticket with 428 agent_launch_required. Use the same credential for the ticket and the run. An agent whose grantLifecycle is legacy_unadopted cannot get a ticket: both the ticket request and any run request that sends the protocol header for it are refused with 409 agent_adoption_required. It runs without the header and ticket, as long as the workspace does not require managed activation for every run. Where the workspace requires it, a run request without the protocol header is refused with 426 agent_protocol_required, so such an agent cannot run at all until a workspace admin adopts it. See Adopt agents created before activation.
POST /api/agent-runtime/ticket
Request a launch ticket for one run of an activated agent
Issues a ticket bound to the caller, the agent, the run entry point and a hash of the run request. An unused ticket expires ten minutes after it is issued. The call is idempotent on nonce: repeating it with the same values returns the same ticket, with rootId set once the ticket has started a run. A caller can request at most 120 tickets per hour.
Access: API key with the run scope, or a signed-in workspace member. Send the header X-CoA-Agent-Protocol: agent-active-grants/1. The agent must be under managed activation and have an active version that is neither paused nor revoked.
| Name | Type | Description |
|---|---|---|
X-CoA-Agent-Protocol required | "agent-active-grants/1" | Must be exactly agent-active-grants/1. A request without it, or with any other value, is refused with 426 agent_protocol_required. Send the same header on the run that uses the ticket. |
| Name | Type | Description |
|---|---|---|
agentId required | uuid | The agent to run. It must match the agent that the run targets: the agentId inside request, or the conversation's agent for a conversation ticket. |
purpose required | "run" | "run_stream" | "run_job" | "conversation" | "desktop" | The run entry point the ticket is for: run for POST /api/run, run_stream for POST /api/run/stream, run_job for POST /api/run/job and conversation for POST /api/conversations/{id}/run/stream. desktop is used by the desktop app. |
nonce required | uuid | A new UUID that you generate for this launch. Reusing a nonce with a different agent, purpose or request is refused. |
request required | object | The exact JSON body you will send to the run endpoint. The ticket is bound to a hash of this object, so the run body must have the same content; key order does not matter. For run, run_stream and run_job it must contain the same agentId. |
parentScope | uuid | Required for conversation tickets: the conversation id, written exactly as in the run path. The conversation must belong to the caller, that is, the same API key or signed-in person. Omit it for other purposes. |
Returns: An object { ticketId, expiresAt, rootId }. rootId is null until the ticket has started a run, and then holds that run's root id.
| Status | Code | When |
|---|---|---|
| 426 | agent_protocol_required | The X-CoA-Agent-Protocol header is missing or has a different value. |
| 400 | agent_required | agentId is missing or not a string. |
| 400 | invalid_agent_launch | purpose is not an allowed value, nonce is missing or not a UUID, or request is not a JSON object. |
| 404 | agent_not_found | The targeted agent does not exist in the workspace. |
| 404 | conversation_not_found | For a conversation ticket, the conversation does not exist or belongs to someone else. |
| 409 | agent_adoption_required | The agent is not under managed activation, or request does not target the agent named in agentId. |
| 409 | agent_admission_unavailable | The agent has no active version, is paused or revoked, or the ticket first issued for this nonce expired unused. |
| 409 | agent_launch_conflict | The nonce was already used with a different agent, purpose, conversation or request. |
| 429 | agent_launch_limit | The caller requested 120 tickets in the last hour, or a ticket storage limit for the agent or workspace is reached. |
| 503 | agent_runtime_unavailable | The ticket could not be issued. Repeating the call with the same nonce is safe: it returns the ticket if one was created. The same response is returned when the agentId inside request is not a UUID, or when the parentScope of a conversation ticket is missing or not a UUID. |
curl -X POST https://centerofagentic.com/api/agent-runtime/ticket \
-H "Authorization: Bearer $COA_API_KEY" \
-H "X-CoA-Agent-Protocol: agent-active-grants/1" \
-H "Content-Type: application/json" \
-d '{
"agentId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
"purpose": "run",
"nonce": "5d0e7a34-2c1b-4f6a-9e83-b1c4d2f7a650",
"request": {
"agentId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
"prompt": "Summarise the attached supplier contract in five bullet points."
}
}'{
"ticketId": "c7a1e2d4-6b3f-4a90-8d15-2e9f0b6c3a71",
"expiresAt": "2026-11-28T10:25:00.123456+00:00",
"rootId": null
}Model catalogue
GET /api/models
List the models available for agents
Lists models from the OpenRouter catalogue, using the workspace's own OpenRouter key when one is configured. Retired models and batch-only variants are left out. Results can be cached for up to ten minutes. If the catalogue cannot be reached, the response is still 200 with an empty models array.
Access: API key with the read scope, or a signed-in workspace member.
Returns: An object { models }. Each model has id, name, contextLength (a number, or null when the catalogue lists none), promptPrice, completionPrice and deprecatesAt. The prices are the catalogue's listed prices converted to numbers (OpenRouter lists US dollars per token), or null when the catalogue lists none. deprecatesAt is the date on which the catalogue says a model is due to be retired, or null.
curl https://centerofagentic.com/api/models \
-H "Authorization: Bearer $COA_API_KEY"{
"models": [
{
"id": "example-lab/example-chat-1",
"name": "Example Chat 1",
"contextLength": 128000,
"promptPrice": 1.5e-7,
"completionPrice": 6e-7,
"deprecatesAt": null
}
]
}Something missing or unclear? Tell us and we will improve this page.