v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
Text translations

Text translations v2

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/v2/textTranslations

Request body

consumerIdstring required

Use short descriptive ID that represents the calling integration. E.g. JIRA_INTEGRATION, GDRIVE_SYNC, SHOPIFY_EXT:v1.2 etc.

Example request

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

Response

Response with translations

consumerIdstring required

Use short descriptive ID that represents the calling integration. E.g. JIRA_INTEGRATION, GDRIVE_SYNC, SHOPIFY_EXT:v1.2 etc.

Example response

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