---
title: "Create a realtime transcription ticket"
---

> 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.

# Create a realtime transcription ticket

Path: CloudRaker Paperwork API › Realtime Transcriptions

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

Returns a new `wss://` URL with a single-use ticket that expires after 60 seconds. Use it when a client must reconnect and has no `resumeTicket`. A newer ticket disconnects the client that holds an older one. This call is not billed.

**Learn more:** [Realtime transcription](https://docs.cloudraker.com/paperwork/capabilities/realtime-transcription) · [Create a realtime transcription](https://docs.cloudraker.com/paperwork/api/realtime-transcriptions/create-realtime-transcription)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Request body

_Required._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/v1/realtime/transcriptions/<id>/tickets' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/realtime/transcriptions/<id>/tickets';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({})
};

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>/tickets"

payload = {}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 201

The ticket URL.

#### Example

```json
{
  "object": "realtime_transcription_ticket",
  "url": "string",
  "expiresAt": "2019-08-24T14:15:22Z"
}
```

- `object` (`createRealtimeTranscriptionTicket.response.201.object`; string, required)
- `url` (`createRealtimeTranscriptionTicket.response.201.url`; string, required) — The `wss://` URL to open. It carries a single-use ticket that expires after 60 seconds.
- `expiresAt` (`createRealtimeTranscriptionTicket.response.201.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))$`

### 400

`invalid_request` — the body is not empty.

### 401

Missing or invalid credential.

### 403

The credential may not use the /v1 API.

### 404

Unknown id, or another API key created it.

### 409

`session_closed` — the session is closing or closed.

### 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` (`createRealtimeTranscriptionTicket.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`createRealtimeTranscriptionTicket.response.429.message`; string, required)
- `retryable` (`createRealtimeTranscriptionTicket.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`createRealtimeTranscriptionTicket.response.429.requestId`; string, required)
- `docUrl` (`createRealtimeTranscriptionTicket.response.429.docUrl`; string, optional)


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