Skip to main content
POST
Resolves a pending approval and hands the loop back to the agent (the session flips back to agent_status=working when it was waiting on this approval). Resolution is role-gated server-side and fails closed, for API keys and dashboard users alike:
  • Org admins and owners can always resolve.
  • Otherwise the resolver must match the approval’s required_role or belong to its required_team_id (either one suffices when both are set).
  • With no constraints, anyone with access to the session can resolve.
  • Personal (no-org) sessions: only the session owner.
Required scope: sessions:write

Path Parameters

string
required
The session ID.
string
required
The approval ID.

Request Body

string
required
approve or reject.
string
Optional resolution note (max 512 characters), recorded on the approval and surfaced to the agent.

Errors