Approvals
Resolve an approval
Approves or denies a pending approval request. Runs that perform
sensitive actions pause with status awaiting_approval until every
pending approval is resolved.
Authorization
bearerAuth AuthorizationBearer <token>
Pass your API key in the Authorization header: Authorization: Bearer sirius_sk_....
In: header
Path Parameters
run_id*string
Identifier of the agent run.
approval_id*string
Identifier of the approval request.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agent/runs/run_01j9x6q8ftq/approvals/apr_01j9x7v2m3" \ -H "Content-Type: application/json" \ -d '{ "decision": "approve", "reason": "Verified the target account manually." }'{ "id": "apr_01j9x7v2m3", "action": "Send email to 1,204 recipients", "status": "pending", "requested_at": "2019-08-24T14:15:22Z", "resolved_at": "2019-08-24T14:15:22Z"}{ "error": { "code": "invalid_request", "message": "string" }}{ "error": { "code": "invalid_request", "message": "string" }}{ "error": { "code": "invalid_request", "message": "string" }}