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.
Details · query
| Kind | query |
|---|---|
| Authority | notification.mochott.site |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.cursorNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.parameters.properties.types.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.cursorNo maxLength, maxGraphemes or format limits this string.
{
"$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
}