Check Document Status Run in API Explorer
Retrieve the current status of a document translation process. If the translation is still in progress, the estimated time remaining is also included in the response.
Path parameters
-
The document ID that was sent to the client when the document was uploaded to the API.
Responses
-
The document status request returns a JSON object containing the document ID that was used in the request as well as string indicating the current status of the translation process. While the translation is running, the estimated number of seconds remaining until the process is done is also included in the response.
-
Bad request. Please check error message and your parameters.
-
Authorization failed. Please supply a valid
DeepL-Auth-Keyvia theAuthorizationheader. -
The requested resource could not be found.
-
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.
-
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' \
--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' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"document_key":"0CB0054F1C132C1625B392EADDA41CB754A742822F6877173029A6C487E7F60A"}'
{"document_key" => "0CB0054F1C132C1625B392EADDA41CB754A742822F6877173029A6C487E7F60A"}
{
"document_key": "0CB0054F1C132C1625B392EADDA41CB754A742822F6877173029A6C487E7F60A"
}
{
"document_id": "04DE5AD98A02647D83285A36021911C6",
"status": "translating",
"seconds_remaining": 20
}
{
"document_id": "04DE5AD98A02647D83285A36021911C6",
"status": "done",
"billed_characters": 1337
}
{
"document_id": "04DE5AD98A02647D83285A36021911C6",
"status": "queued"
}
{
"document_id": "04DE5AD98A02647D83285A36021911C6",
"status": "error",
"message": "Source and target language are equal."
}