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

# Quickstart

> Create an API token, start your first dub and download the result.

**1. Create an API token**

In the Dubly web app, open **Settings → API** and click **Generate new token**. Give it a name and copy it right away — you won't be able to see it again.

Every request sends the token in the `Authorization` header. See [Authentication](https://docs.dubly.ai/authentication.md).

**2. Create a dub**

Start a dub with [`POST /api/v1/dubs/youtube`](https://docs.dubly.ai/api-reference/create-dubs/create-dub-youtube): send the YouTube link, the language of the video and the languages to dub it into.

```bash theme={null}
curl -X POST https://app.dubly.ai/api/v1/dubs/youtube \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "yt_link": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "source_language": "en",
    "target_languages": ["de", "fr"],
    "title": "My first dub"
  }'
```

The answer carries the ID of the new dub:

```json Response theme={null}
{
  "status": "success",
  "response": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
}
```

The dub runs in the background. Keep its `id`.

**3. Check its status**

Ask [`GET /api/v1/dubs/{id}`](https://docs.dubly.ai/api-reference/dubs/get-dub) for the dub's status:

```bash theme={null}
curl -X GET https://app.dubly.ai/api/v1/dubs/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

```json Processing theme={null}
{
  "status": "success",
  "response": {
    "status": "Processing",
    "audio_settings": {
      "original_voice_volume_db": -20,
      "adjustable": false,
      "api_changes_remaining": 2
    }
  }
}
```

```json Dubbed theme={null}
{
  "status": "success",
  "response": {
    "status": "Dubbed",
    "url": [
      "https://...amazonaws.com/.../final_video.mp4?X-Amz-Expires=604800&...",
      "https://...amazonaws.com/.../final_video.mp4?X-Amz-Expires=604800&..."
    ],
    "audio_settings": {
      "original_voice_volume_db": -20,
      "adjustable": false,
      "api_changes_remaining": 2
    }
  }
}
```

The status is `Processing` until the dub is finished. Call the endpoint again until it is `Dubbed` — or `Error` if the dub failed. [Dub status lifecycle](https://docs.dubly.ai/guides/dub-status.md) explains every status.

**4. Download the result**

Once the status is `Dubbed`, `url` holds one link to the final video per target language. Download the files — the links are valid for 7 days, so don't store them; call the status endpoint again for fresh ones.

For the other files of a language — the audio tracks, the lip-sync or the subtitled video — use the downloads endpoint; its links are valid for 1 hour. See [Dub status lifecycle](https://docs.dubly.ai/guides/dub-status.md#result-links).

## Next steps

> [card] [Errors](https://docs.dubly.ai/guides/errors.md)
>
> What a failed request answers.

> [card] [Edit limits](https://docs.dubly.ai/guides/edit-limits.md)
>
> Correct segments and re-render a dub through the API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.