GET/repos/{owner}/{repo}/subscription

Get a repository subscription

Gets information about whether the authenticated user is subscribed to the repository.

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

2 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.

3 status codes
200if you subscribe to the repository
subscribedbooleanrequired
Determines if notifications should be received from this repository.
ignoredbooleanrequired
Determines if all notifications should be blocked from this repository.
reasonstringrequired
created_atstringrequired
urlstringrequired
repository_urlstringrequired
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Not Found if you don't subscribe to the repository

Error handling

A 403 is returned: Forbidden. A 404 is returned: Not Found if you don't subscribe to the repository.

Was this helpful?