Skip to main content
GitHub Docs
All products
REST API
Overview
Resources in the REST API
Media types
Other authentication methods
Troubleshooting
Libraries
GitHub App-enabled endpoints
GitHub App permissions
Guides
Get started - REST API
Basics of authentication
Discover resources for a user
Delivering deployments
Rendering data as graphs
Working with comments
Traverse with pagination
Building a CI server
Integrator best practices
Get started - Git Database API
Get started - Checks API
REST API reference
Actions
Artifacts
Permissions
Secrets
Self-hosted runner groups
Self-hosted runners
Workflow jobs
Workflow runs
Workflows
Activity
Events
Feeds
Notifications
Starring
Watching
Apps
GitHub Apps
Installations
OAuth Apps
Webhooks
Branches
Branches
Protected branches
Checks
Check Runs
Check Suites
Codes of conduct
Code Scanning
Collaborators
Collaborators
Invitations
Commits
Commits
Commit comments
Commit statuses
Deploy keys
Deployments
Deployments
Environments
Deployment Statuses
Emojis
Enterprise administration
Admin stats
Announcement
Audit log
Global Webhooks
License
Organizations
Pre-receive Environments
Users
SCIM
Gists
Gists
Comments
Git database
Blobs
Commits
References
Tags
Trees
Gitignore
Issues
Issues
Assignees
Comments
Events
Labels
Milestones
Timeline
Licenses
Markdown
Meta
Metrics
Statistics
Migrations
Organizations
Users
Organizations
Organizations
Members
Outside Collaborators
Webhooks
Pages
Projects
Boards
Cards
Collaborators
Columns
Pulls
Pulls
Review comments
Review requests
Reviews
Rate limit
Reactions
Releases
Releases
Release Assets
Repositories
Repositories
Autolinks
Contents
Forks
Git LFS
Search
Secret scanning
Teams
Teams
Discussion comments
Discussions
External groups
Members
Users
Users
Followers
GPG Keys
Git SSH Keys
Webhooks
Repository Webhook Configuration
Repository Webhook Deliveries
Repository Webhooks
GitHub AE is currently under limited release. Please
contact our Sales Team
to find out more.
REST API
/
Gists
GitHub AE
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
Enterprise Server 3.2
Enterprise Server 3.1
GitHub AE
All Enterprise Server releases
About versions
English
English
ç®€ä½“ä¸æ–‡
(
Simplified Chinese
)
日本語
(
Japanese
)
Español
(
Spanish
)
Português do Brasil
(
Portuguese
)
Search GitHub Docs
Â
GitHub Docs
REST API
/
Gists
REST API
Get started
Account and profile
Authentication
Repositories
Enterprise administrators
Billing and payments
Site policy
Organizations
Code security
Pull requests
GitHub Issues
GitHub Actions
GitHub Copilot
GitHub Codespaces
GitHub Packages
Search on GitHub
Developers
REST API
GraphQL API
GitHub CLI
GitHub Discussions
GitHub Sponsors
Building communities
GitHub Pages
Education
GitHub Desktop
GitHub Support
Atom
Electron
CodeQL
npm
GitHub AE
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
Enterprise Server 3.2
Enterprise Server 3.1
GitHub AE
All Enterprise Server releases
About versions
English
English
ç®€ä½“ä¸æ–‡
(
Simplified Chinese
)
日本語
(
Japanese
)
Español
(
Spanish
)
Português do Brasil
(
Portuguese
)
Search GitHub Docs
Â
Gists
The Gists API enables the authorized user to list, create, update and delete the public gists on GitHub AE.
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
Gist comments
List gist comments
Create a gist comment
Get a gist comment
Update a gist comment
Delete a gist comment