Sample - GitHub REST API
GET/repos/{owner}/{repo}/notifications

List repository notifications for the authenticated user

Lists all notifications for the current user in the specified repository.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

8 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
allbooleanoptional
If `true`, show notifications marked as read.
Default:false
participatingbooleanoptional
If `true`, only shows notifications in which the user is directly participating or mentioned.
Default:false
sincestringoptional
Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
beforestringoptional
Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
per_pageintegeroptional
The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:30
pageintegeroptional
The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:1

1 status code
200Response
idstringrequired
repositoryobjectrequired
Minimal Repository
subjectobjectrequired
reasonstringrequired
unreadbooleanrequired
updated_atstringrequired
last_read_atstringrequired
urlstringrequired
subscription_urlstringrequired