v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
Text translations

Text translations

Translates the text content utilizing Phrase Language AI capabilities. Can identify the source language, if not provided, and translate the text to the target language. If language identification is requested, system needs to have at least 50 characters.

post/v1/textTranslations

Request body

sourceTextstring required

Example request

{
  "sourceLang": {
    "code": "cs"
  },
  "targetLang": {
    "code": "cs"
  },
  "mtSettings": {
    "profile": {
      "uid": "CFUki8ptanoz1WAIYoXSH4"
    }
  }
}

Response

Response with translations

translatedTextstring required

Translated text

Example response

{
  "sourceLang": {
    "code": "cs"
  },
  "targetLang": {
    "code": "cs"
  }
}