Skip to main content
GET
Read a publicly linked document

Path Parameters

publicToken
string
required

Public link token from the document's read-only URL.

Response

The public document.

Read-only public view of a document, plus whether the current viewer can open it in the app.

docId
string
required

Id of the shared document, for deep-linking into the app editor.

Example:

"doc_V1StGXR8_Z5jdHi6BmyT"

title
string
required

Title of the publicly shared document.

Example:

"Launch plan"

markdown
string
required

Full markdown content of the document.

Example:

"# Launch plan\n\nShip it."

viewerHasAccess
boolean
required

Whether the currently authenticated viewer has their OWN access to this document — as its owner, a member of its workspace organization, or via an explicit share — independent of the public link. Drives the "Open in editor" affordance on the share page. Always false for anonymous viewers.

Example:

false