Cancel Stream

Markdown
DELETE /v1/stream-sessions/{session_id}

Cancel a session that has not connected yet. Use the same API key that created it. Cancellation removes the one-time ticket; the session charge is retained. A connected session must be finished over its WebSocket or checked for its final state.

Authentication

Create a named API key in your workspace’s API keys tab, then send it in the Authorization header on each API request. Your key connects the integration to that workspace’s saved settings and Word templates. Signing into the website does not replace this header in an API integration.

Authorization: Bearer <API_KEY>

Keep the key in your application’s server-side secret configuration. It is shown only once when created, so save it securely then. Do not place it in browser code, logs, version control, or a prompt sent to your coding agent. You can revoke an integration’s key from the workspace without changing the other keys.

Parameters

NameTypeRequiredConstraintsDescription
session_idpath: stringYes——

Example

BASE_URL=https://radiologydictation.com

curl --request DELETE "$BASE_URL/v1/stream-sessions/$SESSION_ID" \
  --header "Authorization: Bearer $API_KEY"

Responses

StatusDescriptionType
204Successful Response—
422Validation ErrorHTTPValidationError · application/json

Schemas

HTTPValidationError

NameTypeRequiredConstraintsDescription
detailarray<ValidationError>No——

ValidationError

NameTypeRequiredConstraintsDescription
locarray<string | integer>Yes——
msgstringYes——
typestringYes——
inputobjectNo——
ctxobjectNo——

Select and copy