Skip to main content
POST
Decide an action approval
Settles an approval request. Use approve always to grant a standing permission so the agent stops asking. For broader limits on agent behavior, see Rules. approve runs the action once; approve_always also records a standing permission (where the action offers one); reject refuses it, optionally with a reason the agent sees. Approvals expire after 24 hours.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

agentId
string
required
approvalId
string
required

Body

application/json
decision
enum<string>
required
Available options:
approve,
approve_always,
reject
reason
string
Maximum string length: 500

Response

The outcome

kind
enum<string>
Available options:
decided
status
enum<string>
Available options:
approved,
executed,
failed,
rejected