Translation

Translate text

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 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

No recorded changes to this endpoint across all 1 revision of this API.