Skip to content
undertext developers
Skip to Content
undertext developers

Seals

A seal freezes a document and its record at a short link anyone can open and check.

A seal is a snapshot of a document as it stands, with everything Undertext recorded about how it was written, at a short link such as https://acme.com/seals/66G4LF343, on your site, or https://seal.undertext.sh/66G4LF343. Your users copy the text wherever it's going and send the link with it. Anyone can open the link and see where the words came from, without an account on your platform or ours, unless the document's owners made its seals private.

What sealing captures

  • The text, read-only, with its images, as it stood at that moment. A document with pending suggestions can't be sealed until they're accepted or rejected.
  • The numbers: the four origins as shares of the text, Presence and how much of it was verified, prompts, sittings and time, frozen under the method of the day.
  • The record behind them: who did what, agent reads and edits, the sittings on a timeline, and which signals were on.
  • The names people had when it was sealed, the name of whoever sealed it among them. Later name changes don't reach it.
  • Who vouches for identity: your platform's name and the ids of the keys that started the writing sessions.

A seal is the document's proof to others, so its owners make it: from the editor's Seal button, or your server seals it for one of them, with POST /v1/documents/{id}/seals. Undertext sends a seal.created event either way. Everyone who can open the document sees its seals in the seal dialog, with their links.

Versions

Sealing never stops the writing. People keep editing after they seal, and sealing again makes a new seal with its own code and the next version number. Each seal's link always shows the version it was made from. When a newer seal of the same document exists, the page says so and links to it.

A seal can't be changed. If the text needs fixing, edit and seal again.

The seal line

Every seal has one line of text that sums it up, made for pasting under the work it travels with:

seal.undertext.sh/66G4LF343 · 96% typed/shaped · 2% AI · 2% external · 101 prompts · 9 sessions, 11hr2min (98% verified)
PartMeaning
96% typed/shapedTyped and Shaped together: what people wrote or reworked.
2% AIAgent text kept as written.
2% externalPasted or imported text of unknown origin.
101 promptsRounds of back-and-forth between people and agents.
9 sessions, 11hr2minSittings, and the time spent in them.

When check-ins verified every sitting people wrote in, the line ends (verified); when they verified some, it ends with the share, such as (98% verified). There is no overall score: readers see each part.

The seal object returns the line ready to use, in line. The editor's exports can end with it, its address linking to the seal, while the document still reads as its newest seal does: see editor.export.

The method

The rules that turn a record into numbers are versioned, and each seal keeps the version it was made under, such as v0.2. When the method improves, sealed numbers don't change. The seal page shows a reading under the newer method beside the original, labelled as such, and GET /v1/documents/{id}/provenance always returns the reading under the current method.

The seal page

A seal's page is drawn by Undertext, so that what it shows can't be edited by anyone who wrote the document or by the platform it was written in. It shows:

  • the text and the seal, with its breakdown one click away;
  • who sealed it, and when;
  • "Written in Acme Notes", with your platform's name from the console;
  • that Acme Notes vouches for who the writers are, and which keys started their sessions.

It's at your own address once you set a seal_url, such as https://acme.com/seals/{code}, and show the seal there with mountSeal: your page gives it your address, link preview and sign-in, and Undertext draws the seal in a frame from its own domain, as it does the editor. Seal links and seal lines then name your address. Every seal's page is also on Undertext's own domain, at seal.undertext.sh/{code}, where anyone can check what yours shows; without a seal_url, that's the seal's link. See Show seals on your site.

Shared on the web, a public seal's link unfurls into a preview image with the title, who wrote it, the seal and the seal line. Your page gets these from the seal's preview.

Who reads it

A document's owners choose, in the editor's seal dialog, who reads its seals, every version alike:

  • Anyone with the link, the default.
  • Private: whoever can open the document, readers they name by email or as *@domain, and whoever has the password, if they set one. Whoever can open the document means its members and, while its link lets anyone in, anyone signed in with your platform: a seal's page can't tell who has the document's link, so the seal's link stands in for it. Readers prove who they are by signing in with your platform, which vouches for them, and for their verified email, with a seal session. A private seal has no link preview.

Sharing the document and sealing it stay apart: people you share it with collaborate on it, and can always read its seals; the seal dialog decides who else may.

Someone a private seal turns away, signed in with an email your platform vouched for, can ask its owners to let them read it, from the seal's page on your site. The owners see who's asking, and their message, in the seal dialog, and let them read, which adds their email to the readers, or decline. Undertext tells your server with seal_request events, so you can tell the owners, and the person asking once they're let in.

Withdrawing

In the editor's seal dialog, its owners can withdraw any version; your server can withdraw any with DELETE /v1/seals/{code}. Its page then says it was withdrawn, and nothing else; the link keeps answering so that anyone who has it learns why. Deleting a document withdraws all its seals. While a document is in its owners' trash, its seals are down, and come back if it's restored.

The seal object

{
  "code": "66G4LF343",
  "url": "https://seal.undertext.sh/66G4LF343",
  "document": "doc_8Hq2Lm4R",
  "version": 3,
  "sealed_at": "2026-10-30T16:31:00Z",
  "sealed_by": "usr_5Kq2Lm8R",
  "method": "v0.2",
  "line": "seal.undertext.sh/66G4LF343 · 96% typed/shaped · 2% AI · 2% external · 101 prompts · 9 sessions, 11hr2min (98% verified)",
  "composition": { "typed": 86, "shaped": 10, "ai": 2, "external": 2 },
  "presence": { "share": 99, "verified_share": 98, "verified": false },
  "prompts": 101,
  "sittings": 9,
  "duration": "11hr2min",
  "attested_by": { "platform": "acme", "key_ids": ["key_3Fq9"] },
  "withdrawn_at": null,
  "preview": {
    "title": "On the Analytical Engine",
    "description": "96% typed/shaped · 2% AI · 2% external · 101 prompts · 9 sessions, 11hr2min (98% verified). Sealed with Undertext, written in Acme Notes (acme.com, verified).",
    "image_url": "https://seal.undertext.sh/api/seals/66G4LF343/preview.png"
  }
}

On this page