activity

Get a repository subscription

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

get/repos/{owner}/{repo}/subscription

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/repos/{owner}/{repo}/subscription
  • Auth: none declared

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Response

if you subscribe to the repository

subscribedboolean required

Determines if notifications should be received from this repository.

ignoredboolean required

Determines if all notifications should be blocked from this repository.

reasonstring nullable required
created_atstring date-time required
urlstring uri required
repository_urlstring uri required

Example response

{
  "subscribed": true,
  "created_at": "2012-10-06T21:34:12Z",
  "url": "https://api.github.com/repos/octocat/example/subscription",
  "repository_url": "https://api.github.com/repos/octocat/example"
}

Changes

No recorded changes to this operation across all 23 revisions of this API.