Read in:
English

Who can read a note

This page says who can read a note and what everyone else sees in its place. After it you can look at a note's frontmatter and tell what a guest, a signed-in reader, a subscriber and an agent get: on the page, in search, in feeds and over MCP. Read it before you put paid or internal notes next to public ones. How to create subgraphs and grant access is on Subgraphs; this page is about the result.

The rule

A note is closed unless something opens it. Two frontmatter keys decide:

free: true       # everyone, guests included
subgraph: paid   # readers who hold access to "paid"
Note Guest Signed in, no access Access to another subgraph Access to this subgraph Admin
free: true reads reads reads reads reads
no free, no subgraph closed closed reads n/a reads
subgraph: paid closed closed closed reads reads
subgraph: members, and members has Require sign-in on sign-in form reads reads reads reads

"Closed" is a paywall when an active offer sells the note, and a 404 otherwise (below).

Four things follow from the table.

  • free: true wins over everything. A free note in a paid subgraph is public. The subgraph still groups it; it no longer gates it.
  • A note with no subgraph is not private. Any reader who holds access to at least one subgraph reads it. On a site with several audiences, tag every note. Subgraphs has a patch that does it for the whole vault.
  • Several subgraphs mean "any of them". subgraphs: [beta, paid] opens the note to a reader with access to either.
  • Access is checked on every request. A grant that expires or is revoked stops working at the reader's next request.

"Access to a subgraph" is an active grant: bought through an offer, received through a Patreon or Boosty tier or a Telegram group, or given by hand in the admin. See Monetization and Telegram group access.

Files ending in .html (layouts) are never served as a note to anyone but an admin.

What a reader without access sees

It depends on whether the note is for sale. A note is for sale when an active offer covers one of its subgraphs; a note with no subgraph is for sale when any offer is active, since any grant opens it.

A note nobody sells answers 404, the same page a note that does not exist gets: no title, no description, no preview image. The trailing-slash, route: and transliterated addresses of the note answer 404 too, and its redirect: and language redirects do not fire. To a guest, every 404 page carries the site's sign-in form under the "not found" message, a missing note's as well as a closed one's, so the two still look the same; signing in reloads the address, and a reader allowed to see the note then reads it. A guest on a note in a Require sign-in subgraph gets a sign-in form instead, with status 401, and nothing of the note: no title, no description, no preview image. Signing in reloads the note.

A note for sale opens with a paywall in place of the body.

On the paywall Shown
Title yes
description from frontmatter yes
The offers that unlock the note, and sign-in yes
Body, including the first paragraph no
A description derived from the body no

The response status is 401 for a guest and 403 for a signed-in reader without access. The paywall carries noindex and is not cached.

The page header still names the note's preview image in og:image. The image file is checked like any other asset (below), so a link preview of a note for sale shows the title and no picture unless the same image is also used in a free note.

The title and the description of a note for sale are public. They are its teaser: do not put into them anything only subscribers should read.

Where a closed note still appears

Place What a reader without access gets
The note's own page 404; the paywall with title and description if the note is for sale
Magazine cards title, date and link; description if the note has one; no text from the body
Site search title and link with a fixed placeholder instead of the snippet
A wikilink in a note they can read the link, with the closed note's title
An embed in a note they can read the whole body (see below)
Similar notes nothing
RSS and the sitemap nothing: both list free notes only
[[en/user/note-queries Note queries]]
MCP search nothing
MCP note_html, expand Note not found, the same answer as for a note that does not exist

Start the server with --search-hide-unreadable to drop closed notes from site search instead of showing their titles.

An embedded note is shown only to those who can read it

![[Other note]] copies the other note's rendered body into the host note. The same goes for content: [[Other note]] in the default template. The copy is made only when everyone who can read the host note can also read the embedded one:

  • the embedded note is free, or a system note (_name) without a subgraph; or
  • the host note is not free, and every subgraph of the host is also a subgraph of the embedded note (or the embedded note sits in a require_signin subgraph, or has no subgraph while the host has none either).

In every other case the embed is shown as a plain link to the note, with no text.

---
free: true
---

Intro everyone reads.

![[Paid lesson]]

Here every visitor sees a link to Paid lesson and reads its text only on its own page, behind its paywall. The free preview of a note is shown to everyone, so it embeds only free notes. Embeds nested in embeds follow the same rule at every level. More on embeds: Embedded notes.

Notes that start with _

A file or folder whose name starts with _ is a system note. It is left out of magazine cards, site search, similar notes, RSS and MCP search, and its own URL answers 404. It can still be embedded, and an agent can open it by path over MCP if the rule above lets it.

The underscore hides a note from listings. It is not an access setting: free and subgraph still decide who may read it.

Hidden notes

hide in updateNotes takes a note off the site without changing its content. A hidden note is not served to any reader: no page, no search hit, no feed entry.

Assets

Images and attachments follow their notes.

  • An asset used by at least one free note, by a layout, or by the site header and footer is served to everyone.
  • Any other asset needs a signed-in reader who can read at least one note that uses it.
  • A request with a valid X-API-Key header gets any asset.

Drafts and releases

Releases decide which version of a note readers get. The setting is Show Draft Versions, on by default.

Show Draft Versions Pages, site search, sitemap MCP tools, note queries, similar notes
on latest synced version latest synced version
off version in the live release latest synced version

With the setting off, the second column is a known gap: those readers do not wait for a release. A note you synced but have not released yet is already visible to them under the access in its newest frontmatter. If you add free: true to a draft, an anonymous agent can read that draft over MCP before the release goes live.

An admin always searches the latest versions and can switch a page between the two with ?version=latest and ?version=live.

Keys and tokens

Credential Reads
No credential (anonymous MCP client) free notes
Session cookie or a personal token (t2g_…) what that user reads
API key in X-API-Key every note and every asset
Scoped webhook token notes matching the delivery's read_patterns, nothing else

An API key is an owner's credential. Give a reader's agent a personal token instead; see GraphQL API for how to create one. Scoped tokens are described in Webhooks and Fleet.

Custom layouts

A layout you write can read any note in the vault and print any part of it. The access rule covers the note a visitor opens, not what the layout pulls in beside it. In a feed-like layout, add .Public() to the note list to keep only free notes:

{{ range i, n := nvs.ByGlob("blog/**").Public().All() }}
  <a href="{{ n.Permalink() }}">{{ n.Title() }}</a>
{{ end }}

noteQuery(...) in a layout is different: it runs with the visitor's access.

Another base searching yours

A federated peer is one more kind of reader. Its key is scoped to a list of subgraphs, and the table above applies to it as to a reader who holds access to exactly those subgraphs. Who may search whom and what they see are set separately: Context separation shows the pattern, MCP Federation the setup.