Skip to main content
Document edit links let you share a knowledge-base document as a standalone editing page. Anyone with the link can view the current content and save changes without a HelpGenie account. When a save is made, all genies that use the document are automatically updated. Access model:
  • Owner actions (get, generate, set-pin, revoke) — require a valid Bearer token. Only the document owner or an admin may manage a link.
  • Public actions (public-get, public-update) — authenticated by the unguessable link token alone. No login required. A bearer token is accepted if present but not mandatory.
PIN protection: The owner can optionally set a 4–8 digit numeric PIN. Viewing is always frictionless — the PIN is checked only on Save. After 5 consecutive wrong PINs the Save action is locked for 15 minutes.
Returns the current edit link for a document, or null if no link has been generated yet.
string
required
Must be "doc-edit-link"
string
required
Must be "get"
string
required
The document UUID.
boolean
Whether the request succeeded.
object

Creates a shareable edit link for a document. Idempotent — returns the existing link unless rotate: true is passed, which mints a fresh token and immediately invalidates any previously shared URL.
string
required
Must be "doc-edit-link"
string
required
Must be "generate"
string
required
The document UUID.
object
boolean
Whether the request succeeded.
object
Returns HTTP 201 when a brand-new link is created for the first time, and HTTP 200 when returning or rotating an existing one.

Set PIN

Sets, changes, or clears the Save-gate PIN for an edit link. The PIN must be set before viewers can be required to enter it. Any change resets the brute-force lockout counter. A link must already exist before a PIN can be set — call generate first.
string
required
Must be "doc-edit-link"
string
required
Must be "set-pin"
string
required
The document UUID.
object
required
boolean
Whether the request succeeded.
object

Permanently destroys a document’s edit link. Anyone who follows the old URL immediately loses access. This is the owner’s kill switch for a leaked or retired link.
string
required
Must be "doc-edit-link"
string
required
Must be "revoke"
string
required
The document UUID.
boolean
true if the link was deleted (or did not exist).
Revocation is immediate and irreversible. The shared URL stops working instantly. Generate a new link to re-enable external editing.

Public — view document

Resolves a link token and returns the document’s current text content so an editor can pre-fill. Viewing is always frictionless — no PIN is required to read; the PIN (if any) only gates Save. Any invalid or revoked token returns a 404 response uniformly, so this endpoint does not reveal which tokens exist.
No Authorization header is required. This action is public and authenticated purely by the link token.
string
required
Must be "doc-edit-link"
string
required
Must be "public-get"
object
required
boolean
Whether the request succeeded.
object

Public — save document

Saves new content for the linked document. If the link has a PIN, pin must match before the save is accepted. On success, all genies that use this document are automatically updated with the new content.
No Authorization header is required. This action is public and authenticated purely by the link token.
string
required
Must be "doc-edit-link"
string
required
Must be "public-update"
object
required
boolean
true when the document was saved successfully.
object
After 5 consecutive wrong PIN attempts, the Save action is locked for 15 minutes. The lockout resets automatically after the timeout or when the owner rotates the token or changes the PIN.

Error codes