Skip to content

    API documentation

    Quote a ten-second creative preview

    POST/api/v1/mv/drafts/{id}/preview/preflight

    Authentication · x-api-key

    Validate a draft revision for its separately priced first-ten-second preview. Save the preflightId for the paid preview request; this check does not purchase a video.

    Scope: task:create

    Billing and effects: Free validation or estimate; no generation purchase, price reservation or capacity reservation.

    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

    OneClick, OneClick Turbo, Studio and Omn-on-API-v1 endpoint. Keep each MV on the endpoint that created it. Compare Music Video models

    Request

    Path parameters

    idpath · Required
    string

    Resource identifier returned by the corresponding create operation.

    JSON request body

    Content-Type: application/json · Required body

    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.

    • Request · expectedVersionRequired

      string | integer

      Optimistic-concurrency guard using the current resource version.

      Minimum: 1. Use a complete option below; the value must satisfy at least one option.

      2 options
      • Request · Option 1 — stringOption

        string

        Numeric string accepted by coercion; the converted value must satisfy the numeric constraints (minimum 1). Prefer a JSON number.

        Format: integer.

      • Request · Option 2 — integerOption

        integer

        Minimum: 1.

    • Request · webhookUrlOptional

      string

      Optional HTTPS endpoint for the generated Task's completion notification.

      Format: uri.

    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 · checksRequired

      object

      Results of validating the submitted media and request. Resolve blocking failures before purchase.

      Only the listed fields are accepted in this object.

      5 fields
      • Response 200 · checks.referenceImagesRequired

        array<object>

        Validation results for supplied reference image URLs, in input order.

        1 field
      • Response 200 · checks.sourceRequired

        object

        Validated audio source, resolved duration and selected source range used to bind this preflight receipt.

        8 fields
        • Response 200 · checks.source.kindRequired

          string

          visual-board: the check describes visual-board preparation.

        • Response 200 · checks.source.statusRequired

          "ok"

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

        • Response 200 · checks.source.clipIdOptional

          string

          Suno clip identifier. Use the returned clip ID, not the Task or Generation ID.

        • Response 200 · checks.source.durationSecOptional

          number

          Duration in seconds for the containing media, selection or operation. Use validated duration when authorizing a purchase.

        • Response 200 · checks.source.processingModeOptional

          string

          Selected visual-board generation mode from the normalized plan.

        • Response 200 · checks.source.rangeOptional

          object

          Validated start/end selection on the original audio timeline, in seconds; absent when no explicit range applies.

          2 fields
          • Response 200 · checks.source.range.endSecOptional

            number

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

            Minimum: 0.

          • Response 200 · checks.source.range.startSecOptional

            number

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

            Minimum: 0.

        • Response 200 · checks.source.sourceDurationSecOptional

          number

          Duration of the original source audio in seconds, before selecting a range.

        • Response 200 · checks.source.urlOptional

          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 · checks.characterImageOptional

        object

        Validation result for the supplied character portrait; omitted when no portrait was supplied.

        8 fields
        • Response 200 · checks.characterImage.kindRequired

          string

          visual-board: the check describes visual-board preparation.

        • Response 200 · checks.characterImage.statusRequired

          "ok"

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

        • Response 200 · checks.characterImage.clipIdOptional

          string

          Suno clip identifier. Use the returned clip ID, not the Task or Generation ID.

        • Response 200 · checks.characterImage.durationSecOptional

          number

          Duration in seconds for the containing media, selection or operation. Use validated duration when authorizing a purchase.

        • Response 200 · checks.characterImage.processingModeOptional

          string

          Selected visual-board generation mode from the normalized plan.

        • Response 200 · checks.characterImage.rangeOptional

          object

          Optional shared-check field; current portrait checks do not populate an audio range.

          2 fields
        • Response 200 · checks.characterImage.sourceDurationSecOptional

          number

          Duration of the original source audio in seconds, before selecting a range.

        • Response 200 · checks.characterImage.urlOptional

          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 · checks.srtUrlOptional

        object

        Validation result for the supplied subtitle timeline; omitted when no SRT URL was supplied.

        8 fields
        • Response 200 · checks.srtUrl.kindRequired

          string

          visual-board: the check describes visual-board preparation.

        • Response 200 · checks.srtUrl.statusRequired

          "ok"

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

        • Response 200 · checks.srtUrl.clipIdOptional

          string

          Suno clip identifier. Use the returned clip ID, not the Task or Generation ID.

        • Response 200 · checks.srtUrl.durationSecOptional

          number

          Duration in seconds for the containing media, selection or operation. Use validated duration when authorizing a purchase.

        • Response 200 · checks.srtUrl.processingModeOptional

          string

          Selected visual-board generation mode from the normalized plan.

        • Response 200 · checks.srtUrl.rangeOptional

          object

          Optional shared-check field; current SRT checks do not populate an audio range.

          2 fields
          • Response 200 · checks.srtUrl.range.endSecOptional

            number

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

            Minimum: 0.

          • Response 200 · checks.srtUrl.range.startSecOptional

            number

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

            Minimum: 0.

        • Response 200 · checks.srtUrl.sourceDurationSecOptional

          number

          Duration of the original source audio in seconds, before selecting a range.

        • Response 200 · checks.srtUrl.urlOptional

          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 · checks.visualBoardOptional

        object

        Resolved visual-board preparation check for this generation; omitted when no visual board is planned.

        8 fields
        • Response 200 · checks.visualBoard.kindRequired

          string

          visual-board: the check describes visual-board preparation.

        • Response 200 · checks.visualBoard.statusRequired

          "ok"

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

        • Response 200 · checks.visualBoard.clipIdOptional

          string

          Suno clip identifier. Use the returned clip ID, not the Task or Generation ID.

        • Response 200 · checks.visualBoard.durationSecOptional

          number

          Duration in seconds for the containing media, selection or operation. Use validated duration when authorizing a purchase.

        • Response 200 · checks.visualBoard.processingModeOptional

          string

          Selected visual-board generation mode from the normalized plan.

        • Response 200 · checks.visualBoard.rangeOptional

          object

          Optional shared-check field; current visual-board checks do not populate an audio range.

          2 fields
        • Response 200 · checks.visualBoard.sourceDurationSecOptional

          number

          Duration of the original source audio in seconds, before selecting a range.

        • Response 200 · checks.visualBoard.urlOptional

          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 · creditsRequiredRequired

      number

      Credits required for this operation. A quote is an estimate; an accepted Task records its authorized charge.

      Minimum: 0.

    • Response 200 · expiresAtRequired

      string

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

    • Response 200 · modeRequired

      "fast" | "studio"

      Normalized v1 creation workflow selected for these validated inputs: fast or studio.

    • Response 200 · preflightIdRequired

      string

      Validation receipt for the checked inputs. Reuse it only with the matching request and before its expiry.

    • Response 200 · quoteRequired

      object

      Quote calculated for these inputs. Review its total and warnings; purchase separately using its matching receipt.

      Only the listed fields are accepted in this object.

      15 fields
      • Response 200 · quote.breakdownRequired

        object

        Legacy operation-dependent price summary; mixes credit amounts, durations and counts. Use components and credits for monetary reconciliation.

        Only the listed fields are accepted in this object.

        9 fields
        • Response 200 · quote.breakdown.baseOptional

          number

          Base portion of the quoted price in credits; which components are included depends on the requested operation.

        • Response 200 · quote.breakdown.composeOperationsOptional

          number

          Number of composition operations included in the quote, not credits.

        • Response 200 · quote.breakdown.durationOptional

          number

          Billable or quoted source duration in seconds; this is not a credit amount.

        • Response 200 · quote.breakdown.estimatedSceneCountOptional

          number

          Estimated number of scene renders included in this quote; actual planning may produce a different count.

        • Response 200 · quote.breakdown.finalizeOptional

          number

          Credits allocated to final composition in this quote.

        • Response 200 · quote.breakdown.lipSyncOptional

          number

          Credits allocated to the lip-sync component; zero when no separately priced lip-sync component applies.

        • Response 200 · quote.breakdown.renderPerSceneOptional

          number

          Rounded-up average quoted scene-render credits per scene; not an independently accepted per-scene purchase price.

        • Response 200 · quote.breakdown.scenesOptional

          number

          Legacy mixed-unit field: scene-render credits in a complete Studio workflow estimate, but scene count in render/batch/recompose quotes. Use estimatedSceneCount for estimated count and components for money.

        • Response 200 · quote.breakdown.visualBoardOptional

          number

          Credits allocated to visual-board/image preparation components.

      • Response 200 · quote.creditsRequired

        number

        Credit amount for the containing quote, package or pricing component. For a purchase, use the accepted quote total and your own maximum credit authorization.

        Minimum: 0.

      • Response 200 · quote.assumptionsOptional

        array<string>

        Conditions used for this estimate. Revalidate when inputs or these assumptions change.

        1 field
      • Response 200 · quote.baseCreditsOptional

        number

        Base credit amount before the adjustments shown by this pricing view.

      • Response 200 · quote.billingIncrementCreditsOptional

        number

        Credit increment used to round the accepted price.

        Minimum: 0.0001.

      • Response 200 · quote.calculatedSubtotalCreditsOptional

        number

        Calculated credit subtotal before final billing increment rounding.

      • Response 200 · quote.componentsOptional

        array<object>

        Priced components used to calculate this operation's total, with public, discounted and final credit amounts.

        1 field
      • Response 200 · quote.discountCreditsOptional

        number

        Credit amount removed as a discount, not the final charge.

      • Response 200 · quote.expiresAtOptional

        string

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

      • Response 200 · quote.operationOptional

        string

        MV operation being quoted, such as creation, scene editing or composition; omission is allowed for older quote branches.

      • Response 200 · quote.pricingVersionOptional

        number

        Version of the pricing rules used to calculate this quote.

      • Response 200 · quote.quoteIdOptional

        string

        Quote receipt for this operation. A quote does not purchase work or reserve capacity.

      • Response 200 · quote.settlementPolicyVersionOptional

        string

        Identifier of the settlement rules used for this quote; retain it with the purchase receipt.

      • Response 200 · quote.settlementRoundingCreditsOptional

        number

        Credit rounding increment used by the reported settlement policy.

      • Response 200 · quote.warningCodesOptional

        array<string>

        Nonfatal findings or delivery fallbacks. Inspect each warning; a warning alone does not imply failure or a refund.

        1 field
        • Response 200 · quote.warningCodes[]Each item

          string

          MV advisory warning codes. MV_CREATIVE_PLANNING_FROM_UNVERIFIED_TRANSCRIPT means recognized text was used for creative planning; MV_CREATIVE_PLANNING_WITHOUT_LYRICS means no usable lyric semantics were used. These two codes are mutually exclusive in the final plan. Customer lyrics with machine-estimated timing use MV_AUDIO_SUBTITLE_TIMING_UNVERIFIED instead. Non-fatal: the request still succeeds; these flag degraded, adjusted, or automatically recovered inputs and are projected into public Task warningCodes. Omn review codes (MV_NATIVE_CREATIVE_*, MV_NATIVE_SHOT_INTERNAL_CUT, MV_NATIVE_FRAME_BORDERS) describe the delivered video; their observations and affected scenes are in quality of GET /api/v1/tasks/{taskId}/workflow. MV_VOCAL_GENDER_MISMATCH means the requested singer gender differs from the song's lead vocal according to its style tags (or a title that is a style description); it is also returned by preflight. The requested cast is kept, but on Omn V1 that singer is not lip-synced (lipSync is withheld, same charge) and is not shown mouthing the vocal. MV_CREATIVE_BRIEF_SONG_WORLD_CONFLICT means an explicit setting in the request clashes with the period or culture the song's own lyrics, title or style tags imply; the explicit request elements are kept and the rest of the world is reconciled with the song. MV_NATIVE_PREPARATION_DEGRADED means Omn planning or preparation checks could not all be satisfied automatically, so the MV was produced with the best available material (for example a reference image that failed review used only for style, an automatically repaired plan, shortened optional prompt text or a mixed-audio lip-sync fallback); the result is flagged for human review. MV_CHARACTER_REFERENCE_DEGRADED means the supplied character image could not be used as an identity lock (face not recognizable, back view, mask, stylized, or a different number of people); it was used as a style reference and the platform created the character identity. MV_NATIVE_SHOT_FILLED (Omn) means one or more shots could not be generated and their windows were patched with a slow push-in on a still of the planned frame (at most 30% of the MV's duration); the credits for those seconds are refunded at settlement (refund.refundReason shots_filled) and quality asks for human review. MV_OMN_RESOLUTION_MAPPED (Omn) means a OneClick resolution was delivered on the nearest native Omn canvas without upscaling: 540p as 480p, 720p as 768p; the charge uses the delivered canvas.

    • Response 200 · quoteTypeRequired

      "validated_estimate"

      Identifies the kind of estimate returned. A validated estimate is not a purchase or capacity reservation.

    • Response 200 · warningCodesRequired

      array<string>

      Nonfatal findings or delivery fallbacks. Inspect each warning; a warning alone does not imply failure or a refund.

      1 field
      • Response 200 · warningCodes[]Each item

        string

        MV advisory warning codes. MV_CREATIVE_PLANNING_FROM_UNVERIFIED_TRANSCRIPT means recognized text was used for creative planning; MV_CREATIVE_PLANNING_WITHOUT_LYRICS means no usable lyric semantics were used. These two codes are mutually exclusive in the final plan. Customer lyrics with machine-estimated timing use MV_AUDIO_SUBTITLE_TIMING_UNVERIFIED instead. Non-fatal: the request still succeeds; these flag degraded, adjusted, or automatically recovered inputs and are projected into public Task warningCodes. Omn review codes (MV_NATIVE_CREATIVE_*, MV_NATIVE_SHOT_INTERNAL_CUT, MV_NATIVE_FRAME_BORDERS) describe the delivered video; their observations and affected scenes are in quality of GET /api/v1/tasks/{taskId}/workflow. MV_VOCAL_GENDER_MISMATCH means the requested singer gender differs from the song's lead vocal according to its style tags (or a title that is a style description); it is also returned by preflight. The requested cast is kept, but on Omn V1 that singer is not lip-synced (lipSync is withheld, same charge) and is not shown mouthing the vocal. MV_CREATIVE_BRIEF_SONG_WORLD_CONFLICT means an explicit setting in the request clashes with the period or culture the song's own lyrics, title or style tags imply; the explicit request elements are kept and the rest of the world is reconciled with the song. MV_NATIVE_PREPARATION_DEGRADED means Omn planning or preparation checks could not all be satisfied automatically, so the MV was produced with the best available material (for example a reference image that failed review used only for style, an automatically repaired plan, shortened optional prompt text or a mixed-audio lip-sync fallback); the result is flagged for human review. MV_CHARACTER_REFERENCE_DEGRADED means the supplied character image could not be used as an identity lock (face not recognizable, back view, mask, stylized, or a different number of people); it was used as a style reference and the platform created the character identity. MV_NATIVE_SHOT_FILLED (Omn) means one or more shots could not be generated and their windows were patched with a slow push-in on a still of the planned frame (at most 30% of the MV's duration); the credits for those seconds are refunded at settlement (refund.refundReason shots_filled) and quality asks for human review. MV_OMN_RESOLUTION_MAPPED (Omn) means a OneClick resolution was delivered on the nearest native Omn canvas without upscaling: 540p as 480p, 720p as 768p; the charge uses the delivered canvas.

    • Response 200 · postprocessOptional

      object

      Resolved video post-processing policy, when available for this MV.

      Only the listed fields are accepted in this object.

      9 fields
      • Response 200 · postprocess.confidenceRequired

        "explicit" | "rule" | "default"

        Selection basis confidence: explicit choice, matched rule, or default.

        Default: "explicit".

      • Response 200 · postprocess.intentCategoryRequired

        string | null

        Recognized creative-intent category, or null when none applies.

        May be null.

      • Response 200 · postprocess.policyVersionRequired

        string

        Version of the policy used to select post-processing.

      • Response 200 · postprocess.reasonRequired

        string

        Explanation of why this post-processing mode was selected.

      • Response 200 · postprocess.reasonCodeRequired

        string

        Machine-readable reason for the selected post-processing mode.

      • Response 200 · postprocess.requestedModeRequired

        "auto" | "tiny-long" | "tc2" | "full"

        Requested post-processing mode, including auto for automatic selection.

        Default: "auto".

      • Response 200 · postprocess.selectedModeRequired

        "tiny-long" | "tc2" | "full"

        Resolved post-processing mode: tiny-long, tc2, or full.

        Default: "tiny-long".

      • Response 200 · postprocess.signalsRequired

        array<string>

        Creative-intent signals considered by the selection policy.

        1 field
      • Response 200 · postprocess.sourceRequired

        "manual" | "priority" | "intent" | "default"

        Selection basis: explicit mode, priority preference, creative intent, or default.

        Default: "manual".

    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

    402 Payment Required

    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 402 · 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 402 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 402 · error.messageRequired

        string

        Human readable error message

      • Response 402 · 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 402 · 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

    408 Request Timeout

    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 408 · 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 408 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 408 · error.messageRequired

        string

        Human readable error message

      • Response 408 · 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 408 · successRequired

      false

      Always false for error responses

    409 Conflict

    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 409 · 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 409 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 409 · error.messageRequired

        string

        Human readable error message

      • Response 409 · 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 409 · successRequired

      false

      Always false for error responses

    413 Payload Too Large

    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 413 · 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 413 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 413 · error.messageRequired

        string

        Human readable error message

      • Response 413 · 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 413 · successRequired

      false

      Always false for error responses

    422 Unprocessable Entity

    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 422 · 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 422 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 422 · error.messageRequired

        string

        Human readable error message

      • Response 422 · 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 422 · 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

    502 Bad Gateway

    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 502 · 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 502 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 502 · error.messageRequired

        string

        Human readable error message

      • Response 502 · 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 502 · successRequired

      false

      Always false for error responses

    503 Service Unavailable

    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 503 · 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 503 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 503 · error.messageRequired

        string

        Human readable error message

      • Response 503 · 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 503 · successRequired

      false

      Always false for error responses

    Workflow and next steps → · Recover an uncertain request

    Interactive API Explorer → · OpenAPI JSON