Sample - GitHub REST API
GET/notifications/threads/{thread_id}/subscription

Get a thread subscription for the authenticated user

This checks to see if the current user is subscribed to a thread. You can also get a repository subscription.

Note that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were @mentioned, or manually subscribe to a thread.

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

1 parameter
thread_idintegerrequired
The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).

4 status codes
200Response
subscribedbooleanrequired
ignoredbooleanrequired
reasonstringrequired
created_atstringrequired
urlstringrequired
thread_urlstringoptional
repository_urlstringoptional
304Not modified
401Requires authentication
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 401 is returned: Requires authentication. A 403 is returned: Forbidden.