Documents
Processing progress (SSE)
SSE progress for a single document.
GET
/
api
/
v2
/
documents
/
attachments
/
{att_id}
/
stream
/
Stream document processing progress over SSE
curl --request GET \
--url https://api.example.com/api/v2/documents/attachments/{att_id}/stream/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/attachments/{att_id}/stream/"
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/attachments/{att_id}/stream/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"type": "progress",
"status": "<string>",
"progress": 123,
"stage": "<string>"
}{}text/event-stream of processing ticks until the document is terminal. Subscribe after upload or reprocess instead of polling.Authorizations
extractApiKeybearerAuthcookieAuth
Response
OpenAPI shape of a single SSE processing-progress frame.
Documentation-only: the live stream ships the Pydantic
ProcessingProgressEvent union verbatim (event: <type> + data: <json>); this serializer pins the data payload shape for codegen.
⌘I
Stream document processing progress over SSE
curl --request GET \
--url https://api.example.com/api/v2/documents/attachments/{att_id}/stream/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/attachments/{att_id}/stream/"
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/attachments/{att_id}/stream/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"type": "progress",
"status": "<string>",
"progress": 123,
"stage": "<string>"
}{}
