Explain a resource authorization
POST
/v1/authorization/explainEvaluates and returns the policy path without changing the authorization semantics used by enforcement.
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 |
|---|---|---|---|
| actionId | string | Yes | Canonical registered resource action |
| resource | object | Yes | — |
| resource.type | string | Yes | Registered persisted resource type |
| resource.id | string | Yes | Unique identifier. |
| requestId | string | No | — |
| attributes | object | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Explainable authorization decisionapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| data | object | Yes | — |
| data.id | string | Yes | Unique identifier. |
| data.organizationId | string | Yes | — |
| data.requestId | string | No | — |
| data.principalKind | human | agent | service | system | Yes | — |
| data.principalId | string | Yes | — |
| data.actorUserId | string | No | — |
| data.agentId | string | No | Agent ID. |
| data.agentVersionId | string | No | — |
| data.delegationId | string | No | — |
| data.policyVersionId | string | No | — |
| data.actionId | string | Yes | — |
| data.resourceType | string | Yes | — |
| data.resourceId | string | Yes | — |
| data.effect | allow | deny | approval_required | Yes | — |
| data.allowed | boolean | Yes | — |
| data.approvalRequired | boolean | Yes | — |
| data.reasonCode | string | Yes | — |
| data.steps | object[] | Yes | — |
| data.steps[].source | tenant_boundary | ownership | organization_governance | organization_policy | team_policy | delegation | approval | service_scope | default_deny | Yes | — |
| data.steps[].effect | allow | deny | approval_required | Yes | — |
| data.steps[].reasonCode | string | Yes | — |
| data.steps[].detail | string | No | — |
| data.steps[].permissionAccess | full_access | ask_permission | read_only | no_access | No | — |
| data.steps[].principalId | string | No | — |
| data.steps[].teamId | string | No | — |
| data.context | object | No | — |
| data.createdAt | string | Yes | ISO 8601 timestamp. |