event / X-Documate-Event values are dotted keys (file.received, file.completed, document.ready, document.failed, document.cancelled). When a shared secret is configured, requests include X-Documate-Signature. Try / manual tests may also send X-Documate-Test: true.
You keep the plaintext secret for verification. Documate stores it Data-Protected at rest and unprotects it only to sign.
Webhooks are JSON only. Documate does not put raw file bytes in the POST body. Download content via signed URLs in the payload or authenticated External content GETs.
Payload notes
On
document.* events:
- Download that document’s PDF from top-level
url, orGET /api/v1/documents/{documentId}/contentonce the document is ready and its PDF is stored. - Document events omit
original_file. The pack URL is only onfile.receivedandfile.completed.
url is omitted rather than sent unusable.
Recommended file.received handling: receive → verify signature → use original_file.url if present and unexpired → otherwise GET /api/v1/files/{fileId}/content. Full sequence: Webhooks guide.
Verify the signature
Compute HMAC-SHA256 over the raw request body bytes with your webhook secret. Compare toX-Documate-Signature (sha256= + lowercase hex) using a constant-time compare.
Retries
If your endpoint does not return a successful HTTP status, Documate retries delivery with backoff for a limited number of attempts.Related
- Webhooks guide
- Integrations
- OpenAPI: Download file content, Download document content