Download Translated Document Run in API Explorer
Once the status of the document translation process is done, the result can be downloaded.
For privacy reasons the translated document is automatically removed from the server once it was downloaded and cannot be downloaded again.
Path parameters
-
The document ID that was sent to the client when the document was uploaded to the API.
Responses
-
The document is provided as a download. There is no other data included in the response besides the document data. The content type used in the response corresponds to the document type.
-
Bad request. Please check error message and your parameters.
-
Authorization failed. Please supply a valid
DeepL-Auth-Keyvia theAuthorizationheader. -
Trying to download a document using a non-existing document ID or the wrong document key will result in a 404 error. As stated above, documents can only be downloaded once before they are deleted from the server and their document ID is invalidated.
-
The request size exceeds the limit.
-
Too many requests. Please wait and resend your request.
-
Quota exceeded. The character limit has been reached.
-
Internal error.
-
A 503 result will be returned if the user tries to download a translated document that is currently being processed and is not yet ready for download. Please make sure to check that the document status is 'done' before trying to send a download request.
-
Resource currently unavailable. Try again later.
-
Too many requests. Please wait and resend your request.
curl \
--request POST 'https://api.deepl.com/v2/document/04DE5AD98A02647D83285A36021911C6/result' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'document_key=0CB0054F1C132C1625B392EADDA41CB754A742822F6877173029A6C487E7F60A'
curl \
--request POST 'https://api.deepl.com/v2/document/04DE5AD98A02647D83285A36021911C6/result' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"document_key":"0CB0054F1C132C1625B392EADDA41CB754A742822F6877173029A6C487E7F60A"}'
{"document_key" => "0CB0054F1C132C1625B392EADDA41CB754A742822F6877173029A6C487E7F60A"}
{
"document_key": "0CB0054F1C132C1625B392EADDA41CB754A742822F6877173029A6C487E7F60A"
}
{"summary" => "OK", "description" => "binary document data"}
{
"message": "Document not found"
}
{
"message": "Document already downloaded"
}