Delegate bounded resource actions to an agent
POST
/v1/authorization/delegationsCreates a time-bounded, non-escalating delegation after preflighting every requested resource action.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
None.
Query parameters
None.
Header parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Computer-Agents-Organization | header | string | No | Active organization context. If omitted, the authenticated user's personal organization is used. |
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| delegatePrincipalId | string | Yes | — |
| agentVersionId | string | No | — |
| allowedActions | string[] | Yes | — |
| resourceConstraints | object | Yes | — |
| resourceConstraints.types | string[] | Yes | — |
| resourceConstraints.ids | string[] | Yes | — |
| contextConstraints | object | No | — |
| expiresAt | string | Yes | — |
| metadata | object | No | Free-form metadata object. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Delegation createdapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| data | object | Yes | — |
| data.id | string | Yes | Unique identifier. |
| data.organizationId | string | Yes | — |
| data.delegatorPrincipalKind | human | agent | service | system | Yes | — |
| data.delegatorPrincipalId | string | Yes | — |
| data.delegatePrincipalKind | human | agent | service | system | Yes | — |
| data.delegatePrincipalId | string | Yes | — |
| data.actorUserId | string | No | — |
| data.agentId | string | No | Agent ID. |
| data.agentVersionId | string | No | — |
| data.parentDelegationId | string | No | — |
| data.depth | integer | Yes | — |
| data.allowedActions | string[] | Yes | — |
| data.resourceConstraints | object | Yes | — |
| data.resourceConstraints.types | string[] | No | — |
| data.resourceConstraints.ids | string[] | No | — |
| data.contextConstraints | object | No | — |
| data.status | active | revoked | expired | Yes | Current lifecycle status. |
| data.issuedAt | string | Yes | — |
| data.expiresAt | string | Yes | — |
| data.revokedAt | string | No | — |
| data.metadata | object | No | Free-form metadata object. |
403Requested delegation exceeds caller access
None.
Delegate bounded resource actions to an agent
Loading...
Response 201
Loading...