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

# Get lip-sync status and result URL

> Check the current status of a lip-sync job. Returns "NotStarted" if lip-sync has never been triggered, "Processing" with the current pipeline step while running (step is one of "face_setup", "segmenting", "processing", "reconstructing"), "Synced" with the final video URL when complete, or "Error" if the job failed. An editor update of the dub resets a finished lip sync to "NotStarted". The URL is signed and valid for 7 days; call this endpoint again for a fresh one. The dub ID is passed as a path parameter and the target language as a query parameter.

Works for a dub in any status. Read-only: nothing is counted, no credits are charged and there is no limit.



## OpenAPI

````yaml /openapi.json get /api/v1/dubs/{id}/lipsync
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:
    get:
      tags:
        - Lip sync
      summary: Get lip-sync status and result URL
      description: >-
        Check the current status of a lip-sync job. Returns "NotStarted" if
        lip-sync has never been triggered, "Processing" with the current
        pipeline step while running (step is one of "face_setup", "segmenting",
        "processing", "reconstructing"), "Synced" with the final video URL when
        complete, or "Error" if the job failed. An editor update of the dub
        resets a finished lip sync to "NotStarted". The URL is signed and valid
        for 7 days; call this endpoint again for a fresh one. The dub ID is
        passed as a path parameter and the target language as a query parameter.


        Works for a dub in any status. Read-only: nothing is counted, no credits
        are charged and there is no limit.
      operationId: get-lipsync
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            The dub ID (path parameter). An unknown dub, a dub of another
            account and a deleted dub return 404.
          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 subdub to query (query parameter,
            e.g. ?target_language=de). A missing or unsupported code returns
            400, a language the dub does not have 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 state of the language.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  response:
                    oneOf:
                      - type: object
                        properties:
                          status:
                            type: string
                            const: NotStarted
                            description: '"NotStarted", "Processing", "Synced" or "Error".'
                        required:
                          - status
                      - type: object
                        properties:
                          status:
                            type: string
                            const: Processing
                            description: '"NotStarted", "Processing", "Synced" or "Error".'
                          step:
                            type: string
                            enum:
                              - face_setup
                              - segmenting
                              - processing
                              - reconstructing
                            description: >-
                              Only while "Processing": the current pipeline
                              step, one of "face_setup", "segmenting",
                              "processing", "reconstructing".
                        required:
                          - status
                          - step
                      - type: object
                        properties:
                          status:
                            type: string
                            const: Synced
                            description: '"NotStarted", "Processing", "Synced" or "Error".'
                          url:
                            type: string
                            description: >-
                              Only when "Synced": signed URL of the lip-synced
                              video, valid for 7 days.
                          credits_used:
                            type: number
                            description: >-
                              Only when "Synced": the credits the run cost —
                              only populated once the pipeline finishes.
                        required:
                          - status
                          - url
                          - credits_used
                      - type: object
                        properties:
                          status:
                            type: string
                            const: Error
                            description: '"NotStarted", "Processing", "Synced" or "Error".'
                        required:
                          - status
                required:
                  - status
                  - response
              examples:
                notStarted:
                  summary: Never started
                  value:
                    status: success
                    response:
                      status: NotStarted
                processing:
                  summary: Processing
                  description: >-
                    step is one of: "face_setup", "segmenting", "processing",
                    "reconstructing".
                  value:
                    status: success
                    response:
                      status: Processing
                      step: processing
                synced:
                  summary: Completed
                  description: credits_used is only populated once the pipeline finishes.
                  value:
                    status: success
                    response:
                      status: Synced
                      url: >-
                        https://...amazonaws.com/.../lipsync/final_video.mp4?X-Amz-Expires=604800&...
                      credits_used: 3
                failed:
                  summary: Failed
                  value:
                    status: success
                    response:
                      status: Error
        '400':
          description: >-
            BAD_REQUEST — The dub ID is not a UUID, or target_language is
            missing or not a supported target language code.
          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'
        '500':
          description: >-
            INTERNAL_ERROR — The lip-sync state 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.