Webhooks let you push DocInject events to any HTTP endpoint the moment they happen. When a document is published, revised, or archived — or when a team member joins or changes role — DocInject sends a signedDocumentation Index
Fetch the complete documentation index at: https://docs.docinject.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Event type | When it fires |
|---|---|
document.created | A new document was created |
document.published | A document was published for the first time |
document.revised | A revised version of a document was published |
document.archived | A document was archived |
document.assigned | A document was assigned to an editor |
member.invited | A member was invited to the organization |
member.joined | A member accepted an invitation and joined |
member.role_changed | A member’s role was changed |
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.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
