Check Document Status
Changed onRetrieve the translation status of an uploaded document. Poll this endpoint until the status is done, then download the result. The response includes an estimated remaining time while the document is still translating.
Request
- Base URLhttps://api.deepl.com
- URLhttps://api.deepl.com/v2/document/{document_id}
- AuthAPI key in header Authorization
Path parameters
The document ID that was sent to the client when the document was uploaded to the API.
Request body
Example request
{
"document_key": "0CB0054F1C132C1625B392EADDA41CB754A742822F6877173029A6C487E7F60A"
}Response
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.
Example response
{
"document_id": "04DE5AD98A02647D83285A36021911C6",
"status": "done",
"billed_characters": 1337,
"error_message": "Only available if document status is error"
}Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info