Trigger Export
Enqueue an async export for one target language.
Returns 202 Accepted with export_state=Pending. Poll GET /translate/document/jobs/{job_id}/export/status until export_state is Completed, then download from download_url.
- When
formatis omitted, the export uses the uploaded file’s native format. - PDF uploads may optionally set
formattopdf,docx,html,txt, orepub. - Microsoft Office uploads always export in the original format only (for example, xlsx in → xlsx out).
- Optional
fit_line_height/fit_font_shrinktune PDF/DOCX shrink-to-fit. - Returns
409when an export for the same language and format is alreadyPendingorRunning.
Authentication
Path parameters
The job_id returned by POST /translate/document/jobs.
Query parameters
BCP-47 target language code (e.g. hi-IN).
Optional target export format. When omitted, defaults to the uploaded file's native format.
- PDF uploads: may be set to
pdf(default),docx,html,txt, orepub. - Microsoft Office uploads (
.doc,.docx,.xls,.xlsx,.ppt,.pptx, and related formats): always export in the original format only; other values are rejected.
When true, the export may reduce line spacing to fit translated text within the original layout. PDF/DOCX only.
When true, the export may reduce font size to fit translated text within the original layout. PDF/DOCX only.
Response
BCP-47 code of the exported file.
Output format (e.g. pdf, docx, xlsx).
Current state of the export: Pending, Running, Completed, or Failed.
Signed download URL when export_state is Completed.
Sanitized failure reason when export_state is Failed.
Export completion timestamp. Present when export_state is Completed or Failed.
0–100 for PDF/DOCX page render; omitted for other formats.
Pages rendered so far (PDF/DOCX with page-level render).