Chat-id routes
Retry a chat-id document
Retry a failed Deep Reader document by chat id.
POST
/
api
/
v2
/
documents
/
{id}
/
retry
/
Retry document processing
curl --request POST \
--url https://api.example.com/api/v2/documents/{id}/retry/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/{id}/retry/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/documents/{id}/retry/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "<string>",
"progress": 123,
"stage": "<string>",
"page_count": 1073741823
}{id} is the Deep Reader chat pk. Failed rows resume (cache kept); this is not a full reprocess. Prefer Reprocess for the attachment-id surface.Authorizations
extractApiKeybearerAuthcookieAuth
Response
Processing status snapshot for the progress-polling endpoint.
Serializes ChatAttachment directly (not Chat) because the progress endpoint queries the attachment by chat pk.
⌘I
Retry document processing
curl --request POST \
--url https://api.example.com/api/v2/documents/{id}/retry/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/{id}/retry/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/documents/{id}/retry/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "<string>",
"progress": 123,
"stage": "<string>",
"page_count": 1073741823
}
