Use the webhooks API to manage the endpoints DocInject delivers events to. All endpoints require a valid bearer token and a Scale plan subscription. Webhook owners and organization admins can modify or delete a given configuration; any member can trigger a test delivery. Base URL:Documentation Index
Fetch the complete documentation index at: https://docs.docinject.com/llms.txt
Use this file to discover all available pages before exploring further.
https://api.docinject.io/api/v1
Webhook config object
Most endpoints return a webhook config object. Its shape is consistent across list, create, and update responses.The
secret field is returned only in the response to POST /webhooks. Store it immediately — it cannot be retrieved again.List webhooks
Retrieve all webhook configurations registered for your organization.200 OK: an array of webhook config objects.
Register a webhook
Create a new webhook endpoint. Requires the Scale plan.A human-readable label for this webhook (e.g.
"Slack publish alerts").The HTTPS URL DocInject will POST events to.
One or more event type strings to subscribe to. Must be values from the event reference. Passing an unrecognized value returns
400.201 Created: a webhook config object with secret included.
UUID of the new webhook configuration.
UUID of your organization.
UUID of the user who registered this webhook.
The name you provided.
The endpoint URL.
The subscribed event types.
Always
true on creation.ISO 8601 creation timestamp.
HMAC-SHA256 signing secret. Returned once only — store this value immediately. Use it to verify the
X-DocInject-Signature header on incoming requests. See the webhooks overview for verification details.Update a webhook
Modify an existing webhook configuration. Send only the fields you want to change. The webhook owner or any org admin can update.UUID of the webhook configuration to update.
New label for the webhook.
New destination URL.
Replacement list of event types. Overwrites the existing list entirely.
200 OK: the updated webhook config object (without secret).
Delete a webhook
Permanently remove a webhook configuration. The webhook owner or any org admin can delete.UUID of the webhook configuration to delete.
204 No Content.
Test a webhook
Send a test ping to a registered endpoint to confirm it is reachable. Any org member can trigger a test. DocInject sends a single request withevent_type: "webhook.test" and waits up to 10 seconds for a response.
UUID of the webhook configuration to test.
200 OK
"delivered" if the endpoint responded with a 2xx status within 10 seconds; "failed" otherwise.The HTTP status code returned by your endpoint, or
null if no response was received (e.g. connection timeout).Delivered
Failed (non-2xx)
Failed (no response)
Get event delivery log
Retrieve the last 100 outbound webhook events for your organization, ordered by most recent first. Use this to inspect delivery status and retry counts.200 OK: an array of event log objects.
UUID of the event log entry.
The event type that was dispatched (e.g.
"document.published").Always
"outbound" for events in this log.Current delivery status.
"pending" means delivery is still in progress.Number of delivery attempts made so far. Maximum is
3.ISO 8601 timestamp when the event was first enqueued.
