text
string[]
required
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Help shape the DeepL API roadmap. Take the survey
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."
}
]
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "Unsupported Content-Type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}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."
}
]
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "Unsupported Content-Type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}{
"message": "<string>",
"code": "invalid_content_type"
}/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.