POST
/
v2
/
translate
Translate a segment
curl --request POST \
  --url https://api.lilt.com/v2/translate \
  --header 'Content-Type: application/json' \
  --data '{
  "source": "<string>",
  "memory_id": 123,
  "source_hash": 123,
  "n": 123,
  "prefix": "<string>",
  "rich": false,
  "tm_matches": true,
  "project_tags": false,
  "containsICUData": false
}'
{
  "untokenizedSource": "Authentication not required.",
  "tokenizedSource": "Authentication not required .",
  "sourceDelimiters": [
    "",
    " ",
    " ",
    "",
    ""
  ],
  "translation": [
    [
      {
        "score": 3.4936864e-8,
        "align": "0-0 1-1 2-2 3-3",
        "targetDelimiters": [
          "",
          " ",
          " ",
          "",
          ""
        ],
        "targetWords": [
          "Authentifizierung",
          "nicht",
          "erforderlich",
          "."
        ],
        "target": "Authentifizierung nicht erforderlich .",
        "targetWithTags": "Authentifizierung nicht erforderlich.",
        "isTMMatch": false,
        "provenance": "0 0 0 0"
      }
    ]
  ]
}

Authorizations

key
string
query
required

Body

application/json

Response

200
application/json

A TranslationList object.

An ranked list of translations and associated metadata.