Skip to main content
The Notifications API allows you to manage user notifications for repository events.

Overview

Notifications are generated for events like:
  • Pull request activity (comments, reviews, merges)
  • Issue updates
  • Mentions
  • Repository access changes
All notification endpoints require authentication.

Endpoints

List Notifications

Get notifications for the authenticated user.
Response:
Example:

Get Unread Count

Get the count of unread notifications.
Response:
Example:

Mark as Read

Mark a specific notification as read.
Response:
Example:

Mark All as Read

Mark all notifications as read.
Response:
Example:

Delete Notification

Delete a specific notification.
Response:

Delete All Notifications

Delete all notifications for the current user.
Response:

Notification Types


Usage Examples

React Component

CLI Integration


Error Handling