# site.mochott.notification.listNotifications

> Without types and without a keyset cursor, comic notifications are excluded and the cursor is an offset. Naming types (or passing a cursor this method returned for a request with types) switches to keyset pagination and adds url, commentUri and commentText to each notification. The recipient's notification settings and mutes always apply.

- Kind: query
- Authority: notification.mochott.site
- Lexicon: 1
- Published by [tokimeki.blue](https://lexicon.garden/identity/did:plc:4tr5dqti7nmu6g2czpthntak), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.notification.listNotifications)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.notification.listNotifications/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.notification.listNotifications/analytics)

## Query (`site.mochott.notification.listNotifications`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `types` (array): Only return these notification types. Comic types are only returned when named here. Unknown values match nothing.
  - `items` (string)
    - Constraints: knownValues: new_article | like | subscription | comment | reply | import_completed | import_failed | new_comic | comic_like | comic_comment | comic_reply | comic_subscription

### Output (application/json)

- `cursor` (string)
- `notifications` (array, required)
  - `items` (ref)
    - Reference: `site.mochott.notification.defs#notificationView`
- `unreadCount` (integer, required): Unread notifications of the listed types.
  - Constraints: minimum: 0

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Without types and without a keyset cursor, comic notifications are excluded and the cursor is an offset. Naming types (or passing a cursor this method returned for a request with types) switches to keyset pagination and adds url, commentUri and commentText to each notification. The recipient's notification settings and mutes always apply.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "notifications": {
              "items": {
                "ref": "site.mochott.notification.defs#notificationView",
                "type": "ref"
              },
              "type": "array"
            },
            "unreadCount": {
              "description": "Unread notifications of the listed types.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "notifications",
            "unreadCount"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "types": {
            "description": "Only return these notification types. Comic types are only returned when named here. Unknown values match nothing.",
            "items": {
              "knownValues": [
                "new_article",
                "like",
                "subscription",
                "comment",
                "reply",
                "import_completed",
                "import_failed",
                "new_comic",
                "comic_like",
                "comic_comment",
                "comic_reply",
                "comic_subscription"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "List notifications for the requesting account, newest first. Requires auth.",
  "id": "site.mochott.notification.listNotifications",
  "lexicon": 1,
  "revision": 1
}
```
