cURL
curl --request POST \ --url https://api.example.com/approvals/{approval_id}/resolve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "status": "<string>", "resolved_by": "<string>", "resolution_data": {} } '
{ "id": "<string>", "run_id": "<string>", "session_id": "<string>", "status": "<string>", "source_type": "<string>", "approval_type": "<string>", "pause_type": "<string>", "tool_name": "<string>", "tool_args": {}, "expires_at": 123, "agent_id": "<string>", "team_id": "<string>", "workflow_id": "<string>", "user_id": "<string>", "schedule_id": "<string>", "schedule_run_id": "<string>", "source_name": "<string>", "requirements": [ {} ], "context": {}, "resolution_data": {}, "resolved_by": "<string>", "resolved_at": 123, "created_at": 123, "updated_at": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request body for resolving (approve/reject) an approval.
255
Successful Response
Response model for a single approval.
Was this page helpful?