# wiki.lichen.listNotes

> Published by [lichen.wiki](https://lexicon.garden/identity/did:plc:xfs42pjf3n7imvgrdrp7xvez)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.listNotes)
- [Documentation](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.listNotes/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.listNotes/examples)

## Definitions

### `wiki.lichen.listNotes`

**Type**: `query`

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.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `limit` | `integer` | No |  |
| `wiki` | `string` (at-uri) | Yes | AT-URI of the wiki record. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Absent on the last page. |
| `notes` | `array` | Yes |  |

#### Errors

- **NotFound**

### `wiki.lichen.listNotes#noteView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `latestRevisionUri` | `string` (at-uri) | Yes | The head revision, the same value getNote returns. Compare it with what you hold to spot a change. Set it as parentRevision to write. |
| `slug` | `string` | Yes |  |
| `title` | `string` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes | The head revision's own timestamp, so appviews holding the same history agree. An unusable stamp falls back to our ingest time. |
| `uri` | `string` (at-uri) | Yes | AT-URI of the note record. The rkey is a TID, so read it from here or address the note by wiki and slug. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "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.",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Absent on the last page.",
              "type": "string"
            },
            "notes": {
              "items": {
                "ref": "#noteView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "notes"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "wiki": {
            "description": "AT-URI of the wiki record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "wiki"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "noteView": {
      "properties": {
        "latestRevisionUri": {
          "description": "The head revision, the same value getNote returns. Compare it with what you hold to spot a change. Set it as parentRevision to write.",
          "format": "at-uri",
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "updatedAt": {
          "description": "The head revision's own timestamp, so appviews holding the same history agree. An unusable stamp falls back to our ingest time.",
          "format": "datetime",
          "type": "string"
        },
        "uri": {
          "description": "AT-URI of the note record. The rkey is a TID, so read it from here or address the note by wiki and slug.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "slug",
        "title",
        "latestRevisionUri",
        "updatedAt"
      ],
      "type": "object"
    }
  },
  "id": "wiki.lichen.listNotes",
  "lexicon": 1
}
```
