Agent Sessions
Approve
Changed onApprove allows the paused chat action. It posts decision granted for approval session_abc123/turn/0/approval/0. The response repeats that approval and decision granted.
post/v1/agent-sessions/{id}/approvals/{approvalId}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /v1/agent-sessions/{id}/approvals/{approvalId}
- Auth: HTTP bearer
Path parameters
idstring required
Session id.
Example:session_abc123
Stable session id.
approvalIdstring required
Approval id.
Example:session_abc123/turn/0/approval/0
Request body
Example request
{
"decision": "granted"
}Response
Approval granted.
Example response
{
"approvalId": "session_abc123/turn/0/approval/0",
"decision": "granted"
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking