# External agents and governed operations

Register agents from other frameworks. Sending their tool calls to the platform for a recorded decision is a pilot, closed unless Center of Agentic enables it.

An external agent is an agent that runs outside the platform, on another vendor's agent product or on your own framework. A workspace admin registers it with a fixed ceiling, activates it, and binds each action the agent may request to one tool on one workspace connection. The agent then asks the platform to authorize or execute those actions one operation at a time. Every operation gets a recorded decision: it is authorized, denied, or held until a workspace admin other than the one who registered the agent reviews it.

Two credentials are involved. Registering, activating and revoking agents, creating action bindings, minting keys and reviewing held operations require a signed-in workspace admin; API keys and device tokens are refused on those endpoints. The agent itself calls the operation endpoints with its own runtime key, sent as `Authorization: Bearer ak_…`. A runtime key belongs to exactly one external agent, carries the `run` scope, expires seven days after it is minted and is meant only for the operation endpoints on this page: the standard workspace endpoints answer `403` with `external_credential_not_supported`. Ordinary workspace API keys cannot call the operation endpoints. See [Authentication](https://centerofagentic.com/docs/authentication) for how bearer credentials are sent.

Registering agents and minting keys is available in every workspace. Action bindings, the operation endpoints and review are a **pilot** whose contract can still change: the operation endpoints answer `503` with `external_pilot_disabled` unless Center of Agentic has enabled the pilot for the service. During the pilot they serve only agents registered as `sandbox` or `staging`, bindings whose data class is `public`, and workspaces without a spend cap, and operations are not priced. The platform decides and records only the calls an agent sends through these endpoints; it does not control what the agent does on its own platform.

## Register external agents

An external agent record holds the agent's identity at its provider, the environment it runs in and its ceiling. The ceiling is an upper bound: it can only narrow what the agent may be authorized to do and grants nothing by itself. A record cannot be edited after registration. A new agent starts as `registered`, becomes `active` when it is activated, and `revoked` is final. These endpoints need a signed-in workspace admin, so they are listed here without examples; generic errors are described on [Errors](https://centerofagentic.com/docs/api/errors).

### GET /api/v1/external-agents

List external agents

Returns up to 200 external agents of the workspace, newest first. The list takes no parameters.

**Access:** A signed-in workspace admin only. API keys are not accepted. Signed-in workspace admins only. API keys and device tokens are refused.

**Returns:** `{ agents: ExternalAgent[] }`. Each agent has `id`, `name`, `kind`, `provider`, `providerAccount`, `providerAgent`, `environment`, `entryPoints`, `ceiling` (`authority`, `actions`, `dataClasses`, `placements`, `connections`), `ownerUserId` (the admin who registered it), `status` (`registered`, `active` or `revoked`), `epoch` (a counter that rises on every activation, revocation and key rotation), `createdAt` (a date string that is not ISO 8601 today) and `coverage` (always `registered`).

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

### POST /api/v1/external-agents

Register an external agent

Creates the record with status `registered` and `epoch` 1, owned by the admin who makes the call. The body is strict: unknown fields are refused, text values must be non-empty and free of control characters, and every id in `ceiling.connections` must be a connection of this workspace. One agent can be registered per combination of `provider`, `providerAccount`, `providerAgent` and `environment`, and a revoked agent still occupies its combination.

**Access:** A signed-in workspace admin only. API keys are not accepted. Signed-in workspace admins only. API keys and device tokens are refused.

**Request body**

| Name | Type | Description |
| --- | --- | --- |
| `name` required | `string` | Display name, at most 80 characters. |
| `kind` required | `"vendor" \| "developer"` | `vendor` for an agent on another vendor's agent product, `developer` for one you built yourself. |
| `provider` required | `string` | Name of the product or framework the agent runs on, at most 64 characters. |
| `providerAccount` required | `string` | Your account or organization identifier at the provider, at most 120 characters. |
| `providerAgent` required | `string` | The agent's identifier at the provider, at most 120 characters. |
| `environment` required | `"sandbox" \| "staging" \| "production"` | Where the agent runs. The operation endpoints currently refuse agents registered as `production`. |
| `entryPoints` required | `("rest" \| "adapter" \| "gateway")[]` | One to three entry points. Include `rest`: a runtime key authenticates only for an agent whose entry points contain it. `adapter` and `gateway` are accepted and stored but have no effect today: no adapter or gateway entry point is available. |
| `ceiling.authority` required | `string` | Highest authority level: `answer`, `draft`, `recommend`, `prepare_action`, `execute_with_approval` or `execute_automatically`. Actions other than `connector_read` must also be permitted at this level. |
| `ceiling.actions` required | `string[]` | One or more action classes the agent may be authorized for. A tool call classified as a read is decided as `connector_read`; a write is decided as a write class such as `update_record`. Allowed values: `read_local`, `search_local`, `parse_local`, `summarize`, `draft`, `recommend`, `prepare_local_file`, `connector_read`, `prepare_cloud_record`, `create_task`, `update_record`, `delete_record`, `send_message`, `export_data`, `trigger_workflow`, `execute_script`, `browser_action`, `external_publication`, `read_screen`, `read_other_app`, `actuate_app`, `execute_code`, `execute_partner_code`, `read_generated_artifact`, `read_memory`, `write_memory`, `generate_image`, `capture_activity`, `capture_audio`, `spawn_subagent`. |
| `ceiling.dataClasses` required | `string[]` | One or more of `public`, `internal`, `confidential`, `restricted`, `secrets`. Action bindings accept only `public` during the pilot. |
| `ceiling.placements` required | `string[]` | One or more of `local`, `cloud_model`, `cloud_connector`, `cloud_connector_write`, `local_sandbox`, `cloud_sandbox`, `local_capture`. Connection reads are decided at `cloud_connector` and connection writes at `cloud_connector_write`. |
| `ceiling.connections` required | `uuid[]` | Ids of the workspace connections the agent may use, at most 64. The list may be empty, but an action can only be bound to a connection listed here. |

**Returns:** `{ agent: ExternalAgent }` with status `201`. The agent has the fields described for the list.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_external_registration` | A field is missing, unknown, too long, empty or outside its allowed values. |
| 400 | `external_connection_unavailable` | An id in `ceiling.connections` is not a connection of this workspace. |
| 409 | `external_identity_exists` | An agent with the same provider, provider account, provider agent and environment is already registered, including a revoked one. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

### GET /api/v1/external-agents/{id}

Get an external agent

**Access:** A signed-in workspace admin only. API keys are not accepted. Signed-in workspace admins only. API keys and device tokens are refused.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The external agent id. |

**Returns:** `{ agent: ExternalAgent }` with the fields described for the list.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 404 | `not_found` | No external agent with this id exists in the workspace. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

### DELETE /api/v1/external-agents/{id}

Revoke an external agent

Has the same effect as the revoke action below. Revocation is final: the agent's runtime keys stop authenticating and the agent cannot be activated again. The record is kept and stays in the list with status `revoked`.

**Access:** A signed-in workspace admin only. API keys are not accepted. Signed-in workspace admins only. API keys and device tokens are refused.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The external agent id. |

**Returns:** `{ agent: ExternalAgent }` with `status` `revoked` and a raised `epoch`.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 409 | `identity_unavailable_or_revoked` | The agent does not exist in the workspace or is already revoked. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

## Activate, revoke and mint runtime keys

These three actions take no request fields: send `{}` or no body. Each of them raises the agent's `epoch`, and a runtime key is valid only for the epoch it was minted in. Activate the agent first and mint its key afterwards, because activating again or minting a newer key invalidates every earlier key. A runtime key that is expired, replaced or belongs to a revoked agent no longer authenticates and the API answers `401`. The platform also revokes an agent and its keys when one of its operation records is deleted under the workspace's receipt retention window or a receipt erasure.

### POST /api/v1/external-agents/{id}/activate

Activate an external agent

Moves a `registered` agent to `active`. Calling it for an agent that is already active succeeds, raises `epoch` and so invalidates the agent's current runtime key.

**Access:** A signed-in workspace admin only. API keys are not accepted. Signed-in workspace admins only. API keys and device tokens are refused.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The external agent id. |

**Returns:** `{ agent: ExternalAgent }` with `status` `active` and the new `epoch`.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `unexpected_fields` | The request body contains any field. |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 409 | `identity_unavailable_or_revoked` | The agent does not exist in the workspace or is revoked. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

### POST /api/v1/external-agents/{id}/revoke

Revoke an external agent

Sets the agent to `revoked`, which is final. Its runtime keys stop authenticating, so operations that were waiting for review can no longer be resumed. A call that was already dispatched is not cancelled.

**Access:** A signed-in workspace admin only. API keys are not accepted. Signed-in workspace admins only. API keys and device tokens are refused.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The external agent id. |

**Returns:** `{ agent: ExternalAgent }` with `status` `revoked` and a raised `epoch`.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `unexpected_fields` | The request body contains any field. |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 409 | `identity_unavailable_or_revoked` | The agent does not exist in the workspace or is already revoked. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

### POST /api/v1/external-agents/{id}/credentials

Mint or rotate the agent's runtime key

Revokes any earlier runtime key of the agent and returns a new one with the `run` scope that expires after seven days. The agent must be `active`. The secret is returned once and cannot be read again, so store it where the agent can load it and mint a new key before the old one expires.

**Access:** A signed-in workspace admin only. API keys are not accepted. Only the workspace admin who registered the agent can mint its key. API keys and device tokens are refused.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The external agent id. |

**Returns:** `{ secret, keyId, expiresAt }`. `secret` is the bearer value, starting with `ak_`. `expiresAt` is seven days ahead and is a date string that is not ISO 8601 today.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `unexpected_fields` | The request body contains any field. |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 409 | `active_owned_identity_required` | The agent is not active, does not exist, or was registered by a different admin. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

## Bind actions to connection tools

A binding maps one action name that the agent will send to one tool on one connection inside the agent's ceiling, together with the argument schema the platform enforces on every request. The agent can only request actions that are bound; it never names a connection, a tool or a credential itself. Bindings cannot be listed, changed or deleted through the API, so store the returned `bindingId`. Operations bound to a generic MCP server connection are denied today.

### POST /api/v1/external-agents/{id}/bindings

Bind an action name to a connection tool

**Status: Pilot.** Closed unless Center of Agentic has enabled it; limited in scope, and the contract can still change.

The agent must be `active` and the connection must be listed in its `ceiling.connections`. Send exactly the five fields below; any other field is refused. Each action name can be bound once per agent.

**Access:** A signed-in workspace admin only. API keys are not accepted. Signed-in workspace admins only. API keys and device tokens are refused.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The external agent id. |

**Request body**

| Name | Type | Description |
| --- | --- | --- |
| `connectionId` required | `uuid` | The workspace connection the tool belongs to. Must be inside the agent's ceiling. |
| `tool` required | `string` | The tool name on that connection: 1 to 100 letters, digits or underscores. |
| `action` required | `string` | The name the agent sends as `action` in an operation request: 1 to 100 letters, digits or underscores. |
| `argumentSchema` required | `object` | The arguments the action accepts, at most 32. Each key is an argument name (a letter followed by up to 63 letters, digits or underscores) and each value is `{ type, required?, maxLength? }`, where `type` is `string`, `number` or `boolean`, `required` is a boolean (default `false`) and `maxLength` is an integer from 1 to 8192 that limits string values (default 8192). Use `{}` for an action without arguments. |
| `dataClass` required | `"public"` | The data class of the action. Only `public` is accepted during the pilot. |

**Returns:** `{ bindingId }` with status `201`. `bindingId` is the UUID the agent sends in operation requests.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 409 | `active_identity_required` | The agent does not exist in the workspace or is not active. |
| 400 | `invalid_action_binding` | A field is unknown, `tool` or `action` is malformed, or `dataClass` is not `public`. |
| 400 | `invalid_operation_request` | `argumentSchema` is malformed. |
| 400 | `invalid_external_agent_id` | The agent id or `connectionId` is not a UUID. |
| 403 | `connection_outside_ceiling` | `connectionId` is not listed in the agent's `ceiling.connections`. |
| 409 | `action_binding_exists` | The agent already has a binding for this action name. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

## Authorize and execute operations

These endpoints are called by the external agent with its runtime key; in the examples `$COA_API_KEY` holds that key. Each request names a binding and supplies arguments, and the platform decides it under current policy, the agent's ceiling and the binding, then records the decision. `operations:execute` also dispatches an authorized call to the bound connection tool and stores the result, while `operations:authorize` only records the decision. An operation's `state` is one of `authorizing` (decision in progress), `authorized` (allowed in authorize mode, nothing dispatched), `pending` (held for review), `ready` (approved and waiting for resume), `dispatching` (call in flight), `completed` (call returned without an error, `result` available), `denied` (by the decision, or because the call was refused before it was sent), `unknown` (the tool reported an error or the outcome could not be confirmed), `expired` (the 24-hour window passed) or `invalidated` (the agent's `epoch` changed while the operation waited). All four endpoints answer `503` with `external_pilot_disabled` while the pilot is off, `403` with `external_workload_credential_required` for any credential other than a runtime key, `403` with `external_owner_admin_required` when the admin who registered the agent is no longer a workspace admin, and `409` with `production_profile_not_certified` for an agent registered as `production`.

### POST /api/v1/operations:execute

Decide one bound action and execute it when authorized

**Status: Pilot.** Closed unless Center of Agentic has enabled it; limited in scope, and the contract can still change.

Requires `Content-Type: application/json` and an `Idempotency-Key` header of 12 to 128 characters (letters, digits, `_`, `.`, `:`, `-`); repeating the same request with the same key returns the existing operation instead of running it again. A denial is not an HTTP error: the response is `200` with `state` `denied` and the reason in `authorization`, and a request that policy would allow is denied with `reasonCode` `SPEND_UNVERIFIABLE` when a spend cap applies to the workspace or to the agent's authority level. If the bound tool reports an error, or the outcome of a dispatched call cannot be confirmed, the operation becomes `unknown` and no `result` is released. Read its status in that case and do not send the action again as a new operation.

**Access:** API key with the `run` scope. Only the runtime key minted for an active external agent is accepted; ordinary workspace API keys and browser sessions are refused. Closed unless Center of Agentic has enabled the external agent pilot for the service.

**Request headers**

| Name | Type | Description |
| --- | --- | --- |
| `Idempotency-Key` required | `string` | A key that you choose for this operation: 12 to 128 characters from letters, digits, `_`, `.`, `:` and `-`. Repeating the request with the same key and the same body returns the existing operation instead of running it again, and the same key with a different body, or a key already used with authorize, is refused with `409 idempotency_conflict`. A request without the header, or with a malformed value, is refused with `400 invalid_operation_request`; see [Idempotency and retries](https://centerofagentic.com/docs/api#retries). |

**Request body**

| Name | Type | Description |
| --- | --- | --- |
| `schemaVersion` required | `"1"` | Version of the request format. Always the string `1`. |
| `externalRunId` required | `string` | Your identifier for the agent run: 1 to 128 letters, digits, `_`, `.`, `:` or `-`. |
| `externalOperationId` required | `string` | Your identifier for this operation within the run, same format. The pair of `externalRunId` and `externalOperationId` can be used once per agent. |
| `bindingId` required | `uuid` | The action binding to use. It must belong to the calling agent. |
| `action` required | `string` | The action name of that binding. A different name is refused. |
| `arguments` required | `object` | A flat object of at most 32 string, number or boolean values that matches the binding's argument schema: only declared names, the declared types, every required argument present. Nested objects, arrays and `null` are refused. At most 32,000 bytes; the whole body at most 40,000 bytes. |

**Returns:** `{ operation }` with status `200`, or `202` while the operation is `pending` or `dispatching`. The operation has `id`, `state`, `decisionId`, `authorization` (the recorded decision: `outcome` of `authorized`, `pending` or `denied`, `reasonCode`, `reason` when the outcome is not `authorized`, `placement` unless the outcome is `denied`, `approval`, `budget`, `obligations`, and the `policy` and `toolPolicy` evaluations), `mode` (`execute`), `usage` (`priceStatus` is always `unpriced` and `spendEnforced` always `false`), `assurance` (`tier` 2 and `evidenceClass` `enforcement`: the platform dispatched the call itself) and, only when `state` is `completed`, `result` (`content` as text, `isError`, `reasonCode`). A result larger than 64 KiB is not released and leaves the operation `unknown`.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_operation_json` | The JSON body repeats a key, is nested too deeply or is not valid UTF-8. |
| 400 | `invalid_operation_request` | A body field other than `bindingId` is missing, unknown or malformed, or the `Idempotency-Key` header is missing or malformed. |
| 400 | `invalid_external_agent_id` | `bindingId` is missing or not a UUID. |
| 400 | `action_arguments_invalid` | `arguments` does not match the binding's argument schema. |
| 404 | `action_binding_not_found` | The binding does not belong to the calling agent, or `action` is not the binding's action name. |
| 409 | `idempotency_conflict` | The idempotency key was already used with a different request or mode, or the run and operation ids were already used under a different key. |
| 409 | `connection_unavailable` | The bound connection no longer exists or is not connected. |
| 409 | `operation_dispatch_not_claimed` | The agent, its key or the decision changed between the decision and dispatch; the call was not sent. |
| 413 | `operation_payload_too_large` | The body is larger than 40,000 bytes. |
| 415 | `json_required` | `Content-Type` is not `application/json`. |
| 429 | `external_operation_rate_limit` | The workspace created 30 external operations in the last 60 seconds. |
| 503 | `operation_outcome_unknown` | The call was dispatched but its outcome could not be confirmed; the operation is now `unknown`. |
| 503 | `external_pilot_disabled` | Center of Agentic has not enabled the pilot for the service. |
| 403 | `external_workload_credential_required` | The credential is not the runtime key of an external agent. An ordinary workspace API key gets this answer. |
| 403 | `external_owner_admin_required` | The admin who registered the agent is no longer a workspace admin. |
| 403 | `external_identity_unavailable` | The agent is not `active`, the key was minted in an earlier `epoch` of the agent, or the agent's `entryPoints` do not include `rest`. |
| 409 | `production_profile_not_certified` | The agent is registered as `production`. During the pilot these endpoints serve only `sandbox` and `staging` agents. |

```bash
curl -X POST https://centerofagentic.com/api/v1/operations:execute \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: run-2026-11-28-op-0001" \
  -d '{
    "schemaVersion": "1",
    "externalRunId": "run-2026-11-28",
    "externalOperationId": "op-0001",
    "bindingId": "7d2e4b6a-9c1f-4a3e-8b5d-0f1e2d3c4b5a",
    "action": "lookup_issue",
    "arguments": { "issueKey": "DEMO-1" }
  }'
```

```json
{
  "operation": {
    "id": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
    "state": "completed",
    "decisionId": "c4a1e2b3-5d6f-4a7b-8c9d-0e1f2a3b4c5d",
    "authorization": {
      "outcome": "authorized",
      "reasonCode": "ALLOWED",
      "placement": "cloud_connector",
      "approval": "not_required",
      "budget": { "verdict": "no_cap", "scope": null, "reason": "No spend cap applies." },
      "obligations": [
        { "kind": "logging", "layer": "law_regulation", "ruleId": "obl_logging_8", "reason": "audit_all_runs" }
      ],
      "discharged": [
        { "kind": "logging", "layer": "law_regulation", "ruleId": "obl_logging_8", "reason": "audit_all_runs" }
      ],
      "toolPolicy": { "verdict": "allow", "rule": null, "reason": null, "violations": [], "obligations": [], "recorded": [] },
      "policy": {
        "action": "connector_read",
        "object": { "connector": "jira", "resource": "get_issue", "dataClass": "public" },
        "placement_requested": "cloud_connector",
        "decision": "allow",
        "reason_code": "ALLOWED",
        "applicable_allowlist_layers": ["tenant_admin", "package_manifest", "role_team", "user_identity", "connector_scope"],
        "allow_rules_matched": ["allow_tenant_admin_a", "allow_package_manifest_b", "allow_role_team_c", "allow_user_identity_d", "allow_connector_scope_e"],
        "allowlist_layers_missing_grant": [],
        "deny_rules_matched": [],
        "obligations": [
          { "kind": "logging", "layer": "law_regulation", "ruleId": "obl_logging_8", "reason": "audit_all_runs" }
        ],
        "surviving_placements": ["cloud_connector"],
        "evaluated_at": "2026-11-28T10:15:00.000Z",
        "policy_bundle_id": "tenant-policy-1b2c3d4e"
      },
      "operationDigest": "41c17d5d4aa41a790940b820bcd2a490a4fe40b3918bf01925a481afa01891be"
    },
    "mode": "execute",
    "usage": { "priceStatus": "unpriced", "spendEnforced": false },
    "assurance": { "tier": 2, "evidenceClass": "enforcement" },
    "result": { "content": "DEMO-1: Example issue (status: Open)", "isError": false, "reasonCode": null }
  }
}
```

### POST /api/v1/operations:authorize

Decide one bound action without executing it

**Status: Pilot.** Closed unless Center of Agentic has enabled it; limited in scope, and the contract can still change.

Takes the same headers and body as execute and records the same kind of decision, but never dispatches the call, so an allowed request ends in state `authorized`. Use it as a check before the agent carries out the action itself. Idempotency keys are shared with execute: a key, or a pair of run and operation ids, that was used in one mode cannot be reused in the other. Request validation errors are the same as for execute.

**Access:** API key with the `run` scope. Only the runtime key minted for an active external agent is accepted; ordinary workspace API keys and browser sessions are refused. Closed unless Center of Agentic has enabled the external agent pilot for the service.

**Request headers**

| Name | Type | Description |
| --- | --- | --- |
| `Idempotency-Key` required | `string` | A key that you choose for this operation: 12 to 128 characters from letters, digits, `_`, `.`, `:` and `-`. Repeating the request with the same key and the same body returns the existing operation instead of deciding it again, and the same key with a different body, or a key already used with execute, is refused with `409 idempotency_conflict`. A request without the header, or with a malformed value, is refused with `400 invalid_operation_request`; see [Idempotency and retries](https://centerofagentic.com/docs/api#retries). |

**Request body**

| Name | Type | Description |
| --- | --- | --- |
| `schemaVersion` required | `"1"` | Version of the request format. Always the string `1`. |
| `externalRunId` required | `string` | Your identifier for the agent run: 1 to 128 letters, digits, `_`, `.`, `:` or `-`. |
| `externalOperationId` required | `string` | Your identifier for this operation within the run, same format. |
| `bindingId` required | `uuid` | The action binding to use. It must belong to the calling agent. |
| `action` required | `string` | The action name of that binding. |
| `arguments` required | `object` | A flat object that matches the binding's argument schema, with the same limits as for execute. |

**Returns:** `{ operation }` with status `200`, or `202` while the operation is `pending`. The operation has the same fields as for execute, with `mode` `authorize` and `assurance` of `tier` 0 and `evidenceClass` `observation`: the platform recorded a decision and did not carry out the call. `result` is never present.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_operation_json` | The JSON body repeats a key, is nested too deeply or is not valid UTF-8. |
| 400 | `invalid_operation_request` | A body field other than `bindingId` is missing, unknown or malformed, or the `Idempotency-Key` header is missing or malformed. |
| 400 | `invalid_external_agent_id` | `bindingId` is missing or not a UUID. |
| 400 | `action_arguments_invalid` | `arguments` does not match the binding's argument schema. |
| 404 | `action_binding_not_found` | The binding does not belong to the calling agent, or `action` is not the binding's action name. |
| 409 | `idempotency_conflict` | The idempotency key was already used with a different request or mode, or the run and operation ids were already used under a different key. |
| 409 | `connection_unavailable` | The bound connection no longer exists or is not connected. |
| 413 | `operation_payload_too_large` | The body is larger than 40,000 bytes. |
| 415 | `json_required` | `Content-Type` is not `application/json`. |
| 429 | `external_operation_rate_limit` | The workspace created 30 external operations in the last 60 seconds. |
| 503 | `external_pilot_disabled` | Center of Agentic has not enabled the pilot for the service. |
| 403 | `external_workload_credential_required` | The credential is not the runtime key of an external agent. An ordinary workspace API key gets this answer. |
| 403 | `external_owner_admin_required` | The admin who registered the agent is no longer a workspace admin. |
| 403 | `external_identity_unavailable` | The agent is not `active`, the key was minted in an earlier `epoch` of the agent, or the agent's `entryPoints` do not include `rest`. |
| 409 | `production_profile_not_certified` | The agent is registered as `production`. During the pilot these endpoints serve only `sandbox` and `staging` agents. |

```bash
curl -X POST https://centerofagentic.com/api/v1/operations:authorize \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: run-2026-11-28-op-0002" \
  -d '{
    "schemaVersion": "1",
    "externalRunId": "run-2026-11-28",
    "externalOperationId": "op-0002",
    "bindingId": "7d2e4b6a-9c1f-4a3e-8b5d-0f1e2d3c4b5a",
    "action": "lookup_issue",
    "arguments": { "issueKey": "DEMO-2" }
  }'
```

### GET /api/v1/operations/{id}

Get the state and result of an operation

**Status: Pilot.** Closed unless Center of Agentic has enabled it; limited in scope, and the contract can still change.

Returns an operation that the calling agent created. Reading also settles stale states: an operation left in `authorizing` or `dispatching` for more than ten minutes becomes `unknown`, a `pending`, `ready` or `authorized` operation becomes `expired` once its 24-hour window has passed, and `invalidated` when the agent's `epoch` has changed since the request. Poll this endpoint while an operation is `pending`, and after any response you did not receive.

**Access:** API key with the `read` scope. Only the runtime key of the external agent that created the operation is accepted; it carries the `run` scope, which includes `read`. Ordinary workspace API keys and browser sessions are refused. Closed unless Center of Agentic has enabled the external agent pilot for the service.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The operation id returned by execute or authorize. |

**Returns:** `{ operation }` with the same fields as for execute. `result` is included only while `state` is `completed`, and `authorization` and `decisionId` are `null` until a decision is recorded.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 404 | `operation_not_found` | No operation with this id was created by the calling agent. |
| 503 | `external_pilot_disabled` | Center of Agentic has not enabled the pilot for the service. |
| 403 | `external_workload_credential_required` | The credential is not the runtime key of an external agent. An ordinary workspace API key gets this answer. |
| 403 | `external_owner_admin_required` | The admin who registered the agent is no longer a workspace admin. |
| 403 | `external_identity_unavailable` | The agent is not `active`, the key was minted in an earlier `epoch` of the agent, or the agent's `entryPoints` do not include `rest`. |
| 409 | `production_profile_not_certified` | The agent is registered as `production`. During the pilot these endpoints serve only `sandbox` and `staging` agents. |

```bash
curl https://centerofagentic.com/api/v1/operations/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11 \
  -H "Authorization: Bearer $COA_API_KEY"
```

### POST /api/v1/operations/{id}/resume

Resume an operation after it was approved

**Status: Pilot.** Closed unless Center of Agentic has enabled it; limited in scope, and the contract can still change.

When a reviewer approves a held operation it moves to `ready`, and the agent then calls resume with `{}` or no body. The platform decides the original request again under current policy and checks that the approval still covers exactly that request. It then dispatches the call (execute mode) or marks the operation `authorized` (authorize mode). A runtime key minted after the operation was created cannot resume it.

**Access:** API key with the `run` scope. Only the runtime key of the external agent that created the operation is accepted; ordinary workspace API keys and browser sessions are refused. Closed unless Center of Agentic has enabled the external agent pilot for the service.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The operation id. |

**Returns:** `{ operation }` with status `200` and the same fields as for execute. The state is normally `completed`, `denied` or `unknown` in execute mode, and `authorized` or `denied` in authorize mode.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `unexpected_fields` | The request body contains any field. |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 404 | `operation_not_found` | No operation with this id was created by the calling agent. |
| 409 | `operation_not_resumable` | The operation is not `ready`, was not approved, or its review window has passed. |
| 409 | `connection_unavailable` | The bound connection no longer exists or is not connected. |
| 409 | `operation_epoch_changed` | The agent was activated again or given a new key after the operation was created. |
| 409 | `operation_dispatch_not_claimed` | The agent, its key or the decision changed between the decision and dispatch; the call was not sent. |
| 503 | `operation_outcome_unknown` | The call was dispatched but its outcome could not be confirmed; the operation is now `unknown`. |
| 503 | `external_pilot_disabled` | Center of Agentic has not enabled the pilot for the service. |
| 403 | `external_workload_credential_required` | The credential is not the runtime key of an external agent. An ordinary workspace API key gets this answer. |
| 403 | `external_owner_admin_required` | The admin who registered the agent is no longer a workspace admin. |
| 403 | `external_identity_unavailable` | The agent is not `active`, the key was minted in an earlier `epoch` of the agent, or the agent's `entryPoints` do not include `rest`. |
| 409 | `production_profile_not_certified` | The agent is registered as `production`. During the pilot these endpoints serve only `sandbox` and `staging` agents. |

```bash
curl -X POST https://centerofagentic.com/api/v1/operations/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/resume \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Review held operations

An operation whose decision requires approval stays `pending` until a signed-in workspace admin reviews it. The admin who registered the agent cannot approve its operations, so a second workspace admin is needed. The review window closes 24 hours after the decision; an operation that is not approved in time expires and does not run. An approval covers that one operation only. These endpoints need a browser session and are listed without examples.

### GET /api/v1/operations/{id}/review

Read what a held operation would do

**Status: Pilot.** Closed unless Center of Agentic has enabled it; limited in scope, and the contract can still change.

Shows the reviewer the requested action, the connection and tool it is bound to, and the arguments. The admin who registered the agent cannot read it.

**Access:** A signed-in workspace admin only. API keys are not accepted. A signed-in workspace admin other than the one who registered the agent. API keys and device tokens are refused.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The operation id. |

**Returns:** `{ review }` with `id`, `state`, `action`, `target` (`connectionId`, `tool`), `arguments`, `placement`, `policyVersion`, `expiresAt`, `reviewOutcome` (`approved`, `denied` or `null`) and `cost` (`status` `unpriced`, `spendEnforced` `false`).

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 404 | `operation_not_found` | No operation with this id exists in the workspace. |
| 403 | `independent_admin_required` | The signed-in admin is the one who registered the agent. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

### POST /api/v1/operations/{id}/review

Approve or deny a held operation

**Status: Pilot.** Closed unless Center of Agentic has enabled it; limited in scope, and the contract can still change.

Approving moves a `pending` operation to `ready`, after which the agent resumes it; denying moves it to `denied`. The admin who registered the agent cannot approve its operations but can deny them. The body may contain only `action`.

**Access:** A signed-in workspace admin only. API keys are not accepted. Approving requires a signed-in workspace admin other than the one who registered the agent. API keys and device tokens are refused.

**Path parameters**

| Name | Type | Description |
| --- | --- | --- |
| `id` required | `uuid` | The operation id. |

**Request body**

| Name | Type | Description |
| --- | --- | --- |
| `action` required | `"approve" \| "deny"` | The reviewer's verdict for this one operation. |

**Returns:** `{ operation: { id, state } }`, where `state` is `ready` after an approval and `denied` after a denial.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 400 | `unexpected_fields` | The body contains a field other than `action`. |
| 400 | `invalid_external_agent_id` | `id` is not a UUID. |
| 400 | `invalid_review_action` | `action` is not `approve` or `deny`. |
| 404 | `operation_not_found` | No operation with this id exists in the workspace. |
| 403 | `independent_admin_required` | The admin who registered the agent tries to approve one of its operations. |
| 409 | `operation_not_pending` | The operation is not `pending`, was already reviewed, or its review window has passed. |
| 403 | `full_admin_session_required` | The signed-in user is not a workspace admin. |

Source: https://centerofagentic.com/docs/api/external-agents

## Related pages

- [Authentication](https://centerofagentic.com/docs/authentication)
- [Errors](https://centerofagentic.com/docs/api/errors)
- [Idempotency and retries](https://centerofagentic.com/docs/api#retries)
