Sessions

Cancel session turn

Request cancellation of the in-progress Turn. The body may be empty or {}. Idempotency-Key is required. An idle Session also returns 202 with accepted true and nothing changes.

post/v1/agents/sessions/{session_id}/cancel

Request

  • Base URL: https://api.sandbase.ai
  • URL: https://api.sandbase.ai/v1/agents/sessions/{session_id}/cancel
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Headers

Idempotency-Keystring required

Required. 1-128 characters without leading or trailing whitespace. Reuse the same key and body when retrying.

Request body

EmptyObject required

Response

Cancellation accepted

session_idstring required
acceptedtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.