Configure a webhook instead of polling for document status; you get notified on uploaded, processed, and reviewed transitions. Route the payload's document identifiers straight into your downstream job. Keep a status poll as a fallback in case a webhook delivery fails.

Context: Official docs (Docsumo webhooks): documents account-configured webhook callbacks that POST a JSON payload to your endpoint when a document changes processing status (uploaded, processed, reviewed), carrying document identifiers and status for downstream automation.