Delegate bounded resource actions to an agent

POST/v1/authorization/delegations

Creates 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
NameLocationTypeRequiredDescription
X-Computer-Agents-OrganizationheaderstringNoActive organization context. If omitted, the authenticated user's personal organization is used.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
delegatePrincipalIdstringYes—
agentVersionIdstringNo—
allowedActionsstring[]Yes—
resourceConstraintsobjectYes—
resourceConstraints.typesstring[]Yes—
resourceConstraints.idsstring[]Yes—
contextConstraintsobjectNo—
expiresAtstringYes—
metadataobjectNoFree-form metadata object.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

201Delegation createdapplication/json
FieldTypeRequiredDescription
dataobjectYes—
data.idstringYesUnique identifier.
data.organizationIdstringYes—
data.delegatorPrincipalKindhuman | agent | service | systemYes—
data.delegatorPrincipalIdstringYes—
data.delegatePrincipalKindhuman | agent | service | systemYes—
data.delegatePrincipalIdstringYes—
data.actorUserIdstringNo—
data.agentIdstringNoAgent ID.
data.agentVersionIdstringNo—
data.parentDelegationIdstringNo—
data.depthintegerYes—
data.allowedActionsstring[]Yes—
data.resourceConstraintsobjectYes—
data.resourceConstraints.typesstring[]No—
data.resourceConstraints.idsstring[]No—
data.contextConstraintsobjectNo—
data.statusactive | revoked | expiredYesCurrent lifecycle status.
data.issuedAtstringYes—
data.expiresAtstringYes—
data.revokedAtstringNo—
data.metadataobjectNoFree-form metadata object.
403Requested delegation exceeds caller access
None.
Delegate bounded resource actions to an agent
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow