so.sprk.notification.listNotifications
Enumerate notifications for the requesting account. Requires auth.
Details · query
| Kind | query |
|---|---|
| Authority | notification.sprk.so |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.cursorNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.parameters.properties.reasons.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.cursorNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.notification.properties.reasonNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Enumerate notifications for the requesting account. Requires auth.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cursor": {
"type": "string"
},
"notifications": {
"items": {
"ref": "#notification",
"type": "ref"
},
"type": "array"
},
"priority": {
"type": "boolean"
},
"seenAt": {
"format": "datetime",
"type": "string"
}
},
"required": [
"notifications"
],
"type": "object"
}
},
"parameters": {
"properties": {
"cursor": {
"type": "string"
},
"limit": {
"default": 50,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"priority": {
"type": "boolean"
},
"reasons": {
"description": "Notification reasons to include in response.",
"items": {
"description": "A reason that matches the reason property of #notification.",
"type": "string"
},
"type": "array"
},
"seenAt": {
"format": "datetime",
"type": "string"
}
},
"type": "params"
},
"type": "query"
},
"notification": {
"properties": {
"author": {
"ref": "so.sprk.actor.defs#profileView",
"type": "ref"
},
"cid": {
"format": "cid",
"type": "string"
},
"indexedAt": {
"format": "datetime",
"type": "string"
},
"isRead": {
"type": "boolean"
},
"labels": {
"items": {
"ref": "com.atproto.label.defs#label",
"type": "ref"
},
"type": "array"
},
"reason": {
"description": "Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', and 'starterpack-joined'.",
"knownValues": [
"like",
"repost",
"follow",
"mention",
"reply",
"like-via-repost",
"repost-via-repost"
],
"type": "string"
},
"reasonSubject": {
"format": "at-uri",
"type": "string"
},
"record": {
"type": "unknown"
},
"uri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"cid",
"author",
"reason",
"record",
"isRead",
"indexedAt"
],
"type": "object"
}
},
"id": "so.sprk.notification.listNotifications",
"lexicon": 1
}