Skip to navigation

Get Generation Download URL

Get a download URL for a completed generation’s output. Any API key in the generation’s organization can call it.

The response is the URL as plain text, not JSON or a redirect. Fetch it separately, without 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

Free and watermark-required plans get the watermarked file when it’s available. If it’s missing, the request returns 404 generation_output_unavailable; it never falls back to the clean file. Plans that include clean output (such as v2 Creator and v3 Starter or higher) get the clean file when one exists. Upgrading doesn’t remove a watermark already burned into an older output.

The URL can expire early. While the output is still available, call this endpoint again for a fresh one. Keep it private: anyone with it can download the file.

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.

Draft organizations also get 422. Requesting a download URL doesn’t create a project, charge for a generation, start a new render or restore deleted files.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

idstringRequired
A unique identifier for the generation.

Headers

x-sync-acceleratestringOptional

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

Query parameters

fileNamestringOptional

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

Response

Unquoted download URL. Read as text and fetch separately.

Errors

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