Overview
Notifications are generated for events like:- Pull request activity (comments, reviews, merges)
- Issue updates
- Mentions
- Repository access changes
Endpoints
List Notifications
Get notifications for the authenticated user.Get Unread Count
Get the count of unread notifications.Mark as Read
Mark a specific notification as read.Mark All as Read
Mark all notifications as read.Delete Notification
Delete a specific notification.Delete All Notifications
Delete all notifications for the current user.Notification Types
| Type | Description |
|---|---|
pr_comment | Comment on a pull request |
pr_review | Review submitted on a PR |
pr_merged | Pull request was merged |
pr_closed | Pull request was closed |
issue_comment | Comment on an issue |
issue_closed | Issue was closed |
mention | You were @mentioned |
access_granted | Repository access granted |
access_revoked | Repository access revoked |
Usage Examples
React Component
CLI Integration
Error Handling
| Error Code | Description |
|---|---|
UNAUTHORIZED | Not authenticated |
NOT_FOUND | Notification not found |
FORBIDDEN | Cannot access this notification |