Decide approval
Approve or reject a pending approval request.
Approving resumes the run. Rejecting fails the run, or resumes it with the rejection when the request's on_rejection is continue. Returns 409 when the request is no longer pending or its run has ended.
Required permission: approvals.decide.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
Approval ID from GET /approvals.
Request body
Decision on a pending approval request.
approved resumes the run. rejected fails the run, or resumes it when the agent's on_rejection is continue.
Optional note. On rejection it is added to the run error or passed to the agent.
Text returned to the agent as the tool result. Required when approving a request with a response_label; not accepted otherwise.
Response
Successful Response
A paused tool call that waits for a human to approve it or provide input.
Run that is paused until the request is decided.
Environment of the run.
Agent that made the tool call.
Tool the agent wants to call.
Arguments of the pending tool call.
Message for reviewers from the agent's approval settings.
Label of the text a reviewer must provide when approving. Set for human input requests; null for plain approvals.
Whether the reviewer's response is redacted from recorded run data.
Seconds the request waits for a decision before it times out (30 to 604800).
What happens on rejection or timeout: fail ends the run, continue resumes it and tells the agent the call was not approved.
pending until decided. timeout when no decision arrived in time or the run ended first.
When the request was resolved. null while pending.
ID of the user who decided, or a system value such as system for automatic resolutions. null while pending.
Email of the user who decided, or a system value for automatic resolutions. null while pending.
Note given with the decision, or why the request was closed automatically. null when none.
Changes
No recorded changes to this operation across all 17 revisions of this API.