Skip to main content
DELETE
Cancel stream

Authorizations

Authorization
string
header
required

Session token (snat_…) minted by POST /v1/token. Carries the organization and the end user; safe in a browser.

Query Parameters

threadId
string
required

Thread identifier

Example:

"thread_2f81c04a"

streamId
string

The run to cancel — the X-Request-Id returned by the POST /v1/chat that started it. When provided, a mismatch is a no-op, so a stale stop cannot abort a newer run on the same thread.

Example:

"stream_5b7e93d1"

Response

Cancellation result

cancelled
boolean