Upload a file, poll until the job finishes, then download the translated file. Supported formats: DOCX, TXT, CSV, and XLSX.
Flow
POST /v1/translate/documentswithmultipart/form-data(returns202and a jobid)GET /v1/translate/documents/{id}untilstatusisdone,failed, orcancelledGET /v1/translate/documents/{id}/contentto download the translated file
Use POST /v1/translate/documents/{id}/cancel to stop a running job.
Upload fields
Auto-detect is not supported for the source language.
Extraction rules
Maximum 1,100 segments per file. DOCX uploads are limited to 10 jobs per account per rolling 24 hours.
Status response
Poll GET /v1/translate/documents/{id} every few seconds. While status is running, stage may be translating or assembling, and completed_segments / total_segments show progress when available.
Download
GET /v1/translate/documents/{id}/content returns the translated file when status is done. Add ?simple=1 for a simplified DOCX rebuild when layout export is unavailable.
If the job is still running, the endpoint returns 202 with a JSON body.
Supported languages
Document translation uses the same language catalog as Translate. Send explicit source and target languages.
Errors and billing
Unsupported file types, missing languages, and segment limits return invalid_request. Insufficient Mansa Credits return insufficient_credit.
Usage is charged when the job completes, based on the source character count extracted from the file (same per-character rate as text translation). See Pricing.