wiki.lichen.getWiki

lichen.wiki

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Resolve a wiki and, optionally, report what a given DID may do with it. Public wikis only. Handles are not accepted: resolve one with com.atproto.identity.resolveHandle first, then pass the DID.",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "createdAt": {
              "description": "Copied from the record. Absent when the record carried a stamp we cannot represent as a datetime.",
              "format": "datetime",
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "did": {
              "format": "did",
              "type": "string"
            },
            "homeSlug": {
              "description": "Note shown as the wiki's front page. Appview-local: not a record field, so another instance hosting the same wiki may answer differently.",
              "type": "string"
            },
            "language": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "noteCount": {
              "description": "Notes wiki.lichen.listNotes will return, which excludes any whose first revision has not been ingested.",
              "type": "integer"
            },
            "slug": {
              "type": "string"
            },
            "updatedAt": {
              "description": "When the wiki or any note in it last changed. Appview-derived, not a record field.",
              "format": "datetime",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            },
            "viewer": {
              "description": "Present only when the viewer parameter was supplied.",
              "ref": "#viewerState",
              "type": "ref"
            }
          },
          "required": [
            "uri",
            "did",
            "slug",
            "name",
            "description",
            "language",
            "noteCount",
            "updatedAt"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "Owner of the wiki. Use with slug.",
            "format": "did",
            "type": "string"
          },
          "slug": {
            "description": "The wiki's slug, which is also its record key. Use with did.",
            "format": "record-key",
            "maxLength": 512,
            "type": "string"
          },
          "uri": {
            "description": "AT-URI of the wiki record. Supply this, or did and slug.",
            "format": "at-uri",
            "type": "string"
          },
          "viewer": {
            "description": "Report this DID's capability on the wiki. Ingest silently drops a revision from a DID that may not edit, so a client should check here before writing.",
            "format": "did",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "viewerState": {
      "properties": {
        "canWrite": {
          "description": "Whether a wiki.lichen.noteRevision written by this DID would be accepted.",
          "type": "boolean"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "role": {
          "description": "Absent when the DID holds no membership and does not own the wiki.",
          "knownValues": [
            "owner",
            "admin",
            "contributor",
            "viewer"
          ],
          "type": "string"
        }
      },
      "required": [
        "did",
        "canWrite"
      ],
      "type": "object"
    }
  },
  "id": "wiki.lichen.getWiki",
  "lexicon": 1
}

Validate Record

Validate a record against wiki.lichen.getWiki

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:xfs42pjf3n7imvgrdrp7xvez
CID
bafyreihugjxzcxjucepzxa5ztdezgazwzkeluzrh3vqhrgpr7fy2foi3vu
Indexed At
2026-09-05 09:35 UTC
AT-URI
at://did:plc:xfs42pjf3n7imvgrdrp7xvez/com.atproto.lexicon.schema/wiki.lichen.getWiki

Version History (4 versions)

Similar Lexicons

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

  • List the public wikis a DID owns or belongs to. Returns them all in one response.

  • Get a note's current content and the head revision to write against. Public wikis only.

  • A wiki. The rkey is a permanent slug.

  • 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.

  • A membership grant for a wiki. The rkey is a TID. The member's DID lives in the record body.

Lexicon Garden

@