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."
}
]
}Write
Correct text
Fixes spelling and grammar errors with minimal changes to wording.
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."
}
]
}TheDocumentation Index
Fetch the complete documentation index at: https://deepl-c950b784-docs-language-release-process-v3.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.Authorizations
Authentication with Authorization header and DeepL-Auth-Key authentication scheme. Example: DeepL-Auth-Key <api-key>
Body
application/jsonapplication/x-www-form-urlencoded
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.
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.
Minimum array length:
1Show child attributes
Show child attributes
⌘I