Skip to main content

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](https://docs.github.com/[email protected]/rest/reference/activity#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.

GET/notifications/threads/{thread_id}/subscription
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
thread_id integer
required

thread_id parameter

Responses

application/json Thread Subscription object

Response

created_at string<date-time>
requirednullable

Example: 2012-10-06T21:34:12Z

ignored boolean
required
reason string
requirednullable
repository_url string<uri>
optional

Example: https://api.github.com/repos/1

subscribed boolean
required

Example: true

thread_url string<uri>
optional

Example: https://api.github.com/notifications/threads/1

url string<uri>
required

Example: https://api.github.com/notifications/threads/1/subscription

Not modified

application/json Basic Error object

Requires authentication

documentation_url string
optional
message string
optional
status string
optional
url string
optional
application/json Basic Error object

Forbidden

documentation_url string
optional
message string
optional
status string
optional
url string
optional