Translation

Translate text from one language to another using DeepL API. Source language can be auto-detected if not provided.

post/api/v1/translation/text

Request

Request body

targetLangstring required

Target language code (e.g., 'UK' for Ukrainian, 'ES' for Spanish, 'DE' for German)

sourceLangstring nullable

Source language code (optional, auto-detected if not provided)

preserveFormattingboolean

Whether to preserve formatting in the translation

Example request

{
  "preserveFormatting": true,
  "sourceLang": "EN",
  "targetLang": "UK",
  "text": "Hello, how are you?"
}

Response

Request completed successfully.

detailstring

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status