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

# List the downloads of one language

> Returns exactly the files the Download tab of the web app offers for one target language of a completed dub. Each entry has id, file_name (the same file name as a download in the web app), a signed url and expires_at (ISO 8601): the link is valid for 1 hour — the same as a download in the web app — and stops working at expires_at — download the file, and call this endpoint again for a fresh link.

The ids:
- "video" (final video) and "audio" (final audio) always;
- "lipsync" only when the lip sync of this language is finished ("Synced");
- "audio-voice" (dubbed voice only) and "audio-background" (background without voices) only on an engine with separate audio tracks, and only once those tracks are ready — on a v2 dub the background is the language's own and its file_name carries the language like every other entry (e.g. My_Video_de_background.mp3); a dub created before per-language backgrounds has one background for all languages, without the language (My_Video_background.mp3);
- "subtitled-video" only when its burn-in is "ready" (see POST /api/v1/dubs/{id}/subtitled-video).

An option that is not available is left out; subtitle files (SRT) are not offered. "video", "lipsync" and "subtitled-video" pass the same integrity check as a download in the web app: a damaged file stays in the list with url null, expires_at null and error "video_corrupted" instead of silently missing.

A dub that has not finished processing returns 400; an unknown dub, a dub of another account and a target_language the dub does not have return 404. Read-only: nothing is counted, there is no limit and no credits are charged.



## OpenAPI

````yaml /openapi.json get /api/v1/dubs/{id}/downloads
openapi: 3.1.0
info:
  title: Dubly API
  version: 1.0.0
  description: >-
    The Dubly public API creates, edits and downloads AI-dubbed videos. Every
    request authenticates with an API token as a Bearer token
    ([Authentication](/authentication)). Every answer is JSON in an envelope: `{
    "status": "success", "response": … }` on success, `{ "status": "error",
    "message": … }` on failure — see [Errors](/guides/errors).
servers:
  - url: https://app.dubly.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Create dubs
    description: >-
      Start a dub from a YouTube video, a Google Drive file or a public video
      URL.
  - name: Dubs
    description: >-
      Read a dub's status and results, rename, move or delete it, list its
      downloads and set the original-voice volume.
  - name: Dub editing
    description: >-
      Read and correct segments, edit the timeline, re-voice a segment and apply
      the changes with an update. See [Edit limits](/guides/edit-limits).
  - name: Lip sync
    description: >-
      Start lip sync for a language, follow its progress and switch lip sync per
      block.
  - name: Subtitled video
    description: Burn subtitles into the video of a language and fetch the result.
  - name: Account
    description: List the projects and custom voices of your account.
