- 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.
Get edit link
Returns the current edit link for a document, ornull 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
Generate edit link
Creates a shareable edit link for a document. Idempotent — returns the existing link unlessrotate: 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 — callgenerate 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
Revoke edit link
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).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 a404 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

