Skip to main content
GitHub Docs
Version:
Free, Pro, & Team
Search GitHub Docs
REST API
/
Gists
All products
REST API
API Version:
2022-11-28 (latest)
Quickstart
Overview
Guides
REST API reference
Actions
Activity
Apps
Billing
Branches
Checks
Codes of conduct
Code Scanning
Codespaces
Collaborators
Commits
Dependabot
Dependency Graph
Deploy keys
Deployments
Emojis
Gists
Gists
Comments
Git database
Gitignore
Interactions
Issues
Licenses
Markdown
Meta
Metrics
Migrations
Organizations
Packages
Pages
Projects (classic)
Pulls
Rate limit
Reactions
Releases
Repositories
Search
Secret scanning
Security advisories
Teams
Users
Repository webhooks
The REST API is now versioned.
For more information, see "
About API versioning
."
REST API
/
Gists
Gists
Use the REST API to list, create, update and delete the public gists on GitHub.
Gists
List gists for the authenticated user
Create a gist
List public gists
List starred gists
Get a gist
Update a gist
Delete a gist
List gist commits
List gist forks
Fork a gist
Check if a gist is starred
Star a gist
Unstar a gist
Get a gist revision
List gists for a user
Comments
List gist comments
Create a gist comment
Get a gist comment
Update a gist comment
Delete a gist comment