Agent Sessions

Approve 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

decision'granted' | 'denied' required

Granted or denied.

Example request

{
  "decision": "granted"
}

Response

Approval granted.

approvalIdstring required

Approval that was decided.

decision'granted' | 'denied' required

Decision that was stored.

Example response

{
  "approvalId": "session_abc123/turn/0/approval/0",
  "decision": "granted"
}

Changes