Skip to content
Docs

POST /v1/actions

Request an action over HTTP, and follow it: every field, limit and response.

01POST /v1/actions

Asks Arc to perform an action. Arc decides, and on ALLOW performs it before responding.

HTTP
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

FieldRules
request_idRequired. 1–100 characters: letters, digits and _ . : -. Your idempotency key, unique per agent.
actionRequired. The action key, up to 64 characters.
on_behalf_ofRequired. { "kind": "organisation" }, or employee / customer with an id. See principals.
resourceRequired. type: lowercase letters, digits and underscores, starting with a letter, up to 64. id: 1–200 printable characters.
purposeRequired. 1–500 printable characters.
amount, currencyTogether or not at all. amount: a non-negative decimal, up to 4 decimal places. currency: three capital letters (ISO 4217).
parametersAn object of up to 50 keys with string, number, boolean or null values, up to 8,000 bytes. Must fit the action definition.
grant_idOptional. Evaluate only this grant. Leave it out and Arc picks the applicable grant.
agent_idOptional. 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: 200 with 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

FieldMeaning
action_idThe action’s id; also its decision_id.
statusWhere the action is now. See statuses.
decision, reason_code, explanationArc’s decision, why, in a code and in words.
grant_id, grant_versionThe grant, and the exact version, the decision was made under.
policy_refsEach policy that applied: policy_id, version, effect, name.
approvalFor held actions: approval_id, status (pending, approved, rejected, expired, revoked), expires_at, decided_at.
executionOnce Arc has acted: status (succeeded, failed, unknown), the system’s http_status, the captured fields, and any failure_code and message.
refusalIf Arc refused to act after the decision: code, category, message, refused_at.

04GET /v1/actions/{action_id}

HTTP
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

CodeMeaning
200A replay of an earlier request, or a successful GET.
201A new action. Check its status: it may be refused.
401Missing or invalid credential, or a disabled agent.
404GET: no such action for this agent.
409The request_id was already used for a different request.
422The body is invalid, or the parameters do not fit the action definition (INVALID_PARAMETERS). Nothing is recorded.
500An unexpected error. See error handling.