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
1
Open a published document
Navigate to the document. It must have a Published status. Draft and archived documents cannot have share tokens.
2
Click Embed
Click Embed in the document toolbar.
3
Create the link
If no token exists, click Create embed link. DocInject creates a token and displays the public URL alongside an iframe snippet.
4
Copy and share the URL
Copy the Embed URL and send it to anyone who needs access.
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. 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.
