Skip to content

app.bsky.notification.getUnreadCount

Lexicon Version: 1

Type: query

Count the number of unread notifications for the requesting account. Requires auth.

Parameters:

NameTypeReq’dDescriptionConstraints
priorityboolean
seenAtstringFormat: datetime
Output:
  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
countinteger

{
"lexicon": 1,
"id": "app.bsky.notification.getUnreadCount",
"defs": {
"main": {
"type": "query",
"description": "Count the number of unread notifications for the requesting account. Requires auth.",
"parameters": {
"type": "params",
"properties": {
"priority": {
"type": "boolean"
},
"seenAt": {
"type": "string",
"format": "datetime"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"count"
],
"properties": {
"count": {
"type": "integer"
}
}
}
}
}
}
}