You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
REST Pages docs say "can be used without authentication", but GET /repos/{owner}/{repo}/pages and the builds endpoints return 404 without a token #46969
Without a token, all three return 404 Not Found for the public repositories with live Pages sites I tried (below). With my gh CLI token, which has no access to these repositories beyond what is public, they return the data. A 404 reads as "this repository has no Pages site", so someone following the docs gets the wrong answer instead of an auth error.
Reproduced 2026-11-17 (curl 8.7.1, no Authorization header, with and without X-GitHub-Api-Version: 2022-11-28 / 2026-03-10):
GET /repos/{owner}/{repo}/pages gives the same tokenless 404 and authenticated built for pages-themes/cayman, pages-themes/minimal and github/choosealicense.com. The 404 body points back to this page ("documentation_url": "https://docs.github.com/rest/pages/pages#get-a-apiname-pages-site"). Rate limit was not the cause (x-ratelimit-remaining: 45).
Suggested change: drop the "can be used without authentication" line from these three endpoints, or replace it with "Requires authentication, even for public repositories. Unauthenticated requests return 404."
Additional information
AI disclosure: an AI agent (Claude Code, Claude Opus 5.5) found this mismatch, reproduced it and drafted this issue. The commands above were run on my machine on 2026-11-17 and the outputs are copied verbatim.
Since the content you've highlighted is solely determined by the API specification, please raise this issue against https://github.com/github/rest-api-description, as that's the right place for such content
Activity
subatoi commentedon Nov 16, 2026
@Denzil10 Thanks for raising an issue
Since the content you've highlighted is solely determined by the API specification, please raise this issue against https://github.com/github/rest-api-description, as that's the right place for such content
I'm going to go ahead and close this out