Share tokens give anyone with the link read-only access to a published document — no DocInject account required. Use them to share SOPs with external contractors, embed documents in other tools, or distribute guides across your organization without managing permissions.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.
How share tokens work
Each share token is a unique string tied to a single document. The public URL follows this format:Each document can have only one active share token at a time. Creating a new token replaces the existing one and immediately invalidates the old URL.
Create a share link
Open a published document
Navigate to the document. It must have a Published status — draft and archived documents cannot have share tokens.
Create the link
If no token exists, click Create embed link. DocInject creates a token and displays the public URL alongside an iframe snippet.
201 Created.
Find your share links
All active share links for your organization appear on the Dashboard under the Shareable links section. Each entry shows the document title and the full URL, with a one-click copy button.Revoke a share link
Open the Embed modal and click Remove link. The token is deleted immediately — anyone who tries to open the old URL will see a “document not available” message. Via the API:204 No Content on success.
Public document API
The public endpoint returns the full document JSON without requiring authentication:Example response
nodes array is a tree of sections, steps, and sub-steps. Each node has a node_type of "section", "step", or "sub_step", a title, optional rich-text content, an order index, and a children array for nested nodes.
If the token is invalid, the document is not published, or the org slug does not match, the endpoint returns
404.