RaiCentral

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

  1. Hold the action and keep its exact parameters.
  2. Poll the status, or subscribe to approval.* webhooks.
  3. When can_retry is true, send the same action again with approval_request_id.
  4. Execute only if that second decision is ALLOW.
PropertyBehavior
BindingSame runtime identity, tool and parameters
UseOnce. The next identical action needs a new approval
Expiry15 minutes by default
Status pollGET /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.

bash
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.

The approval inbox with expiry countdowns · Community Edition console · sample data

/governance/approvals

Approval inbox with pending requests, risk level and expiry countdown