Quickstart

Create an account

Creating an account is very simple. Go to https://dashboard.groupdocs.cloud to create a free account.

Get App Key and SID

Before you can make any requests to GroupDocs Cloud API you need to get APP SID and APP key (secret key). This will be used to invoke the GroupDocs Cloud API.

You can get it from the default Application or create a new Application. For further details see [Create New App and Get App Key and SID»doc:translationcloud.getting-started.create-new-app-and-get-app-key-and-sid.WebHome)

Get your JWT token

After you have created a new application you can obtain a JWT token. See [JSON Web Token Authentication»doc:translationcloud.getting-started.json-web-token-authentication.WebHome) for further details.

Call Rest API

When you’ve got your access_token your can make Rest API call by adding to Headers of your request:

  • Authorization: Bearer access_token
To translate plain text
cURL

Request

curl -X POST "https://api.groupdocs.cloud/v1.0/translation/text" \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d "'[{\"pair\": \"en-fr\", \"text\": \"Welcome to Paris\"}]'"

Response

{
    "status": "ok",
    "message": "Text translated successfully",
    "translation": "Bienvenue à Paris"
}
SDKs

C#

Python

Java

To translate document
cURL

Request

curl -X POST "https://api.groupdocs.cloud/v1.0/translation/document" \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d "'[ { \"format\":\"docx\", \"pair\":\"en-fr\", \"name\":\"document.docx\", \"folder\":\"myFolder\", \"savepath\":\"myFolder\", \"savefile\":\"translatedDoc.docx\", \"storage\":\"MyStorage\" }]'"

Response

{
    "status": "ok",
    "message": "word file saved successfully"
}
SDKs

C#

Python

Java