Saltar a la navegación

get generation download url

Obtain the available full output of a completed generation in your organization. Authenticate with x-api-key; no Studio project or user session is required. Any valid API key belonging to the generation’s organization can request the URL.

The successful response is an unquoted URL in a text/plain body, not JSON, a redirect, or the video itself. Fetch that URL separately without forwarding your API key.

download_url=$(curl --fail-with-body --silent --show-error \
-H "x-api-key: $SYNC_API_KEY" \
"https://api.sync.so/v2/generations/$GENERATION_ID/download") &&
curl --fail --location "$download_url" --output output.mov

The URL resolves an existing output using your organization’s current plan and billing-version eligibility. Free and watermark-required plans receive the watermarked derivative when present. Entitled plans (such as v2 Creator and v3 Starter or higher) receive the clean output when available. Historical outputs can have the watermark burned in, so an upgrade does not guarantee every old output becomes watermark-free. Changing plans does not rewrite historical files. This endpoint does not generate a new render or remove burned-in watermarks.

Signed URLs can expire or become unavailable before their nominal validity. Request this endpoint again for a fresh URL while the output is still available. These URLs are download credentials: keep them private.

Errors use the standard JSON error body and stable errorCode:

StatusCodeMeaning / next step
400—Invalid generation UUID.
401—API key missing, invalid, or revoked.
404generation_not_foundMissing, deleted, or outside your organization.
404generation_output_unavailableNo eligible output reference or the selected file is missing; contact support.
409generation_not_readyPending or processing; poll Get Generation until COMPLETED.
422generation_not_downloadableFailed or rejected; inspect the generation error.
503generation_download_unavailableThe download URL could not be prepared; retry with backoff.

Authentication also returns 422 for draft organizations. Requesting a download URL does not create a project, incur a generation charge, or restore deleted files.

Autenticación

x-api-keystring
Autenticación con clave API vía encabezado

Parámetros de ruta

idstringRequerido
A unique identifier for the generation.

Encabezados

x-sync-acceleratestringOpcional

Send true to request transfer acceleration; falls back to the standard endpoint when acceleration is disabled.

Parámetros de consulta

fileNamestringOpcional

Optional download filename. Its extension is replaced with the output’s format. Ignored for URL-only outputs.

Respuesta

Unquoted download URL. Read as text and fetch separately.

Errores

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
503
Service Unavailable Error