Translate text

POST /api/v1/portal/translate

Machine-translates a text into each target language with a portal setup's TMs, term bases and engines, and returns the translations in the response. No request or project is made; a usage count is recorded. A language that fails comes back with status failed and an error; the others still translate. Only a portal setup whose text is true translates text. Without setup_id, your last such portal setup is used, else the organization's default, else the first one. Longer text goes as a file.

Who may call it

owner, admin, project_manager, customer

Responses

200

The translations, one per target language.

400

The request is wrong; message says what to fix.

401

The access key is missing, expired or revoked.

403

Your role may not call this endpoint, or the key is read only (read_only_key).

409

The item changed since you read it, or its state does not allow the action.

429

Too many requests for this key (rate_limited). Wait for the seconds in Retry-After.