> ## 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 the render state of one language

> Returns the render state of one language — the same fields as the language level of GET /api/v1/dubs/{id}/segments: pending_changes (edits that POST /api/v1/dubs/{id}/update would apply; v1: segments waiting for an update, v2: changes waiting for "Apply changes"), is_updating, update_status ("idle", or the running phase voice_cloning → speech_syncing → merging → rendering; "error" if the last update failed), lipsync_status, api_update_rounds_remaining and video_url. video_url is null while an update is running and otherwise a signed URL of the current video, valid for 7 days, like GET /api/v1/dubs/{id}. Read-only: nothing is counted.



## OpenAPI

````yaml /openapi.json get /api/v1/dubs/{id}/update
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}/update:
    get:
      tags:
        - Dub editing
      summary: Get the render state of one language
      description: >-
        Returns the render state of one language — the same fields as the
        language level of GET /api/v1/dubs/{id}/segments: pending_changes (edits
        that POST /api/v1/dubs/{id}/update would apply; v1: segments waiting for
        an update, v2: changes waiting for "Apply changes"), is_updating,
        update_status ("idle", or the running phase voice_cloning →
        speech_syncing → merging → rendering; "error" if the last update
        failed), lipsync_status, api_update_rounds_remaining and video_url.
        video_url is null while an update is running and otherwise a signed URL
        of the current video, valid for 7 days, like GET /api/v1/dubs/{id}.
        Read-only: nothing is counted.
      operationId: get-dub-update
      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 render state of the language.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  response:
                    type: object
                    properties:
                      dub_id:
                        type: string
                      target_language:
                        type: string
                      engine:
                        type: string
                        enum:
                          - v1
                          - v2
                        description: >-
                          The engine of the dub. It decides which edits are
                          available (capabilities in GET
                          /api/v1/dubs/{id}/segments).
                      pending_changes:
                        type: boolean
                        description: >-
                          Edits that POST /api/v1/dubs/{id}/update would apply;
                          v1: segments waiting for an update, v2: changes
                          waiting for "Apply changes".
                      is_updating:
                        type: boolean
                        description: An update of this language is running.
                      update_status:
                        type: string
                        enum:
                          - idle
                          - voice_cloning
                          - speech_syncing
                          - merging
                          - rendering
                          - error
                        description: >-
                          "idle", or the running phase voice_cloning →
                          speech_syncing → merging → rendering; "error" if the
                          last update failed.
                      lipsync_status:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Lip-sync status of this language: "not_started",
                          "face_setup", "segmenting", "processing",
                          "reconstructing", "done", "failed", or null.
                      api_update_rounds_remaining:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                        description: API update rounds left for this language (at most 2).
                      video_url:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Signed URL of the current video, valid for 7 days,
                          like GET /api/v1/dubs/{id}; null while an update is
                          running.
                    required:
                      - dub_id
                      - target_language
                      - engine
                      - pending_changes
                      - is_updating
                      - update_status
                      - lipsync_status
                      - api_update_rounds_remaining
                      - video_url
                required:
                  - status
                  - response
              examples:
                running:
                  summary: Update running (no URL until the new render is ready)
                  value:
                    status: success
                    response:
                      dub_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      target_language: de
                      engine: v1
                      pending_changes: true
                      is_updating: true
                      update_status: merging
                      lipsync_status: not_started
                      api_update_rounds_remaining: 1
                      video_url: null
                finished:
                  summary: Update finished
                  value:
                    status: success
                    response:
                      dub_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      target_language: de
                      engine: v1
                      pending_changes: false
                      is_updating: false
                      update_status: idle
                      lipsync_status: not_started
                      api_update_rounds_remaining: 1
                      video_url: >-
                        https://...amazonaws.com/.../final_video.mp4?X-Amz-Expires=604800&...
        '400':
          description: >-
            BAD_REQUEST — The dub ID is not a UUID, target_language is missing
            or no supported target language code, or the dub has not finished
            processing (status "Dubbed").
          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 dub or its 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.