01POST /v1/actions
Asks Arc to perform an action. Arc decides, and on ALLOW performs it before responding.
POST https://api.arcintell.org/v1/actionsAuthorization: Bearer arc.<key_id>.<secret>Content-Type: application/json{ "request_id": "refund-ticket-77", "action": "refund:create", "on_behalf_of": { "kind": "customer", "id": "cus_8812" }, "resource": { "type": "payment", "id": "pay_3141" }, "purpose": "Refund a duplicate charge", "amount": "42.50", "currency": "USD", "parameters": { "reason": "duplicate" }}Example
| Field | Rules |
|---|---|
| request_id | Required. 1–100 characters: letters, digits and _ . : -. Your idempotency key, unique per agent. |
| action | Required. The action key, up to 64 characters. |
| on_behalf_of | Required. { "kind": "organisation" }, or employee / customer with an id. See principals. |
| resource | Required. type: lowercase letters, digits and underscores, starting with a letter, up to 64. id: 1–200 printable characters. |
| purpose | Required. 1–500 printable characters. |
| amount, currency | Together or not at all. amount: a non-negative decimal, up to 4 decimal places. currency: three capital letters (ISO 4217). |
| parameters | An object of up to 50 keys with string, number, boolean or null values, up to 8,000 bytes. Must fit the action definition. |
| grant_id | Optional. Evaluate only this grant. Leave it out and Arc picks the applicable grant. |
| agent_id | Optional. If given, it must be the authenticated agent, or the request is denied with AGENT_MISMATCH. |
Unknown fields are rejected.
02Idempotency
The request_id in the body is the idempotency key; this endpoint does not use an Idempotency-Key header.
- Same
request_id, same request:200with the original action. Nothing runs again. - Same
request_id, different request:409, “This request_id was already used for a different request.” - Two identical requests racing each other produce one action.
“Same request” means the same agent, grant, principal, action, resource, purpose, amount, currency and parameters.
03Response
201 for a new action, 200 for a replay. A denial is still 201: the request was valid, and the answer is no.
{ "action_id": "7d0c9e2a-…", "status": "succeeded", "request_id": "refund-ticket-77", "action": "refund:create", "resource": { "type": "payment", "id": "pay_3141" }, "on_behalf_of": { "kind": "customer", "id": "cus_8812" }, "amount": "42.50", "currency": "USD", "decision_id": "7d0c9e2a-…", "decision": "ALLOW", "reason_code": "AUTHORIZED", "explanation": "The request is within the agent's delegated authority.", "agent_id": "c41f…", "grant_id": "9a2e…", "grant_version": 3, "policy_refs": [], "timestamp": "2026-11-30T09:14:03.120551Z", "approval": null, "execution": { "execution_id": "e81b…", "status": "succeeded", "executed_at": "2026-11-30T09:14:03.402117Z", "http_status": 200, "captured": { "id": "re_5521", "status": "pending" }, "failure_code": null, "failure_message": null }, "refusal": null}Example
| Field | Meaning |
|---|---|
| action_id | The action’s id; also its decision_id. |
| status | Where the action is now. See statuses. |
| decision, reason_code, explanation | Arc’s decision, why, in a code and in words. |
| grant_id, grant_version | The grant, and the exact version, the decision was made under. |
| policy_refs | Each policy that applied: policy_id, version, effect, name. |
| approval | For held actions: approval_id, status (pending, approved, rejected, expired, revoked), expires_at, decided_at. |
| execution | Once Arc has acted: status (succeeded, failed, unknown), the system’s http_status, the captured fields, and any failure_code and message. |
| refusal | If Arc refused to act after the decision: code, category, message, refused_at. |
04GET /v1/actions/{action_id}
GET https://api.arcintell.org/v1/actions/7d0c9e2a-…Authorization: Bearer arc.<key_id>.<secret>Example
Returns the action in the same shape. An agent can read only its own actions; any other id returns 404, “Action not found.” Use it to follow a held action: poll at a modest interval, since an approval can take up to 24 hours.
05HTTP status codes
| Code | Meaning |
|---|---|
| 200 | A replay of an earlier request, or a successful GET. |
| 201 | A new action. Check its status: it may be refused. |
| 401 | Missing or invalid credential, or a disabled agent. |
| 404 | GET: no such action for this agent. |
| 409 | The request_id was already used for a different request. |
| 422 | The body is invalid, or the parameters do not fit the action definition (INVALID_PARAMETERS). Nothing is recorded. |
| 500 | An unexpected error. See error handling. |
