POST
/
v2
/
textTranslations
curl --request POST \
--url https://eu.phrase.com/smt/api/v2/textTranslations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"sourceLang": {
"code": "en"
},
"sourceTexts": [
{
"key": "key1",
"source": "Hello, world!"
}
],
"targetLang": {
"code": "cs"
},
"mtSettings": {
"profile": {
"uid": "CFUki8ptanoz1WAIYoXSH4"
}
},
"consumerId": "consumer1"
}'
{
  "sourceLang": {
    "code": "en"
  },
  "translatedTexts": [
    {
      "key": "key1",
      "target": "Ahoj, světe!"
    }
  ],
  "targetLang": {
    "code": "cs"
  },
  "consumerId": "consumer1"
}

Authorizations

Authorization
string
header
required

Provide Authorization header with token obtained through Login operation.

Body

application/json

Response

200
application/json

Response with translations

The response is of type object.