Skip to content

    API documentation

    Get subtitle task

    GET/api/v1/subtitles/{id}

    Authentication · x-api-key

    Get subtitle extraction task status and artifacts.

    Scope: task:read

    Billing and effects: Free resource read; no generation purchase.

    Recovery: Read the current resource before retrying a mutation; do not assume this operation supports Idempotency-Key.

    Follow this operation’s workflow → · All permission rules

    Request

    Path parameters

    idpath · Required
    string

    Resource identifier returned by the corresponding create operation.

    Responses

    Read the HTTP status and body together. A receipt confirms acceptance; poll the returned Task or product view for terminal execution and media delivery. Example IDs and credit amounts are illustrative, not a price quote.

    HTTP 401 · Request rejected; correct the key before retrying

    Complete JSON example (optional fields may be omitted).

    {
    "success": false,
    "error": {
    "code": "INVALID_API_KEY",
    "message": "Invalid API key"
    }
    }
    200 OK

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    Only the listed fields are accepted in this object.

    • Response 200 · progressRequired

      number

      Reported progress from 0 to 100. It is an observation, not an ETA or confirmation that delivery is ready.

      Minimum: 0. Maximum: 100.

    • Response 200 · statusRequired

      "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED"

      State of the object containing this field. Use its listed values; operation acceptance, Task completion and media delivery are separate states.

      Default: "PENDING".

    • Response 200 · taskIdRequired

      string

      Operation Task identifier. Save it before polling; a receipt does not mean the operation has completed.

    • Response 200 · artifactsOptional

      object

      Download links and retention information for generated subtitle formats; absent before artifacts are available.

      Only the listed fields are accepted in this object.

      8 fields
      • Response 200 · artifacts.jsonRequired

        object

        JSON timing/lyrics artifact download link with optional expiry and retention metadata.

        Only the listed fields are accepted in this object.

        3 fields
        • Response 200 · artifacts.json.urlRequired

          string

          Access URL for the containing resource. Use it as returned; do not construct URLs from identifiers. Availability and expiry follow the surrounding resource state.

        • Response 200 · artifacts.json.expiresAtOptional

          string

          Expiry of this particular resource or receipt, in the format shown below. Do not reuse an expired purchase receipt.

        • Response 200 · artifacts.json.retentionDaysOptional

          number

          Number of days this artifact is retained; this is separate from the lifetime of its access URL.

      • Response 200 · artifacts.jsonUrlRequired

        string

        Compatibility alias of artifacts.json.url.

      • Response 200 · artifacts.srtRequired

        object

        SRT subtitle download link with optional URL expiry and retention metadata.

        Only the listed fields are accepted in this object.

        3 fields
        • Response 200 · artifacts.srt.urlRequired

          string

          Access URL for the containing resource. Use it as returned; do not construct URLs from identifiers. Availability and expiry follow the surrounding resource state.

        • Response 200 · artifacts.srt.expiresAtOptional

          string

          Expiry of this particular resource or receipt, in the format shown below. Do not reuse an expired purchase receipt.

        • Response 200 · artifacts.srt.retentionDaysOptional

          number

          Number of days this artifact is retained; this is separate from the lifetime of its access URL.

      • Response 200 · artifacts.srtUrlRequired

        string

        Compatibility alias of artifacts.srt.url.

      • Response 200 · artifacts.lrcOptional

        object

        LRC lyric artifact when generated, with URL/retention metadata.

        Only the listed fields are accepted in this object.

        3 fields
        • Response 200 · artifacts.lrc.urlRequired

          string

          Access URL for the containing resource. Use it as returned; do not construct URLs from identifiers. Availability and expiry follow the surrounding resource state.

        • Response 200 · artifacts.lrc.expiresAtOptional

          string

          Expiry of this particular resource or receipt, in the format shown below. Do not reuse an expired purchase receipt.

        • Response 200 · artifacts.lrc.retentionDaysOptional

          number

          Number of days this artifact is retained; this is separate from the lifetime of its access URL.

      • Response 200 · artifacts.lrcUrlOptional

        string

        Compatibility alias of artifacts.lrc.url when LRC was generated.

      • Response 200 · artifacts.vttOptional

        object

        WebVTT subtitle artifact when generated, with URL/retention metadata.

        Only the listed fields are accepted in this object.

        3 fields
        • Response 200 · artifacts.vtt.urlRequired

          string

          Access URL for the containing resource. Use it as returned; do not construct URLs from identifiers. Availability and expiry follow the surrounding resource state.

        • Response 200 · artifacts.vtt.expiresAtOptional

          string

          Expiry of this particular resource or receipt, in the format shown below. Do not reuse an expired purchase receipt.

        • Response 200 · artifacts.vtt.retentionDaysOptional

          number

          Number of days this artifact is retained; this is separate from the lifetime of its access URL.

      • Response 200 · artifacts.vttUrlOptional

        string

        Compatibility alias of artifacts.vtt.url when WebVTT was generated.

    • Response 200 · errorCodeOptional

      string | null

      Machine-readable failure code. Use this for recovery decisions instead of parsing the message.

      May be null.

    • Response 200 · errorMessageOptional

      string | null

      Human-readable failure explanation. Do not use message wording as a stable programmatic discriminator.

      May be null.

    • Response 200 · lyricsOptional

      string

      Recognized/corrected lyric text from subtitle extraction; absent until the Task exposes this result.

    • Response 200 · timelineOptional

      object

      Aligned line and word timing relative to the submitted source audio, in seconds.

      Only the listed fields are accepted in this object.

      2 fields
      • Response 200 · timeline.linesRequired

        array<object>

        Lyric/subtitle lines with start and end offsets on the source audio timeline.

        1 field
        • Response 200 · timeline.lines[]Each item

          object

          Only the listed fields are accepted in this object.

          4 fields
          • Response 200 · timeline.lines[].endSecRequired

            number

            End offset in seconds in the containing timeline or selected source range.

          • Response 200 · timeline.lines[].startSecRequired

            number

            Start offset in seconds in the containing timeline or selected source range.

          • Response 200 · timeline.lines[].textRequired

            string

            Text displayed for this aligned subtitle line.

          • Response 200 · timeline.lines[].sectionOptional

            string

            Optional song-section label associated with this line, such as verse or chorus.

      • Response 200 · timeline.wordsRequired

        array<object>

        Aligned individual words with source-audio start/end offsets in seconds.

        1 field
        • Response 200 · timeline.words[]Each item

          object

          Only the listed fields are accepted in this object.

          3 fields
          • Response 200 · timeline.words[].endSecRequired

            number

            End offset in seconds in the containing timeline or selected source range.

          • Response 200 · timeline.words[].startSecRequired

            number

            Start offset in seconds in the containing timeline or selected source range.

          • Response 200 · timeline.words[].textRequired

            string

            Recognized word or token corresponding to this timing interval.

    • Response 200 · warningsOptional

      array<string>

      Nonfatal extraction/alignment observations recorded in the Task output; review them together with the generated timeline.

      1 field
    400 Bad Request

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 400 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 400 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 400 · error.messageRequired

        string

        Human readable error message

      • Response 400 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 400 · successRequired

      false

      Always false for error responses

    401 Unauthorized

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 401 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 401 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 401 · error.messageRequired

        string

        Human readable error message

      • Response 401 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 401 · successRequired

      false

      Always false for error responses

    403 Forbidden

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 403 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 403 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 403 · error.messageRequired

        string

        Human readable error message

      • Response 403 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 403 · successRequired

      false

      Always false for error responses

    404 Not Found

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 404 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 404 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 404 · error.messageRequired

        string

        Human readable error message

      • Response 404 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 404 · successRequired

      false

      Always false for error responses

    429 Too Many Requests

    Request allowance or task admission capacity exceeded. Follow Retry-After when present; otherwise wait for active tasks and use bounded backoff. Limits do not guarantee throughput. For SSE, this is the HTTP connection response, not an event.

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 429 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 429 · error.codeRequired

        string

        RATE_LIMITED for request and task admission rejections.

      • Response 429 · error.messageRequired

        string

        Human-readable explanation. Wording may change; use the machine-readable code for programmatic decisions.

      • Response 429 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        9 fields
        • Response 429 · error.details.currentOptional

          integer

          Current count for the rate-limit window identified by policy and scope.

          Minimum: 0.

        • Response 429 · error.details.inFlightOptional

          integer

          Current accepted tasks counted against the relevant account or API-key admission limit.

          Minimum: 0.

        • Response 429 · error.details.limitOptional

          integer

          Maximum count allowed by this response context. A limit is not a throughput guarantee.

          Minimum: 0.

        • Response 429 · error.details.policyOptional

          "operation" | "query"

          Allowance bucket: query for resource reads, operation for task-producing or operation requests. See the rate-limit response headers.

        • Response 429 · error.details.retryAfterSecOptional

          integer

          Suggested delay in seconds before another request. Honor the Retry-After header when present; use bounded backoff.

          Minimum: 1.

        • Response 429 · error.details.scopeOptional

          "user" | "api-key" | "ip" | "apiKey"

          Entity whose allowance was exceeded, such as the user, API key or IP address.

        • Response 429 · error.details.tierOptional

          "FREE" | "PREMIUM" | "ENTERPRISE"

          Account allowance tier used for this admission or rate-limit decision.

        • Response 429 · error.details.typeOptional

          "rps" | "daily" | "monthly"

          Admission limit that rejected the request: rps (continuously refilled requests-per-second bucket), daily or monthly UTC request budget. Interpret with policy, scope and retryAfterSec.

        • Response 429 · error.details[key]Each value

          any JSON value

          Key pattern: ^(.*)$.

    • Response 429 · successRequired

      false

      Whether this response reports a successful action; false accompanies the structured error object.

      Default: false.

    500 Internal Server Error

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 500 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 500 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 500 · error.messageRequired

        string

        Human readable error message

      • Response 500 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 500 · successRequired

      false

      Always false for error responses

    Workflow and next steps → · Recover an uncertain request

    Interactive API Explorer → · OpenAPI JSON