Reference · Error codes
Error: approval_required
The operation needs a human approval before it can proceed.
HTTP 403 · problem type: https://docs.gebsecure.com/errors/approval_required · title: approval_required
Common causes#
- An administrative action protected by the two-person rule (
PUT /v1/governance/admin-policies): the first call fails withdetails.approvalIdanddetails.snapshotHash.
What to do#
- Have a second administrator approve the request, then retry with the header
x-gebsecure-approval-id: <approvalId>. - Agent actions that need approval are not errors:
authorizereturnsAPPROVAL_REQUIREDandexecutereturnsawaiting_approval(see Approvals).
In the SDKs#
| SDK | Error type |
|---|---|
| TypeScript | ApprovalRequiredError |
| Python | ApprovalRequiredError |
| Go | ErrApprovalRequired |
| Java | ApprovalRequiredException |
| .NET | ApprovalRequiredException |
Every error response is RFC 9457 application/problem+json; see the error model.