Overview
Theapp.bsky.notification namespace provides lexicons for managing notifications about social interactions and activity.
Key Concepts
- Notifications: Events about interactions with your content (likes, replies, follows, etc.)
- Notification Reasons: Different types of notification events
- Read State: Whether notifications have been seen
- Preferences: Settings for which notifications to receive
- Activity Subscriptions: Subscribe to posts from specific users
Queries
listNotifications
List notifications for the authenticated user. Endpoint:app.bsky.notification.listNotifications
Authentication: Required
array
Filter by specific notification reasons
integer
Max notifications (1-100, default 50)
boolean
Whether to show priority notifications
string
Pagination cursor
string
ISO 8601 timestamp of when notifications were last seen
string
Next page cursor
array
required
Array of notification objects
boolean
Whether these are priority notifications
string
When notifications were last seen
getUnreadCount
Get count of unread notifications. Endpoint:app.bsky.notification.getUnreadCount
Authentication: Required
boolean
Only count priority notifications
string
ISO 8601 timestamp to check unread count since
integer
required
Number of unread notifications
Procedures
updateSeen
Update the seen timestamp for notifications. Endpoint:app.bsky.notification.updateSeen
Authentication: Required
string
required
ISO 8601 timestamp
registerPush
Register a device for push notifications. Endpoint:app.bsky.notification.registerPush
Authentication: Required
string
required
DID of the push notification service
string
required
Push notification token
string
required
Platform:
ios, android, or webstring
required
Application identifier
unregisterPush
Unregister a device from push notifications. Endpoint:app.bsky.notification.unregisterPush
Authentication: Required
string
required
DID of the push notification service
string
required
Push notification token to unregister
Preferences
getPreferences
Get notification preferences. Endpoint:app.bsky.notification.getPreferences
Authentication: Required
Response: Notification preferences object
Example:
putPreferences
Update notification preferences. Endpoint:app.bsky.notification.putPreferences
Authentication: Required
object
required
Notification preferences object
Activity Subscriptions
putActivitySubscription
Subscribe to activity from a user (get notified of their posts). Endpoint:app.bsky.notification.putActivitySubscription
Authentication: Required
string
required
DID of the user to subscribe to
object
required
Subscription settings (post, reply)
listActivitySubscriptions
List activity subscriptions. Endpoint:app.bsky.notification.listActivitySubscriptions
Authentication: Required
integer
Max subscriptions (1-100, default 50)
string
Pagination cursor
Notification Types
notification
Notification object structure.string
required
AT-URI of the notification record
string
required
CID of the notification record
object
required
Profile of the actor who triggered the notification
string
required
Notification reason (see below)
string
AT-URI of the subject (e.g., the post that was liked)
object
required
The notification record data
boolean
required
Whether notification has been read
string
required
When notification was created
array
Content labels
Notification Reasons
Possible values for thereason field:
like: Someone liked your postrepost: Someone reposted your postfollow: Someone followed youmention: Someone mentioned you in a postreply: Someone replied to your postquote: Someone quoted your poststarterpack-joined: Someone joined via your starter packverified: You received verificationunverified: Verification was removedlike-via-repost: Someone liked a post via your repostrepost-via-repost: Someone reposted a post via your repostsubscribed-post: New post from someone you’re subscribed tocontact-match: Contact match found
Type Definitions
preferences
Notification preferences for all notification types.object
required
Chat notification settings
object
required
Follow notification settings
object
required
Like notification settings
object
required
Like-via-repost notification settings
object
required
Mention notification settings
object
required
Quote notification settings
object
required
Reply notification settings
object
required
Repost notification settings
object
required
Repost-via-repost notification settings
object
required
Starter pack join notification settings
object
required
Subscribed post notification settings
object
required
Unverified notification settings
object
required
Verified notification settings
filterablePreference
Settings for filterable notification types.string
required
Who to include:
all or followsboolean
required
Show in notification list
boolean
required
Send push notification
activitySubscription
Activity subscription settings.boolean
required
Notify for new posts
boolean
required
Notify for new replies
Common Use Cases
Display Notification Feed
Notification Badge
Subscribe to User Updates
Configure Notification Preferences
Related Lexicons
- app.bsky.actor - User profiles and preferences
- app.bsky.feed - Posts and interactions
- app.bsky.graph - Social relationships