Skip to main content
POST
/
v2
/
write
/
correct
Correct text
curl --request POST \
  --url https://api.deepl.com/v2/write/correct \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": [
    "this is a example sentence to imprve"
  ]
}
'
{
  "improvements": [
    {
      "detected_source_language": "en",
      "target_language": "en-US",
      "text": "This is a sample sentence to improve."
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://deepl-c950b784-feat-write-correct-endpoint.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The /v2/write/correct endpoint fixes spelling and grammar errors in one or more texts with minimal changes to wording, matching the “Corrections Only” mode in the DeepL Translator UI. It does not accept writing_style or tone and does not rephrase sentences for clarity. The broader /v2/write/rephrase endpoint supports those parameters.

Authorizations

Authorization
string
header
default:DeepL-Auth-Key
required

Authentication with Authorization header and DeepL-Auth-Key authentication scheme. Example: DeepL-Auth-Key <api-key>

Body

text
string[]
required

Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections are returned in the same order as they are requested.

target_lang
enum<string>

The language for the text improvement.

Available options:
de,
en,
en-GB,
en-US,
es,
fr,
it,
ja,
ko,
pt,
pt-BR,
pt-PT,
zh,
zh-Hans
Example:

"de"

Response

Successful text correction.

improvements
object[]
Minimum array length: 1