---
title: "Stop a realtime transcription"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Stop a realtime transcription

Path: CloudRaker Paperwork API › Realtime Transcriptions

`POST /v1/realtime/transcriptions/{id}/stop`

Stops the session. The decoder finishes the current utterance, the client gets its last finals, and the socket closes. A stop on a closed session answers `202` too.

**Learn more:** [Realtime transcription](https://docs.cloudraker.com/paperwork/capabilities/realtime-transcription)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `id` (`stopRealtimeTranscription.path.id`; string, required)

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/v1/realtime/transcriptions/<id>/stop' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/realtime/transcriptions/<id>/stop';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/v1/realtime/transcriptions/<id>/stop"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 202

The session, now closing or already closed.

#### Example

```json
{
  "object": "realtime_transcription",
  "id": "rtt_01KZ0000000000000000000000",
  "status": "created",
  "closeReason": "client_end",
  "audio": {
    "encoding": "pcm_s16le",
    "sampleRate": 16000,
    "channels": 1
  },
  "maxDurationSeconds": -9007199254740991,
  "audioSeconds": 0,
  "billedMinutes": -9007199254740991,
  "finalPass": {
    "enabled": true,
    "status": "disabled",
    "fileId": "string"
  },
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "connectedAt": "2019-08-24T14:15:22Z",
  "closedAt": "2019-08-24T14:15:22Z",
  "connectBy": "2019-08-24T14:15:22Z",
  "websocket": {
    "object": "realtime_transcription_ticket",
    "url": "string",
    "expiresAt": "2019-08-24T14:15:22Z"
  }
}
```

- `object` (`stopRealtimeTranscription.response.202.object`; string, required)
- `id` (`stopRealtimeTranscription.response.202.id`; string, required)
  - example `"rtt_01KZ0000000000000000000000"`
- `status` (`stopRealtimeTranscription.response.202.status`; string, required)
  - one of `"created"`, `"active"`, `"closing"`, `"closed"`, `"expired"`, `"failed"`
- `closeReason` (`stopRealtimeTranscription.response.202.closeReason`; any of, required)
  - any of:
    - `string`: one of `"client_end"`, `"stopped"`, `"idle_timeout"`, `"max_duration"`, `"credits_exhausted"`, `"worker_unavailable"`, `"too_fast"`, `"internal_error"`
    - `null`
- `audio` (`stopRealtimeTranscription.response.202.audio`; object, required)
  - `encoding` (`stopRealtimeTranscription.response.202.audio.encoding`; string, required)
  - `sampleRate` (`stopRealtimeTranscription.response.202.audio.sampleRate`; number, required)
  - `channels` (`stopRealtimeTranscription.response.202.audio.channels`; number, required)
- `maxDurationSeconds` (`stopRealtimeTranscription.response.202.maxDurationSeconds`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `audioSeconds` (`stopRealtimeTranscription.response.202.audioSeconds`; number, required) — Received audio, in seconds.
- `billedMinutes` (`stopRealtimeTranscription.response.202.billedMinutes`; integer, required) — Minutes charged so far.
  - min -9007199254740991; max 9007199254740991
- `finalPass` (`stopRealtimeTranscription.response.202.finalPass`; object, required)
  - `enabled` (`stopRealtimeTranscription.response.202.finalPass.enabled`; boolean, required)
  - `status` (`stopRealtimeTranscription.response.202.finalPass.status`; string, required)
    - one of `"disabled"`, `"recording"`, `"uploading"`, `"processing"`, `"ready"`, `"failed"`, `"skipped"`
  - `fileId` (`stopRealtimeTranscription.response.202.finalPass.fileId`; string | null, required) — A normal /v1 file (`GET /v1/files/{id}`).
- `metadata` (`stopRealtimeTranscription.response.202.metadata`; any of, required)
  - any of: `map<string>`, `null`
- `createdAt` (`stopRealtimeTranscription.response.202.createdAt`; string, required)
  - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
- `connectedAt` (`stopRealtimeTranscription.response.202.connectedAt`; any of, required)
  - any of: `string`, `null`
- `closedAt` (`stopRealtimeTranscription.response.202.closedAt`; any of, required)
  - any of: `string`, `null`
- `connectBy` (`stopRealtimeTranscription.response.202.connectBy`; any of, required) — Connect before this time, or the session expires. Null once a client connected.
  - any of: `string`, `null`
- `websocket` (`stopRealtimeTranscription.response.202.websocket`; object, optional) — Only in the create response.
  - `object` (`stopRealtimeTranscription.response.202.websocket.object`; string, required)
  - `url` (`stopRealtimeTranscription.response.202.websocket.url`; string, required) — The `wss://` URL to open. It carries a single-use ticket that expires after 60 seconds.
  - `expiresAt` (`stopRealtimeTranscription.response.202.websocket.expiresAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`

### 401

Missing or invalid credential.

### 403

The credential may not use the /v1 API.

### 404

Unknown id, or another API key created it.

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`stopRealtimeTranscription.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`stopRealtimeTranscription.response.429.message`; string, required)
- `retryable` (`stopRealtimeTranscription.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`stopRealtimeTranscription.response.429.requestId`; string, required)
- `docUrl` (`stopRealtimeTranscription.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/realtime-transcriptions/stop-realtime-transcription/index.md
