To translate Word, OpenOffice ODT, RTF or TXT file, send a POST request to the https://api.groupdocs.cloud/v2.0/translation/document GroupDocs.Translation Cloud REST API endpoint. To authorize the request, pass the access token in Authorization header (Bearer authentication).
The file and translation parameters are provided in JSON format in the request body.
Though you have a possibility to provide your file via cURL, please firstly upload it and pass its URL.
Evaluation mode
To use GroupDocs.Translation Cloud REST API in evaluation mode, send a POST request to the endpoint https://api.groupdocs.cloud/v2.0/translation/document/trial.
This endpoint does not use the Authorization header, so there is no need to generate an access token. All other parameters remain the same as in regular file translation requests.
Otherwise, it returns a HTTP status code corresponding to the error.
What’s next
Translation will take a few seconds, depending on the size of the file, the volume of its textual content and the current GroupDocs.Translation Cloud load. See the article Fetching translations for information on how to get translations from the server.