Skip to main content
Documate delivers events to your HTTPS endpoint. Wire 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, or GET /api/v1/documents/{documentId}/content once the document is ready and its PDF is stored.
  • Document events omit original_file. The pack URL is only on file.received and file.completed.
Links are minted fresh on every delivery attempt, including retries; if no public link can be built, 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 to X-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.