This version of GitHub Enterprise Server will be discontinued on 2026-08-25. Discontinued releases are not supported. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features in GitHub Enterprise Server, see Overview of the upgrade process. For help with the upgrade, GitHub Enterprise Support.
The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for gists and gist comments
Use the REST API to list, create, update and delete the public gists on GitHub.
- REST API endpoints for gists, 1 of 2
- List gists for the authenticated user, 1 of 15
- Create a gist, 2 of 15
- List public gists, 3 of 15
- List starred gists, 4 of 15
- Get a gist, 5 of 15
- Update a gist, 6 of 15
- Delete a gist, 7 of 15
- List gist commits, 8 of 15
- List gist forks, 9 of 15
- Fork a gist, 10 of 15
- Check if a gist is starred, 11 of 15
- Star a gist, 12 of 15
- Unstar a gist, 13 of 15
- Get a gist revision, 14 of 15
- List gists for a user, 15 of 15
- REST API endpoints for gist comments, 2 of 2