POST request to your configured URL with the full event payload. No polling required.
Webhook integrations require the Scale plan. The Webhooks tab in Settings will show an upgrade prompt if your current plan does not include this feature.
Available events
Create a webhook
Any organization member on the Scale plan can create a webhook from their profile. Admins can view and manage all webhooks in Settings → Webhooks.1
Open the Webhooks settings
Go to Settings → Webhooks.
2
Add a new webhook
Click Add webhook and enter a name and your endpoint URL.
3
Select events
Check the event types you want to subscribe to. You must select at least one.
4
Save and copy your secret
Click Save. DocInject generates a signing secret for this webhook and shows it once. Copy it now. You won’t be able to retrieve it again.
Webhook payload structure
DocInject sends every event as a JSONPOST request. Here is an example document.published payload:
document.revised events, the data object also includes a previous_version_id field containing the document ID of the prior version.
Verify webhook signatures
Every request DocInject sends includes anX-DocInject-Signature header with the format sha256=<hex_digest>. To verify a request is genuinely from DocInject, compute HMAC-SHA256 of the raw request body using your webhook’s secret and compare it to the digest in the header.
Test a webhook
Click the Test button next to any webhook to send a test payload immediately. The test payload has the event typewebhook.test and does not affect your documents or publish count. The button shows the HTTP status code DocInject received from your endpoint.
Manually trigger webhooks
From any published document, you can re-fire a webhook event without re-publishing. This is useful when you add a new webhook and want to backfill your integration without making changes to your documents. Open the document, open the options menu, and select Trigger webhooks. Choose one of the triggerable event types:document.published. Fires the same payload as a first publishdocument.revised. Fires the same payload as a revision, includingprevious_version_iddocument.archived. Fires the same payload as archiving
Event log
Go to Settings → Webhooks → Recent Events to see the last delivery attempts for your organization. Each row shows:- The event type
- Delivery status (
delivered,failed, orpending) - Number of attempts made
- The date of the attempt

