Subscribe to pdf.generated, pdf.downloaded, and pdf.expired — and we'll POST signed payloads to your URL with automatic retries (up to 2, after 60s and 5m).
Notifications are sent as soon as the event happens, so latency is not bounded by a poll interval.
Every request carries X-Webhook-Signature: sha256=<hex>. Verify with your webhook secret to reject forged calls.
Register a URL containing hooks.slack.com and we'll send a Block Kit message with a download button — no Slack-specific code on your side.
| Use webhooks | Poll for status | |
|---|---|---|
| Completion latency | Sent as soon as the event happens | Bounded by your poll interval |
| Server load | One request per completion | Items × poll count |
| Receiver setup | Public HTTPS endpoint required | Client-only, no inbound endpoint |
| Slack delivery | Just register the URL | Build it yourself |
// Register a webhook endpoint
await fetch("/api/webhooks", {
method: "POST",
headers: {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://your-app.example.com/hooks/pdf",
events: ["pdf.generated", "pdf.expired"],
}),
});
// The response's data.secret is returned only on creation — store it.
// Verify the X-Webhook-Signature header on incoming requests:
// sha256=HMAC_SHA256(payload, webhook_secret)
//
// 5xx, timeouts and connection errors are retried after 60s and 5m
// (3 attempts in total, including the first).
// Slack incoming-webhook URLs auto-receive Block Kit payloads.