The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for GitHub Pages
Use the REST API to interact with GitHub Pages sites and builds.
Use the REST API to interact with GitHub Pages sites and builds.
REST API endpoints for GitHub Pages - GitHub Enterprise Server 3.15 Docs