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
| Name | Type | Required | Constraints | Description |
|---|
| session_id | path: string | Yes | — | — |
Example
BASE_URL=https://radiologydictation.com
curl --request DELETE "$BASE_URL/v1/stream-sessions/$SESSION_ID" \
--header "Authorization: Bearer $API_KEY"
Responses
| Status | Description | Type |
|---|
| 204 | Successful Response | — |
| 422 | Validation Error | HTTPValidationError · application/json |
Schemas
HTTPValidationError
| Name | Type | Required | Constraints | Description |
|---|
| detail | array<ValidationError> | No | — | — |
ValidationError
| Name | Type | Required | Constraints | Description |
|---|
| loc | array<string | integer> | Yes | — | — |
| msg | string | Yes | — | — |
| type | string | Yes | — | — |
| input | object | No | — | — |
| ctx | object | No | — | — |