Skip to main content
POST /api/v1/forward/sessions/{session_id}/cancel Requests cancellation of the current turn. If no turn is running, the endpoint returns success without starting a cancellation.

Headers

Path parameters

Example request

Example response

HTTP 202 Accepted

Response fields

Errors

Notes

  • 202 Accepted means a cancellation was requested.
  • 200 OK means there was no currently running turn to cancel.
  • Confirm completion through Event Stream or by polling Session status.

Stream session events

Send session events