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

# TikTok LIVE Transcription

> Start transcribing what is said in a TikTok LIVE room, as it is said. Identify the room by `room_id`, by streamer (`username`) or by LIVE URL: send exactly one of the three. The room must be on air.

The call starts a **session** and answers at once with its `id`. From then on the room's sound is transcribed continuously, until the LIVE ends, you stop the session (`DELETE`), or `max_duration_minutes` is reached. A session must be followed: closing your connection does not stop it, but a session nobody follows for a while (no event stream open on it, no read of it, no webhook delivering) stops by itself with `end_reason: "no_reader"`.

**Reading the transcript.** Three ways, which can be combined:

| How | Call | Best for |
|---|---|---|
| Event stream | `GET /tiktok/live/transcribe/events` | Receiving each sentence as it is said, over one HTTP connection for all your sessions |
| Polling | `GET /tiktok/live/transcribe/{session_id}?after_seq=N` | Simple integrations, and catching up after an interruption |
| Webhook | `webhook_url` in this request | Servers that prefer to be called |

**Final and partial text.** A *final* sentence is delivered once, typically one to two seconds after it was said, and never changes: it has a number (`seq`), its start and end in the session, its language and, with `include_speakers`, a speaker label. With `include_partials`, the event stream also carries the sentence being said (`partial`), updated several times a second; a partial can still change, and is replaced by the final sentence.

**One session per room.** Starting a session on a room your organization already transcribes returns the running session (`200`) instead of a second one.

A session and its sentences stay readable for 24 hours after it ends.

An organization can transcribe a limited number of rooms at the same time, depending on its plan; past it the call answers `429 too_many_active_sessions`. When the service cannot take one more room at that moment, the call answers `503 system_overload` with `retry_after_seconds`: nothing was started, retry later. See https://docs.vidnavigator.com/api-reference/rate-limiting

Usually answers in 1-5 s, sometimes up to ~30 s; allow a client timeout of 120 s.

Start transcribing what is said in a TikTok LIVE room, as it is said, and get a session `id` back at once.

## Overview

This endpoint starts a **session** on one LIVE room. From then on the sound of the room is transcribed continuously, until the LIVE ends, you [stop the session](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe-stop.md), or `max_duration_minutes` is reached.

- The room is given by `room_id`, by streamer (`username`) or by LIVE URL, like on [TikTok LIVE Room](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-room.md). It must be on air.
- A **final** sentence is delivered typically one to two seconds after it was said, and never changes.
- The language is detected sentence by sentence, so a LIVE can mix languages. Pass `language` when you know it.
- With `include_speakers`, each sentence carries a label (`A`, `B`...). Labels tell voices apart: they do not identify people.
- **One session per room** and organization: starting it a second time returns the running session (`200`), not a second one.
- A session and its sentences stay readable for **24 hours** after it ends.
- The call usually answers in 1 to 5 seconds, sometimes up to \~30 seconds. Allow a client timeout of 120 seconds.

