resolve_agent_approval
POST
/v1/agent/approvals/{approval_id}
const url = 'https://example.com/v1/agent/approvals/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"decision":"approve","message":"example","remember_for_session":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/agent/approvals/example \ --header 'Content-Type: application/json' \ --data '{ "decision": "approve", "message": "example", "remember_for_session": true }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” approval_id
required
string
Approval ID from the approval-required SSE event
Request Body required
Section titled “Request Body required ” Media type application/json
Decision payload for a pending agentic tool approval.
object
decision
required
string
message
Optional note passed back to the model on denial.
string | null
remember_for_session
Auto-approve all later tool calls in the same session.
boolean
Responses
Section titled “ Responses ”Decision applied or queued
Media type application/json
object
status
required
“resolved”, “queued”, or “not_found”.
string
Example generated
{ "status": "example"}Unknown approval ID
Media type application/json
object
status
required
“resolved”, “queued”, or “not_found”.
string
Example generated
{ "status": "example"}