Skip to main content
POST
Approve or reject a tool call

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

run_id
string<uuid>
required

ID of the run record.

approval_id
string<uuid>
required

ID of the approval.

Body

application/json

Approve or reject a waiting tool call.

decision
enum<string>
required
Available options:
approve,
reject
reason
string | null

Why, when rejecting.

Maximum string length: 500
args
Args · object | null

Approve with these arguments instead of the ones the agent sent. Only with approve, and only for a tool call.

Response

Successful Response

A request for approval during a run, and its decision if it has one.

id
string<uuid>
required
run_id
string<uuid>
required
kind
string
required

tool, or checkpoint before a task.

tool
string
required
requested_at
string<date-time>
required
source
string
required

person, or schedule for a pre-approval.

task_id
string | null
args
any

The call's arguments, masked.

decision
string | null

approved, rejected or expired. Null while waiting.

decided_by
string | null
decided_at
string<date-time> | null
reason
string | null
edited
boolean
default:false

The approver changed the call's arguments.

can_decide
boolean
default:false

Whether the caller may decide this one.