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
Filter by specific notification reasons
Max notifications (1-100, default 50)
Whether to show priority notifications
Pagination cursor
ISO 8601 timestamp of when notifications were last seen
Next page cursor
Array of notification objects
Whether these are priority notifications
When notifications were last seen
getUnreadCount
Get count of unread notifications. Endpoint:app.bsky.notification.getUnreadCount
Authentication: Required
Only count priority notifications
ISO 8601 timestamp to check unread count since
Number of unread notifications
Procedures
updateSeen
Update the seen timestamp for notifications. Endpoint:app.bsky.notification.updateSeen
Authentication: Required
ISO 8601 timestamp
registerPush
Register a device for push notifications. Endpoint:app.bsky.notification.registerPush
Authentication: Required
DID of the push notification service
Push notification token
Platform:
ios, android, or webApplication identifier
unregisterPush
Unregister a device from push notifications. Endpoint:app.bsky.notification.unregisterPush
Authentication: Required
DID of the push notification service
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
Notification preferences object
Activity Subscriptions
putActivitySubscription
Subscribe to activity from a user (get notified of their posts). Endpoint:app.bsky.notification.putActivitySubscription
Authentication: Required
DID of the user to subscribe to
Subscription settings (post, reply)
listActivitySubscriptions
List activity subscriptions. Endpoint:app.bsky.notification.listActivitySubscriptions
Authentication: Required
Max subscriptions (1-100, default 50)
Pagination cursor
Notification Types
notification
Notification object structure.AT-URI of the notification record
CID of the notification record
Profile of the actor who triggered the notification
Notification reason (see below)
AT-URI of the subject (e.g., the post that was liked)
The notification record data
Whether notification has been read
When notification was created
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.Chat notification settings
Follow notification settings
Like notification settings
Like-via-repost notification settings
Mention notification settings
Quote notification settings
Reply notification settings
Repost notification settings
Repost-via-repost notification settings
Starter pack join notification settings
Subscribed post notification settings
Unverified notification settings
Verified notification settings
filterablePreference
Settings for filterable notification types.Who to include:
all or followsShow in notification list
Send push notification
activitySubscription
Activity subscription settings.Notify for new posts
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