Skip to main content

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.

Once you finish editing a document, you publish it to make it the active version. From there, you can revise it to produce a new draft linked to the original, or archive it when it is no longer needed. Each of these actions fires a webhook event that you can use to keep external systems in sync.

Publishing

Publishing moves a document from Draft to Published status. Published documents are read-only — they cannot be edited directly.
1

Open the draft in the editor

Navigate to the document and open it in the editor. The status badge in the top bar shows Draft.
2

Click Publish

Click the Publish button in the top bar. The document status changes to Published and you are redirected to the published view.
Publishing fires the document.published webhook event, which delivers the full document content to any configured webhook endpoints.
Trial plans have a publish event cap. If you reach the limit, the Publish button becomes disabled. Upgrade your plan to continue publishing.

Revising

Revising creates a new draft linked to an existing published document. Use this when you need to update content without losing the record of the previous version.
1

Open the published document

Navigate to the published document. The Revise button appears in the top bar.
2

Click Revise

Click Revise. DocInject creates a new draft document linked to the published version and takes you to a metadata screen.
3

Set the version for the revision

Update the title, version, or department for the new draft. The version must be different from the published document’s version. Click Start Editing to open the editor.
4

Edit and publish the revision

Make your changes in the editor, then click Publish. The revision is published and the previous version is moved to revision history.
Publishing a revision fires the document.revised webhook event instead of document.published. The document.revised payload includes a previous_version_id field identifying the document it supersedes. You can view the full history of previous versions from the document’s Revision history page.

Archiving

Archiving moves a published document to Archived status. Archived documents are removed from the main documents list and moved to the Archives section. To archive a document, open the published document and click Archive in the top bar. Confirm the prompt to proceed. Archiving fires the document.archived webhook event.
Archived documents are not deleted — you can still view their content from the Archives section.

Triggering webhooks manually

You can re-fire a webhook event for a published document without re-publishing or changing its status. This is useful when you need to resync an external system that missed a delivery, or when you are testing a new webhook endpoint. From the document list, open the action menu for a published document and select Trigger webhooks. Choose one of the three available events:
EventPayload
document.publishedSame payload as publishing the document
document.revisedSame payload as publishing a revision; includes previous_version_id
document.archivedSame payload as archiving the document
Click Trigger to dispatch the event. This does not change the document’s status or affect your publish event count.
Triggering webhooks manually fires real events to all configured endpoints. Make sure your receiving system can handle duplicate deliveries before triggering.