> ## 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 lip-sync blocks of one language

> Returns the lip-sync blocks of one target language of a completed dub — the lip-sync track of the web app's visual editor — in track order, each with its id (what PATCH /api/v1/dubs/{id}/lipsync/segments takes), start and end in seconds and enabled (true: the block shows the lip-synced video; false: it shows the original video). On the language level it returns api_lipsync_applies_remaining, the API lip-sync applies this language has left.

The blocks exist only for a finished lip sync: while the lip sync of the language is not "done" — never started, running, being re-assembled ("reconstructing") or failed — the request returns 409. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400. 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, no credits are charged and there is no limit.



## OpenAPI

````yaml /openapi.json get /api/v1/dubs/{id}/lipsync/segments
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}/lipsync/segments:
    get:
      tags:
        - Lip sync
      summary: List the lip-sync blocks of one language
      description: >-
        Returns the lip-sync blocks of one target language of a completed dub —
        the lip-sync track of the web app's visual editor — in track order, each
        with its id (what PATCH /api/v1/dubs/{id}/lipsync/segments takes), start
        and end in seconds and enabled (true: the block shows the lip-synced
        video; false: it shows the original video). On the language level it
        returns api_lipsync_applies_remaining, the API lip-sync applies this
        language has left.


        The blocks exist only for a finished lip sync: while the lip sync of the
        language is not "done" — never started, running, being re-assembled
        ("reconstructing") or failed — the request returns 409. Engine v1 only
        (capability supportsTimelineEditor): on any other engine the request
        returns 400. 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, no credits are charged and there is no
        limit.
      operationId: get-lipsync-segments
      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 lip-sync blocks of the language, in track order.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  response:
                    type: object
                    properties:
                      dub_id:
                        type: string
                      target_language:
                        type: string
                      segments:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: >-
                                Block id — what PATCH
                                /api/v1/dubs/{id}/lipsync/segments takes.
                            start:
                              type: number
                              description: Start of the block in seconds.
                            end:
                              type: number
                              description: End of the block in seconds.
                            enabled:
                              type: boolean
                              description: >-
                                true: the block shows the lip-synced video;
                                false: it shows the original video.
                          required:
                            - id
                            - start
                            - end
                            - enabled
                        description: The lip-sync blocks, in track order.
                      api_lipsync_applies_remaining:
                        type: number
                        description: >-
                          The API lip-sync applies this language has left (at
                          most 2).
                    required:
                      - dub_id
                      - target_language
                      - segments
                      - api_lipsync_applies_remaining
                required:
                  - status
                  - response
              examples:
                blocks:
                  summary: Two blocks, lip sync applied to the first
                  value:
                    status: success
                    response:
                      dub_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      target_language: de
                      segments:
                        - id: 8d2f4b6a-1c3e-4a5b-9d7f-0e2a4c6b8d1f
                          start: 0
                          end: 4.2
                          enabled: true
                        - id: f1e3c5a7-9b2d-4f6e-8a0c-2d4f6b8a0c3e
                          start: 4.2
                          end: 9.64
                          enabled: false
                      api_lipsync_applies_remaining: 2
        '400':
          description: >-
            BAD_REQUEST — The dub ID is not a UUID; target_language is missing
            or not a supported target language code; the dub has not finished
            processing; or the dub's engine has no timeline editing (capability
            supportsTimelineEditor — engine v1 only).
          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 — An unknown dub, a dub of another account, or a
            target_language the dub does not have.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: >-
            CONFLICT — The lip sync of the language is not "done" — never
            started, running, being re-assembled ("reconstructing") or failed.
            Example message: `The lip sync of "de" is not finished
            (lipsync_status "processing") — its blocks exist only once it is
            "done"`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: >-
            INTERNAL_ERROR — The dub, its blocks or the API usage could not be
            read. 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.