For AI agents: every API docs page in one plain-text file is at /docs/llms-full.txt, and the documentation index is at /llms.txt. This page is available as Markdown at https://diffio.ai/docs/api-reference/get-generation-export.md, and every docs URL returns Markdown when requested with Accept: text/markdown.

Get an export
Reads a separated-track export's status and, once status is ready, mints a fresh 6-hour signed url.
GET https:/
- Key scope:
artifacts:read - Auth header:
Authorization: Bearer <apiKey> - Body: None
Request
Pass project_id, generation_id, and export_id in the path, and optional file_name in the query string.
Path parameters
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
#file_name | string | Required: No | Optional download filename without an extension; url then carries it as ?download= (ignored for an inline export). |
Headers
| Field | Type | Required | Description |
|---|---|---|---|
#Diffio-End-User | string | Required: No | Optional end-user identifier (up to 128 characters). Scopes the request to that end user's projects; omit to act across the whole account. |
Request
import os
from diffio import DiffioClient
key = os.environ["DIFFIO_API_KEY"]
client = DiffioClient(api_key=key)
export = client.exports.get(
"62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
"ce832a32-a1ce-516a-b8bd-75457bd8517f",
"d51fd816be75bc302ecc3def3da4f22d",
file_name="interview mix",
)Response
Returns the generation_export with a fresh url when status is ready.
Success: 200OK.
Response fields
| Field | Type | Present | Description |
|---|---|---|---|
#object | string | Always | Resource type, always "generation_export".generation_export |
#id | string | Always | Deterministic export identifier (32 hex characters for the recipe, plus -inline when inline is true). |
#project_id | string | Always | Identifier of the parent project. |
#generation_id | string | Always | Identifier of the generation. |
#status | string | Always | Export render state: queued, processing, ready, or failed.queuedprocessingreadyfailed |
#artifact | string | null | Always | Exported track recipe (speech, background, mix, both, or original), or null. |
#format | string | null | Always | Output container format (wav, mp3, m4a, mp4, or zip), or null. |
#background_gain | number | null | Always | Background gain from 0 to 1 used for a mix export; 0 for other artifacts. |
Show all 14 fields (6 more)
| Field | Type | Present | Description |
|---|---|---|---|
#leveling | boolean | Always | True when speech leveling was applied to this export. |
#inline | boolean | Always | True when url is served for in-page playback rather than as a file download. |
#url | string | null | Always | Signed media URL valid for 6 hours once status is ready, or null while rendering or failed. |
#error | object | null | Always | Failure details when status is failed, or null otherwise. |
#error. | string | Always | Stable snake_case export failure code (export_failed). |
#error. | string | Always | Human-readable explanation of why export rendering failed. |
Response 200OK.
{
"object": "generation_export",
"id": "d51fd816be75bc302ecc3def3da4f22d",
"project_id": "62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
"generation_id": "ce832a32-a1ce-516a-b8bd-75457bd8517f",
"status": "ready",
"artifact": "mix",
"format": "mp3",
"background_gain": 0.3,
"leveling": false,
"inline": false,
"url": "https://media.diffio.io/m/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/downloads/stems/d51fd816be75bc302ecc3def3da4f22d/98111c08d1f247d0b43a4eeeb50b5e7a/diffio_mix.mp3?download=interview%20mix.mp3",
"error": null
}Return codes
200OK.Returns the export status and, or 2 more causes
- Returns the export status and
- When
ready - A fresh 6-hour
url
400Bad request.Diffio-End-Userexceeds 128 characters.invalid_header403Forbidden: the key lacks permission.Key is inactive or lacksartifacts:read.permission_denied404Not found.Project not found, or 2 more causes
- Project not found
- Generation not found
- Export not found
project_not_foundgeneration_not_foundexport_not_found409Conflict: see error.code for which one.Project is being deleted.not_available502Bad gateway.Upstream export service error.internal_error401Unauthorized: the API key is missing or invalid.405Client error.Same on every endpoint401Unauthorized: the API key is missing or invalid. Missing API key (code missing_api_key), or invalid API key (code invalid_api_key).405Client error. HTTP method not supported on this path; check the Allow header (code method_not_allowed).
Example error response
Errors are JSON: an error object with code, message and request_id. An unrecognized key returns 401Unauthorized: the API key is missing or invalid.:
{
"error": {
"code": "invalid_api_key",
"message": "Invalid API key.",
"request_id": "dead773b60e148fd9e22d680a22fa701"
}
}Notes
- Reading an export never triggers a new render; if
statusisfailed, call Create an export with the same parameters to render it again. - When
urlexpires after 6 hours, callGETagain to mint a fresh link without re-rendering.