Skip to main content
POST
/
language
/
translate
/
bulk
Bulk Translate
curl --request POST \
  --url https://test.api.cxconnect.ai/language/translate/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "documents": [
    {
      "value": "<string>",
      "mime_type": "<string>",
      "language": "<string>",
      "meta": {}
    }
  ],
  "source": "<string>",
  "targets": [
    "<string>"
  ],
  "meta": {
    "foo": "bar"
  },
  "options": {},
  "substitutions": [
    {
      "source": "<string>",
      "text": "<string>",
      "target": "<string>",
      "substitution": "<string>"
    }
  ]
}'
[
  {
    "results": {
      "en": {
        "language": "en",
        "value": "Hello"
      }
    },
    "original": {
      "document": {
        "value": "<string>",
        "mime_type": "<string>",
        "language": "<string>",
        "meta": {}
      },
      "source": "<string>",
      "targets": [
        "<string>"
      ],
      "meta": {
        "foo": "bar"
      },
      "options": {},
      "substitutions": [
        {
          "source": "<string>",
          "text": "<string>",
          "target": "<string>",
          "substitution": "<string>"
        }
      ]
    },
    "extra": {}
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
documents
object[]
source
string
targets
string[]
meta
object

Request metadata

Example:
{ "foo": "bar" }
options
object
substitutions
object[]

Response

Successful bulk translation result

results
object

The results object contains the translated documents keyed by language

Example:
{
"en": { "language": "en", "value": "Hello" }
}
original
object

Result metadata

extra
object

Items associated with additional request options

I