# social.grain.notification.listNotifications

> Get the authenticated user's notifications, the latest first, as app.bsky.notification.listNotifications does. Requires auth.

- Kind: query
- Authority: notification.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.notification.listNotifications)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.notification.listNotifications/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.notification.listNotifications/analytics)

## Query (`social.grain.notification.listNotifications`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 20

### Output (application/json)

- `cursor` (string)
- `notifications` (array, required)
  - `items` (ref)
    - Reference: `social.grain.notification.defs#notificationItem`
- `seenAt` (string · datetime): When the viewer last marked their notifications seen (updateSeen), if they have.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the authenticated user's notifications, the latest first, as app.bsky.notification.listNotifications does. Requires auth.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "notifications": {
              "items": {
                "ref": "social.grain.notification.defs#notificationItem",
                "type": "ref"
              },
              "type": "array"
            },
            "seenAt": {
              "description": "When the viewer last marked their notifications seen (updateSeen), if they have.",
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "notifications"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 20,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.grain.notification.listNotifications",
  "lexicon": 1
}
```
