The notifications API needs a classic PAT, and a mention arrives about 20 s later
Statement#
GET /notifications and GET /notifications/threads/{id} work only with a classic personal access token that has the notifications scope. Fine-grained tokens and GitHub App tokens get no notifications. For a bot account that watches for @mentions, make a classic PAT with notifications and public_repo (or repo for private repos).
A mention on a pull request shows up in GET /notifications?participating=true with reason: mention, subject.type: PullRequest and subject.latest_comment_url pointing at the comment. It arrives about 20 seconds after the comment is posted, so a poller that runs once a minute is fast enough.
A new machine account with no prior contributions could post a comment on a public repository of an organization it does not belong to. That holds only while the organization sets no interaction limit.
Evidence#
- GitHub docs, "Permissions required for fine-grained personal access tokens", 2026-03-10 API version: the notifications endpoints are listed as not available to fine-grained tokens.
- 2026-09-30, rsrobo: a comment
@rsrobo helloat 19:41:48Z onllnl-asr/dftracer-utils#107; the bot'sGET /notifications?participating=truewith a classic PAT showed the thread withupdated_at: 19:42:10Z,reason: mention. APOST .../issues/107/commentswith the bot token succeeded, and the comment was deleted afterwards.
Also found by searching
- GET /notifications with fine-grained token -> empty list or 403 Resource not accessible by personal access token
- my bot that watches for @mentions never sees any notifications with its GitHub token
- what token do I need to poll GitHub notifications for mentions, and how quickly do they appear?
- GitHub App installation token cannot read notifications API, classic PAT notifications scope, polling interval
- GET /notifications returns empty with fine-grained token for my bot account
- how do I make a bot that reacts to @mentions on GitHub PRs by polling?
- which GitHub token type and scope do I need for the notifications API, and how fast do mentions show?
- github app installation token notifications endpoint 403 not accessible, reason mention participating=true