Translation

Translate a document

Changed on

Translate one TXT, DOCX, or searchable PDF document. DOCX and PDF translations preserve the source document format and retain as much layout and formatting as possible.

post/translate/v1/document

Request

  • Base URL
    https://api.case.dev
  • URL
    https://api.case.dev/translate/v1/document
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

TXT, DOCX, or searchable PDF document (max 20MB)

targetstring required

Target BCP-47 language code

sourcestring

Optional source BCP-47 language code. Auto-detected when omitted.

Example request

{
  "target": "es",
  "source": "en"
}

Response

Translated document in the source file format

Changes