Chat-id routes
Chat-id progress
Poll processing progress for a Deep Reader chat.
GET
/
api
/
v2
/
documents
/
{id}
/
progress
/
Get document progress
curl --request GET \
--url https://api.example.com/api/v2/documents/{id}/progress/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/{id}/progress/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/documents/{id}/progress/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "<string>",
"progress": 123,
"stage": "<string>",
"page_count": 1073741823
}Snapshot of processing status for a Deep Reader chat. For the attachment-id SSE, use Progress stream.
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
Get document progress
curl --request GET \
--url https://api.example.com/api/v2/documents/{id}/progress/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/{id}/progress/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/documents/{id}/progress/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "<string>",
"progress": 123,
"stage": "<string>",
"page_count": 1073741823
}