paths:
  /api/v1/dubs/{id}/downloads:
    get:
      tags:
        - Dubs
      summary: List the downloads of one language
      description: >-
        Returns exactly the files the Download tab of the web app offers for one
        target language of a completed dub. Each entry has id, file_name (the
        same file name as a download in the web app), a signed url and
        expires_at (ISO 8601): the link is valid for 1 hour — the same as a
        download in the web app — and stops working at expires_at — download the
        file, and call this endpoint again for a fresh link.


        The ids:

        - "video" (final video) and "audio" (final audio) always;

        - "lipsync" only when the lip sync of this language is finished
        ("Synced");

        - "audio-voice" (dubbed voice only) and "audio-background" (background
        without voices) only on an engine with separate audio tracks, and only
        once those tracks are ready — on a v2 dub the background is the
        language's own and its file_name carries the language like every other
        entry (e.g. My_Video_de_background.mp3); a dub created before
        per-language backgrounds has one background for all languages, without
        the language (My_Video_background.mp3);

        - "subtitled-video" only when its burn-in is "ready" (see POST
        /api/v1/dubs/{id}/subtitled-video).


        An option that is not available is left out; subtitle files (SRT) are
        not offered. "video", "lipsync" and "subtitled-video" pass the same
        integrity check as a download in the web app: a damaged file stays in
        the list with url null, expires_at null and error "video_corrupted"
        instead of silently missing.


        A dub that has not finished processing returns 400; an unknown dub, a
        dub of another account and a target_language the dub does not have
        return 404. Read-only: nothing is counted, there is no limit and no
        credits are charged.
      operationId: get-dub-downloads
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            The dub ID (path parameter). The dub must have finished processing
            (status "Dubbed"); otherwise the request returns 400.
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        - name: target_language
          in: query
          required: true
          description: >-
            BCP 47 target language code of the language to read (query
            parameter, e.g. ?target_language=de). A language the dub does not
            have returns 404.
          schema:
            type: string
            enum:
              - af
              - ar
              - hy
              - as
              - az
              - be
              - bn
              - bs
              - bg
              - ca
              - ceb
              - ny
              - zh
              - hr
              - cs
              - da
              - nl
              - en
              - et
              - fil
              - fi
              - fr
              - gl
              - ka
              - de
              - el
              - gu
              - ha
              - he
              - hi
              - hu
              - is
              - id
              - ga
              - it
              - ja
              - jv
              - kn
              - kk
              - ko
              - ky
              - lv
              - ln
              - lt
              - lb
              - mk
              - ms
              - ml
              - mr
              - ne
              - 'no'
              - ps
              - fa
              - pl
              - pt
              - pa
              - ro
              - ru
              - sr
              - sd
              - sk
              - sl
              - so
              - es
              - sw
              - sv
              - ta
              - te
              - th
              - tr
              - uk
              - ur
              - vi
              - cy
              - en-GB
              - en-US
              - es-419
              - es-ES
          example: de
      responses:
        '200':
          description: >-
            The downloadable files of the language, in the order of the web
            app's Download tab.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  response:
                    type: object
                    properties:
                      dub_id:
                        type: string
                      target_language:
                        type: string
                      downloads:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              enum:
                                - video
                                - audio
                                - audio-voice
                                - audio-background
                                - lipsync
                                - subtitled-video
                              description: >-
                                "video", "audio", "audio-voice",
                                "audio-background", "lipsync" or
                                "subtitled-video" — see the description for when
                                each is listed.
                            file_name:
                              type: string
                              description: The same file name as a download in the web app.
                            url:
                              type:
                                - string
                                - 'null'
                              description: >-
                                Signed download link, valid for 1 hour; null
                                when the file failed the integrity check.
                            expires_at:
                              type:
                                - string
                                - 'null'
                              description: >-
                                When url stops working (ISO 8601); null when the
                                file failed the integrity check.
                            error:
                              type: string
                              const: video_corrupted
                              description: 'Only on a damaged video: "video_corrupted".'
                          required:
                            - id
                            - file_name
                            - url
                            - expires_at
                    required:
                      - dub_id
                      - target_language
                      - downloads
                required:
                  - status
                  - response
              examples:
                downloads:
                  summary: A v2 dub with a damaged burned-in video
                  value:
                    status: success
                    response:
                      dub_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      target_language: de
                      downloads:
                        - id: video
                          file_name: My_Video_de_final_video.mp4
                          url: >-
                            https://...amazonaws.com/.../final_video.mp4?X-Amz-Signature=...
                          expires_at: '2026-11-24T13:00:00.000Z'
                        - id: audio
                          file_name: My_Video_de_final_audio.mp3
                          url: >-
                            https://...amazonaws.com/.../final_audio.mp3?X-Amz-Signature=...
                          expires_at: '2026-11-24T13:00:00.000Z'
                        - id: audio-voice
                          file_name: My_Video_de_voice.mp3
                          url: >-
                            https://...amazonaws.com/.../merged_audio.mp3?X-Amz-Signature=...
                          expires_at: '2026-11-24T13:00:00.000Z'
                        - id: audio-background
                          file_name: My_Video_de_background.mp3
                          url: >-
                            https://...amazonaws.com/.../background.mp3?X-Amz-Signature=...
                          expires_at: '2026-11-24T13:00:00.000Z'
                        - id: subtitled-video
                          file_name: My_Video_de_subtitled_video.mp4
                          url: null
                          expires_at: null
                          error: video_corrupted
        '400':
          description: >-
            BAD_REQUEST — The dub ID is not a UUID. Or target_language is
            missing or not a supported target language code, or the dub has not
            finished processing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: UNAUTHORIZED — Missing or invalid API token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: >-
            NOT_FOUND — The dub does not exist, belongs to another account or
            was deleted. Or the dub has no language target_language.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: >-
            INTERNAL_ERROR — The dub could not be read or the download links
            could not be created. Retry the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          const: error
        message:
          type: string
      required:
        - status
        - message
      description: >-
        The error envelope. The HTTP status carries the error code; `message`
        says what went wrong, in English.
      examples:
        - status: error
          message: Dub not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API token from Settings → API in the Dubly web app, sent as
        `Authorization: Bearer <token>`.

````

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