Docs / Governance
Human approvals
Action-bound, single-use decisions and how your code resumes.
When a rule or platform control requires approval, the decision is REQUIRE_APPROVAL with an approval_request_id. Approval does not run the action.
Resume flow
- Hold the action and keep its exact parameters.
- Poll the status, or subscribe to
approval.*webhooks. - When
can_retryis true, send the same action again withapproval_request_id. - Execute only if that second decision is
ALLOW.
| Property | Behavior |
|---|---|
| Binding | Same runtime identity, tool and parameters |
| Use | Once. The next identical action needs a new approval |
| Expiry | 15 minutes by default |
| Status poll | GET /sdk/v1/approvals/{id} returns status, can_retry, terminal, expires_at |
Decide through the API
Reviewers normally use Approvals in the console. An API decision must name the membership the reviewer acts under, from GET /v1/auth/me.
curl -X POST $RAI_BASE_URL/v1/approval-requests/$REQUEST_ID/approve \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"acting_membership_id":"'$MEMBERSHIP_ID'","decision_reason":"Within allowance"}'/reject takes the same body. /cancel withdraws a pending request.
Deployments can require stronger sign-in for decisions with APPROVAL_MINIMUM_ACR, APPROVAL_REQUIRED_AMR and APPROVAL_MAX_AUTH_AGE_SECONDS, together with OIDC.