Skip to main content
POST
/
languages
Get supported language pairs
curl --request POST \
  --url https://api.mtengine.example.com/languages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": {
    "formality": "informal",
    "model": "model123",
    "domain": "legal",
    "customKey": "customValue"
  }
}
'
{
  "languagePairs": [
    {
      "sourceLanguage": "en",
      "targetLanguage": "es"
    }
  ]
}

Authorizations

Authorization
string
header
required

OAuth 2.0 for accessing the MT API. Supports client credentials (service-to-service).

Body

application/json
metadata
object

Any custom data in form of key/value pairs

Example:
{
  "formality": "informal",
  "model": "model123",
  "domain": "legal",
  "customKey": "customValue"
}

Response

List of supported source-target language pairs (Phrase locale codes)

languagePairs
object[]
required