> [!NOTE]
>
> **Availability:** every plan. How many rooms an organization can transcribe at the same time depends on its plan: see the [limits](https://docs.vidnavigator.com/api-reference/rate-limiting.md#tiktok-live-transcription).

### Reading the transcript

Three ways, which can be combined:

| How          | Call                                                                                                                                                  | Best for                                                                                                              |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| Event stream | [`GET /tiktok/live/transcribe/events`](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe-events.md)                         | Receiving each sentence as it is said, over one HTTP connection for all your sessions                                 |
| Polling      | [`GET /tiktok/live/transcribe/{session_id}`](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe-session.md) with `after_seq` | Simple integrations, and catching up after an interruption                                                            |
| Webhook      | `webhook_url` in this request                                                                                                                         | Servers that prefer to be called. See [Webhooks](https://docs.vidnavigator.com/webhooks.md#tiktok-live-transcription) |

The guide [Transcribing a TikTok LIVE in Real Time](https://docs.vidnavigator.com/guides/tiktok-live-transcription.md) walks through the three, with code.

## Billing

A session is billed for the time actually transcribed (`live_transcription_hour`), plus one TikTok request (`residential_request`) when it starts. Reading the transcript, listing and stopping sessions cost nothing. A call that starts nothing is not billed.

Rates and rules: [Usage Costs](https://docs.vidnavigator.com/api-reference/usage-costs.md#tiktok-live-transcription).

## Request Parameters

Send **exactly one** of `room_id`, `username` or `url`.

| Parameter              | Type    | Required     | Description                                                                                                                                                                                                                                                                                              |
| ---------------------- | ------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `room_id`              | string  | One of three | A LIVE room ID, e.g. the `id` of a [LIVE search](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-search.md) room. Send it as a **string**: room IDs have more digits than a JavaScript number holds.                                                                                    |
| `username`             | string  | One of three | The streamer's TikTok username, with or without `@`: their current LIVE.                                                                                                                                                                                                                                 |
| `url`                  | string  | One of three | A LIVE URL (`https://www.tiktok.com/@username/live`), a profile URL (`https://www.tiktok.com/@username`), or a room's `share_url` (`https://m.tiktok.com/share/live/<room_id>`). Short `vm.tiktok.com` links are not accepted.                                                                           |
| `language`             | string  | No           | The language spoken, as a two-letter code (`en`, `fr`, `ar`...), when you know it: the transcript is more accurate. Leave it out for a LIVE in several languages or in an unknown one.                                                                                                                   |
| `max_duration_minutes` | integer | No           | The session stops by itself once this many minutes were transcribed, from `1` to `1440` (24 hours). Default `60`.                                                                                                                                                                                        |
| `include_partials`     | boolean | No           | Default `false`. Also deliver the sentence being said, before it is final: `partial` events on the event stream, and `partial` on the session's `GET`.                                                                                                                                                   |
| `include_speakers`     | boolean | No           | Default `false`. Add a `speaker` label (`A`, `B`...) to each final sentence.                                                                                                                                                                                                                             |
| `webhook_url`          | string  | No           | Where to POST the final sentences as they come, and the end of the session. Must be a public `https` URL. The account default webhook set in Studio is **not** used for LIVE transcription: only this parameter is. See [Webhooks](https://docs.vidnavigator.com/webhooks.md#tiktok-live-transcription). |

## Example Usage

```bash cURL
curl -X POST "https://api.vidnavigator.com/v1/tiktok/live/transcribe" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "creator",
    "language": "en",
    "max_duration_minutes": 120
  }'
```

```python Python
from vidnavigator import VidNavigatorClient

client = VidNavigatorClient(api_key="YOUR_API_KEY")
resp = client.start_tiktok_live_transcription(username="creator", language="en", max_duration_minutes=120)

session = resp.data.session
print(session.id, session.status)
```

```javascript JavaScript
import { VidNavigatorClient } from 'vidnavigator';

const vn = new VidNavigatorClient({ apiKey: 'YOUR_API_KEY' });
const { session } = await vn.startTikTokLiveTranscription({
  username: 'creator',
  language: 'en',
  max_duration_minutes: 120,
});

console.log(session.id, session.status);
```

## Success Response (201 Created)

```json
{
  "status": "success",
  "data": {
    "session": {
      "id": "3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55",
      "status": "starting",
      "end_reason": null,
      "error": null,
      "room": {
        "id": "7705498471838665494",
        "title": "Late night Q&A",
        "url": "https://www.tiktok.com/@creator/live",
        "author": { "unique_id": "creator", "nickname": "Creator" }
      },
      "language": "en",
      "include_partials": false,
      "include_speakers": false,
      "max_duration_minutes": 120,
      "created_at": "2026-12-03T11:18:19.412Z",
      "started_at": null,
      "ended_at": null,
      "duration_seconds": 0.0,
      "segments_count": 0,
      "stop_requested": false
    },
    "events_url": "/v1/tiktok/live/transcribe/events?session_id=3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55",
    "check_status_url": "/v1/tiktok/live/transcribe/3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55"
  }
}
```

The answer is `200` with the same shape when your organization already transcribes this room: `session` is then the running session, and nothing new is started or billed.

- `events_url`: the [event stream](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe-events.md) of this session.
- `check_status_url`: the [session and its final sentences](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe-session.md).

## The Session

Every LIVE transcription endpoint returns the session in the same shape.

| Field                                                          | Description                                                                                                                                                     |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                                                           | The session ID (a UUID). Keep it: it reads, streams and stops the session.                                                                                      |
| `status`                                                       | `starting`, `listening`, `ended` or `failed`. See below.                                                                                                        |
| `end_reason`                                                   | Why an `ended` session ended. `null` otherwise.                                                                                                                 |
| `error`                                                        | Why a `failed` session failed: `code` and `message`. `null` otherwise.                                                                                          |
| `room`                                                         | The room being transcribed: `id`, `title`, `url`, `author.unique_id`, `author.nickname`.                                                                        |
| `language`                                                     | The `language` given at the start, or `null`.                                                                                                                   |
| `include_partials`, `include_speakers`, `max_duration_minutes` | The options of the session.                                                                                                                                     |
| `created_at`                                                   | When the session was started (UTC, ISO 8601).                                                                                                                   |
| `started_at`                                                   | When it started listening, or `null`.                                                                                                                           |
| `ended_at`                                                     | When it ended, or `null`.                                                                                                                                       |
| `duration_seconds`                                             | Seconds of the LIVE transcribed so far.                                                                                                                         |
| `segments_count`                                               | Final sentences so far: the `seq` of the last one.                                                                                                              |
| `stop_requested`                                               | `true` once a stop was asked with [`DELETE`](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe-stop.md), until the session has ended. |

#### `status`

| `status`    | Meaning                                                                                        |
| ----------- | ---------------------------------------------------------------------------------------------- |
| `starting`  | Accepted, not listening yet. It lasts a second or two.                                         |
| `listening` | The room is being transcribed.                                                                 |
| `ended`     | Over. `end_reason` says why.                                                                   |
| `failed`    | The session could not go on. `error` says why. What was transcribed until then stays readable. |

#### `end_reason`

| `end_reason`           | Meaning                                                                                                                                                                                                                                                                   |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `live_ended`           | The LIVE ended.                                                                                                                                                                                                                                                           |
| `stopped`              | You stopped the session.                                                                                                                                                                                                                                                  |
| `max_duration_reached` | `max_duration_minutes` of the LIVE were transcribed.                                                                                                                                                                                                                      |
| `insufficient_credits` | Your organization ran out of credits.                                                                                                                                                                                                                                     |
| `no_reader`            | Nobody followed the session for 2 minutes: no event stream open on it, no read of it, no webhook delivering. Closing your connection does not stop a session: [how a session ends](https://docs.vidnavigator.com/guides/tiktok-live-transcription.md#how-a-session-ends). |

#### `error.code`

| `error.code`                | Meaning                                  |
| --------------------------- | ---------------------------------------- |
| `transcription_unavailable` | The transcription could not go on.       |
| `stream_unavailable`        | The sound of the LIVE could not be read. |
| `internal_error`            | An unexpected error.                     |

A `failed` session is not restarted for you: start a new one on the room if the LIVE is still on air.

## Error Cases

| Status | `error`                                                                                                       | When                                                                                                                                                                                                                      |
| ------ | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `400`  | `request_body_required`                                                                                       | No JSON body                                                                                                                                                                                                              |
| `400`  | `invalid_parameter`                                                                                           | None, or more than one, of `room_id`, `username`, `url`; or a `webhook_url` that is not a public `https` URL                                                                                                              |
| `400`  | `invalid_room_id` / `invalid_username` / `invalid_url`                                                        | The room ID, username or URL is malformed                                                                                                                                                                                 |
| `400`  | `invalid_language` / `invalid_max_duration_minutes` / `invalid_include_partials` / `invalid_include_speakers` | Wrong type, a `language` that is not a two-letter code, or `max_duration_minutes` outside 1-1440                                                                                                                          |
| `402`  | `insufficient_credits`                                                                                        | Not enough credits to start a session                                                                                                                                                                                     |
| `403`  | `access_denied`                                                                                               | LIVE transcription is not enabled for your organization                                                                                                                                                                   |
| `404`  | `live_not_found`                                                                                              | The room ID does not exist, or the account does not exist or has never gone LIVE. Not billed.                                                                                                                             |
| `409`  | `live_ended`                                                                                                  | The LIVE is not on air: it has ended, or the streamer is offline. Not billed.                                                                                                                                             |
| `429`  | `too_many_active_sessions`                                                                                    | Your organization transcribes as many rooms at once as its plan allows (see the [limits](https://docs.vidnavigator.com/api-reference/rate-limiting.md#tiktok-live-transcription)). Stop a session or wait for one to end. |
| `502`  | `live_room_unavailable`                                                                                       | TikTok did not serve the room. Retry in a moment. Not billed.                                                                                                                                                             |
| `503`  | `system_overload`                                                                                             | The service cannot take one more room right now. Nothing was started or billed. Retry after `retry_after_seconds`, given in the answer and in the `Retry-After` header.                                                   |

```json
{
  "status": "error",
  "error": "system_overload",
  "error_code": "system_overload",
  "message": "LIVE transcription is at full capacity right now. Please retry in a minute. You were not charged.",
  "retry_after_seconds": 60,
  "charge_user": false
}
```

## Tips

- Find rooms to transcribe with [TikTok LIVE Search](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-search.md) (by keyword and country), and pass a room's `id` as `room_id`.
- To know whether a streamer is on air before starting, call [TikTok LIVE Room](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-room.md) with their `username`: `status` is `live` or `ended`. Starting a session on a LIVE that is not on air answers `409 live_ended`.
- A LIVE can last many hours and every minute transcribed is billed: set `max_duration_minutes` to what you need, and stop the sessions you no longer read.
- Starting a session is safe to repeat: a second call on the same room returns the running session.

## OpenAPI

````yaml POST /tiktok/live/transcribe
openapi: 3.0.3
info:
  title: VidNavigator Developer API
  version: 1.0.0
servers:
  - url: https://api.vidnavigator.com/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /tiktok/live/transcribe:
    post:
      summary: Transcribe a TikTok LIVE in real time
      description: |-
        Start transcribing what is said in a TikTok LIVE room, as it is said. Identify the room by `room_id`, by streamer (`username`) or by LIVE URL: send exactly one of the three. The room must be on air.

        The call starts a **session** and answers at once with its `id`. From then on the room's sound is transcribed continuously, until the LIVE ends, you stop the session (`DELETE`), or `max_duration_minutes` is reached. A session must be followed: closing your connection does not stop it, but a session nobody follows for a while (no event stream open on it, no read of it, no webhook delivering) stops by itself with `end_reason: "no_reader"`.

        **Reading the transcript.** Three ways, which can be combined:

        | How | Call | Best for |
        |---|---|---|
        | Event stream | `GET /tiktok/live/transcribe/events` | Receiving each sentence as it is said, over one HTTP connection for all your sessions |
        | Polling | `GET /tiktok/live/transcribe/{session_id}?after_seq=N` | Simple integrations, and catching up after an interruption |
        | Webhook | `webhook_url` in this request | Servers that prefer to be called |

        **Final and partial text.** A *final* sentence is delivered once, typically one to two seconds after it was said, and never changes: it has a number (`seq`), its start and end in the session, its language and, with `include_speakers`, a speaker label. With `include_partials`, the event stream also carries the sentence being said (`partial`), updated several times a second; a partial can still change, and is replaced by the final sentence.

        **One session per room.** Starting a session on a room your organization already transcribes returns the running session (`200`) instead of a second one.

        A session and its sentences stay readable for 24 hours after it ends.

        An organization can transcribe a limited number of rooms at the same time, depending on its plan; past it the call answers `429 too_many_active_sessions`. When the service cannot take one more room at that moment, the call answers `503 system_overload` with `retry_after_seconds`: nothing was started, retry later. See https://docs.vidnavigator.com/api-reference/rate-limiting

        Usually answers in 1-5 s, sometimes up to ~30 s; allow a client timeout of 120 s.
      operationId: startTikTokLiveTranscription
      tags:
        - Speech to text
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Exactly one of `room_id`, `username` or `url`.
              properties:
                room_id:
                  type: string
                  pattern: ^[0-9]{1,25}$
                  description: A LIVE room ID, as a string (it has more digits than a JavaScript number holds), e.g. the `id` of a `POST /tiktok/live/search` result.
                  example: "7705498471838665494"
                username:
                  type: string
                  description: "The streamer's TikTok username, with or without `@`: their current LIVE."
                  example: tiktok
                url:
                  type: string
                  description: A LIVE URL (`https://www.tiktok.com/@username/live`), a profile URL (`https://www.tiktok.com/@username`), or a room's `share_url` (`https://m.tiktok.com/share/live/<room_id>`). Short `vm.tiktok.com` links are not accepted.
                  example: https://www.tiktok.com/@tiktok/live
                language:
                  type: string
                  pattern: ^[a-z]{2}$
                  description: "The language spoken in the LIVE, as a two-letter code (`en`, `fr`, `ar`...), when you know it: it makes the transcript more accurate. Leave it out for a LIVE in several languages or in an unknown one: the language is then detected, sentence by sentence."
                  example: en
                max_duration_minutes:
                  type: integer
                  minimum: 1
                  maximum: 1440
                  default: 60
                  description: 'The session stops by itself once this many minutes of the LIVE were transcribed (`end_reason: "max_duration_reached"`). A LIVE can last many hours: set what you need.'
                include_partials:
                  type: boolean
                  default: false
                  description: Also deliver the sentence being said, as `partial` events on the event stream and as `partial` on the session's GET.
                include_speakers:
                  type: boolean
                  default: false
                  description: Add a `speaker` label (`A`, `B`...) to each final sentence, to tell the voices of the LIVE apart.
                webhook_url:
                  type: string
                  format: uri
                  description: Where to POST the final sentences as they come, and the end of the session (`LiveTranscriptionWebhookEvent`). Must be a publicly reachable https URL. The account-level default webhook is not used for LIVE transcription. See https://docs.vidnavigator.com/webhooks
                  example: https://example.com/hooks/vidnavigator
      responses:
        "200":
          description: "Your organization already transcribes this room: the running session is returned, no second one is started."
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    type: object
                    properties:
                      session:
                        $ref: "#/components/schemas/LiveTranscriptionSession"
                      events_url:
                        type: string
                        description: "The event stream of this session: `GET /tiktok/live/transcribe/events?session_id=<id>`."
                        example: /v1/tiktok/live/transcribe/events?session_id=3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55
                      check_status_url:
                        type: string
                        description: "The session and its final sentences: `GET /tiktok/live/transcribe/{session_id}`."
                        example: /v1/tiktok/live/transcribe/3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55
        "201":
          description: The session is started. Its `status` is `starting`, then `listening` a second or two later.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    type: object
                    properties:
                      session:
                        $ref: "#/components/schemas/LiveTranscriptionSession"
                      events_url:
                        type: string
                        description: "The event stream of this session: `GET /tiktok/live/transcribe/events?session_id=<id>`."
                        example: /v1/tiktok/live/transcribe/events?session_id=3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55
                      check_status_url:
                        type: string
                        description: "The session and its final sentences: `GET /tiktok/live/transcribe/{session_id}`."
                        example: /v1/tiktok/live/transcribe/3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "402":
          $ref: "#/components/responses/PaymentRequired"
        "403":
          description: LIVE transcription is not enabled for the organization of this API key (`access_denied`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  error:
                    type: string
                    enum:
                      - access_denied
                      - insufficient_scope
                  error_code:
                    type: string
                    enum:
                      - access_denied
                      - insufficient_scope
                  message:
                    type: string
        "404":
          description: "No such LIVE room: the room ID does not exist, or the account does not exist or has never gone LIVE (`live_not_found`)."
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  error:
                    type: string
                    enum:
                      - live_not_found
                  error_code:
                    type: string
                    enum:
                      - live_not_found
                  message:
                    type: string
        "409":
          description: "The LIVE is not on air: it has ended, or the streamer is offline (`live_ended`)."
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  error:
                    type: string
                    enum:
                      - live_ended
                  error_code:
                    type: string
                    enum:
                      - live_ended
                  message:
                    type: string
        "429":
          description: "Your organization transcribes as many rooms at once as its plan allows (`too_many_active_sessions`): stop a session or wait for one to end. Or too many requests (`rate_limit_exceeded`): wait `Retry-After` seconds."
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  error:
                    type: string
                    enum:
                      - too_many_active_sessions
                      - rate_limit_exceeded
                  error_code:
                    type: string
                    enum:
                      - too_many_active_sessions
                      - rate_limit_exceeded
                  message:
                    type: string
        "500":
          $ref: "#/components/responses/InternalServerError"
        "502":
          description: TikTok did not serve the room. Retry later (`live_room_unavailable`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  error:
                    type: string
                    enum:
                      - live_room_unavailable
                  error_code:
                    type: string
                    enum:
                      - live_room_unavailable
                  message:
                    type: string
        "503":
          $ref: "#/components/responses/SystemOverload"
components:
  schemas:
    LiveTranscriptionSession:
      type: object
      description: A real-time transcription session on one TikTok LIVE room.
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - starting
            - listening
            - ended
            - failed
          description: "`starting`: accepted, not listening yet (a second or two). `listening`: the room is being transcribed. `ended`: over, see `end_reason`. `failed`: could not go on, see `error`."
        end_reason:
          type: string
          nullable: true
          enum:
            - live_ended
            - stopped
            - max_duration_reached
            - insufficient_credits
            - no_reader
          description: "Why an `ended` session ended: the LIVE ended, you stopped it, `max_duration_minutes` was reached, the organization ran out of credits, or nobody followed the session for a while (`no_reader`: no event stream open on it, no read of it, no webhook delivering; see https://docs.vidnavigator.com/guides/tiktok-live-transcription). Null otherwise."
        error:
          type: object
          nullable: true
          description: Why a `failed` session failed. Null otherwise.
          properties:
            code:
              type: string
              enum:
                - transcription_unavailable
                - stream_unavailable
                - internal_error
              description: "`transcription_unavailable`: the transcription could not go on. `stream_unavailable`: the sound of the LIVE could not be read. `internal_error`: an unexpected error."
            message:
              type: string
        room:
          type: object
          description: The room being transcribed.
          properties:
            id:
              type: string
              example: "7705498471838665494"
            title:
              type: string
              nullable: true
            url:
              type: string
              nullable: true
              example: https://www.tiktok.com/@tiktok/live
            author:
              type: object
              properties:
                unique_id:
                  type: string
                  nullable: true
                nickname:
                  type: string
                  nullable: true
        language:
          type: string
          nullable: true
          description: The `language` given when the session was started, if any.
        include_partials:
          type: boolean
        include_speakers:
          type: boolean
        max_duration_minutes:
          type: integer
        created_at:
          type: string
          format: date-time
        started_at:
          type: string
          format: date-time
          nullable: true
          description: When the session started listening.
        ended_at:
          type: string
          format: date-time
          nullable: true
        duration_seconds:
          type: number
          description: Seconds of the LIVE transcribed so far.
        segments_count:
          type: integer
          description: "Final sentences so far: the `seq` of the last one."
        stop_requested:
          type: boolean
          description: True once a stop was asked and until the session has ended.
  responses:
    BadRequest:
      description: Bad request - invalid parameters. On /transcribe the `error` field may be `missing_parameter`, `unsupported_url`, `invalid_url`, `request_body_required`, `video_too_long`, or `no_videos_found` (the post carries no video).
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
              message:
                type: string
    Unauthorized:
      description: The API key is missing (`missing_api_key`), unknown or malformed (`invalid_api_key`), or deactivated (`api_key_deactivated`).
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - missing_api_key
                  - invalid_api_key
                  - api_key_deactivated
              error_code:
                type: string
                description: Same as `error`.
              message:
                type: string
    PaymentRequired:
      description: "Not enough credits (`insufficient_credits`): upgrade the plan or buy credits."
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - insufficient_credits
              message:
                type: string
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - metadata_fetch_failed
                  - audio_extraction_failed
                  - transcription_failed
                  - internal_server_error
              message:
                type: string
    SystemOverload:
      description: Temporarily overloaded (`system_overload`, with `retry_after_seconds`), or briefly unable to authenticate or bill the request (`service_unavailable`, with a `Retry-After` header). Retry later.
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - system_overload
                  - service_unavailable
              message:
                type: string
              retry_after_seconds:
                type: integer
                description: Recommended number of seconds to wait before retrying
              charge_user:
                type: boolean
                description: Always false for overload errors.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Include your VidNavigator API key in the X-API-Key header.
````
