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."
}
]
}Fixes spelling and grammar errors with minimal changes to wording.
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."
}
]
}TheDocumentation 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.
/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.Authentication with Authorization header and DeepL-Auth-Key authentication scheme. Example: DeepL-Auth-Key <api-key>
Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections are returned in the same order as they are requested.
The language for the text improvement.
de, en, en-GB, en-US, es, fr, it, ja, ko, pt, pt-BR, pt-PT, zh, zh-Hans "de"
Successful text correction.
1Show child attributes