wiki.lichen.getNote

Get a note's current content and the head revision to write against. Public wikis only. A deleted note answers NoteDeleted.

Repository @lichen.wiki did:plc:xfs42pjf3n7imvgrdrp7xvez namespace authority
Details · query
Kindquery
Authoritylichen.wiki
Indexed

Query

query · GET

Parameters

query string

slug

string

The note's slug, unique within its wiki. Use with wiki.

  • maxLength: 2560
  • maxGraphemes: 256

uri

string · at-uri

AT-URI of the note record. Supply this, or wiki and slug.

wiki

string · at-uri

AT-URI of the wiki the note belongs to. Use with slug.

Output

application/json

content

requiredstring

The note's body as its last revision left it, byte for byte. Frontmatter and wikilinks stay exactly as the author wrote them. Writing this text back unchanged produces an empty revision.

createdAt

requiredstring · datetime

The note record's own timestamp, in UTC. An unreadable or future-dated stamp falls back to our ingest time.

did

requiredstring · did

The DID that created the note record. Later revisions can come from anyone allowed to edit the wiki.

latestRevisionUri

requiredstring · at-uri

The head revision. Set it as parentRevision on your noteRevision to write against this content. Only a revision parented here moves the note.

slug

requiredstring

title

requiredstring

updatedAt

requiredstring · datetime

The head revision's own timestamp, so appviews holding the same history agree. Same fallback as createdAt.

uri

requiredstring · at-uri

AT-URI of the note record. The rkey is a TID, so read it from here or address the note by wiki and slug.

wiki

requiredstring · at-uri

Errors

NotFound

No description in schema.

NoteDeleted

No description in schema.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • List a public wiki's notes, each with its head revision. Compare latestRevisionUri with what you hold, then call getNote for the notes that changed.

  • Get a wiki. Pass viewer to also get what that DID can do with it. Public wikis only. Takes a DID, so resolve a handle to one first with com.atproto.identity.resolveHandle.

  • A contributor's full copy of a note as they last saved it. Revisions define the note. The rkey is the note's rkey.

  • A note within a wiki. The rkey is a TID. Human-readable slug lives in the record body.

  • A revision to a note. It holds either a diff from the previous revision or the complete new body, depending on diffFormat.