Translate Files (/v1/translate/file)
Use this endpoint to translate files from one locale into another.
Note: See File Translation | Supported File Types & Considerations for supported file types, size limits, and other file translation considerations.
| POST https://agw.golinguist.com/linguistnow/resources/v1/translate/file | |||
| Request Headers | |||
| Key | Required | Value | |
| x-api-key | yes | {{your_api_key}} (See Managing your API Key.) | |
| Content-Type | yes | multipart/form-data | |
| Accept | yes | application/octet-stream | |
| Request Body (Format: multipart/form-data) | |||
| Key | Type | Required | Description |
| file | file | yes | File to translate. (See File Translation | Supported File Types & Considerations.) |
| sourceLanguage | text | no |
Locale code of the language to translate from. if not specified in the request, the sourceLanguage is detected from the file content. |
| targetLanguage | text | yes | Locale code of the language to translate to |