Use this file to discover all available pages before exploring further.
DocInject documents move through a defined lifecycle: draft → published → archived, with revision drafts branching off published versions. These endpoints let you drive that lifecycle programmatically and manage the sharing and assignment features tied to each document.
POST https://api.docinject.io/api/v1/documents/{doc_id}/publish
Publishes a draft document, setting its status to published and recording a published_at timestamp. Fires a document.published webhook event (or document.revised if this is a revision draft).
Publishing consumes one publish event from your subscription quota. If you are on a trial plan and have reached your publish limit, the API returns an error. Upgrade your plan to continue publishing.
POST https://api.docinject.io/api/v1/documents/{doc_id}/revise
Creates a new draft revision from a published document. The original published document is moved to revision history, and a new draft is created with the same title, version, and node structure. Update the version number and content on the new draft, then publish it when ready.
Only published documents can be revised. Only the document owner or an organization admin can call this endpoint.
POST https://api.docinject.io/api/v1/documents/{doc_id}/archive
Archives a published document, removing it from the active document library. Fires a document.archived webhook event. Archived documents are retained and can be viewed in the archives section of the dashboard.
POST https://api.docinject.io/api/v1/documents/{doc_id}/trigger-webhooks
Re-fires a webhook event for a document without changing its status. Use this to replay a missed delivery, test your webhook endpoint, or push updates to connected systems after fixing an integration issue.
GET https://api.docinject.io/api/v1/documents/{doc_id}/history
Returns the revision chain for a document — an ordered list of all previous published versions that were moved to history when revisions were created. Returns an empty array if the document has never been revised.
Assigns an editor to a document, granting them write access. The editor must be a member of the same organization. Fires a document.assigned webhook event when an editor is set. Pass null for editor_id to remove the current editor.
POST https://api.docinject.io/api/v1/documents/{doc_id}/share-token
Creates a public share token for a document. Anyone with the token URL can view the published document without logging in. If a token already exists, this endpoint returns the existing one.