home / skills / bankkroll / skills-builder / github-rest-api
This skill helps you navigate the GitHub REST API by detailing endpoints for actions, activity, apps, authentication, and billing with practical guidance.
npx playbooks add skill bankkroll/skills-builder --skill github-rest-apiReview the files below or copy the command above to add this skill to your agents.
---
name: "github-rest-api"
description: "Scraped from https://docs.github.com/en/rest/ Source: https://docs.github.com/en/rest. Use when questions involve: about the rest api, actions, activity, apps, authentication, billing."
---
# Github Rest Api
> Official documentation: https://docs.github.com/en/rest
## Overview
This skill provides comprehensive documentation for github rest api.
**Total references:** 82 files (~372,555 tokens)
**Topics covered:**
About source imports, apps, Add a field to an organization-owned project, List projects for organization, List requests to access organization resources with fine-grained personal access tokens, Retention of checks data, Get a repository README for a directory, About events, About Git database, Use conditional requests if appropriate, Remove teams from the Copilot subscription for an organization, Get the status of a GitHub Pages deployment...
## Reference Files
Load only the reference files relevant to the user's question:
### About The Rest Api
- **[About the OpenAPI description for the REST API and more](references/about-the-rest-api.md)** (~2,503 tokens)
- Topics: About OpenAPI, About GitHubs OpenAPI description, Using the GitHub OpenAPI description
### Actions
- **[REST API endpoints for GitHub Actions artifacts and more](references/actions.md)** (~6,415 tokens)
- Topics: About artifacts in GitHub Actions, About the cache in GitHub Actions, List GitHub-hosted runners for an organization
### Activity
- **[REST API endpoints for events and more](references/activity.md)** (~1,807 tokens)
- Topics: About GitHub events, Get feeds, About GitHub notifications
### Apps
- **[REST API endpoints for GitHub Apps and more](references/apps.md)** (~639 tokens)
- Topics: About GitHub Apps, About GitHub App installations, About GitHub Marketplace
### Authentication
- **[Authenticating to the REST API and more](references/authentication-1.md)** (~6,704 tokens)
- Topics: About authentication, Authenticating with a personal access token, Authenticating with a token generated by an app
- **[Endpoints available for GitHub App user access tokens and more](references/authentication-2.md)** (~4,212 tokens)
- Topics: actions, activity, apps
### Billing
- **[Budgets and more](references/billing.md)** (~1,833 tokens)
- Topics: Get all budgets for an organization, Get a budget by ID for an organization, Update a budget for an organization
### Branches
- **[REST API endpoints for protected branches](references/branches-1.md)** (~16,554 tokens)
- Topics: Get branch protection, Update branch protection, Delete branch protection
- **[REST API endpoints for branches](references/branches-2.md)** (~2,633 tokens)
- Topics: List branches, Get a branch, Rename a branch
### Campaigns
- **[REST API endpoints for security campaigns](references/campaigns.md)** (~52 tokens)
### Checks
- **[REST API endpoints for check runs and more](references/checks.md)** (~250 tokens)
### Classroom
- **[REST API endpoints for GitHub Classroom](references/classroom.md)** (~1,969 tokens)
- Topics: Get an assignment, List accepted assignments for an assignment, Get assignment grades
### Code Scanning
- **[REST API endpoints for code scanning](references/code-scanning.md)** (~93 tokens)
- Topics: About code scanning
### Code Security
- **[Configurations](references/code-security.md)** (~11,679 tokens)
- Topics: Get code security configurations for an enterprise, Create a code security configuration for an enterprise, Get default code security configurations for an enterprise
### Codes Of Conduct
- **[REST API endpoints for codes of conduct](references/codes-of-conduct.md)** (~1,025 tokens)
- Topics: Get all codes of conduct, Get a code of conduct
### Codespaces
- **[REST API endpoints for Codespaces and more](references/codespaces.md)** (~3,863 tokens)
- Topics: About GitHub Codespaces, About Codespaces machines, List organization secrets
### Collaborators
- **[REST API endpoints for collaborators and more](references/collaborators.md)** (~3,419 tokens)
- Topics: List repository collaborators, Check if a user is a repository collaborator, Add a repository collaborator
### Commits
- **[REST API endpoints for commit comments and more](references/commits.md)** (~6,965 tokens)
- Topics: About commit comments, List commits, List branches for HEAD commit
### Copilot
- **[REST API endpoints for Copilot metrics and more](references/copilot.md)** (~4,166 tokens)
- Topics: Get Copilot seat information and settings for an organization, List all Copilot seat assignments for an organization, Add teams to the Copilot subscription for an organization
### Credentials
- **[Revocation](references/credentials.md)** (~447 tokens)
- Topics: Revoke a list of credentials
### Dependabot
- **[REST API endpoints for Dependabot alerts and more](references/dependabot.md)** (~306 tokens)
- Topics: About Dependabot alerts, About Dependabot repository access, About Dependabot secrets
### Dependency Graph
- **[REST API endpoints for dependency review and more](references/dependency-graph.md)** (~930 tokens)
- Topics: About dependency review, About dependency submissions
### Deploy Keys
- **[REST API endpoints for deploy keys](references/deploy-keys.md)** (~351 tokens)
- Topics: About deploy keys
### Deployments
- **[REST API endpoints for deployment branch policies and more](references/deployments.md)** (~4,621 tokens)
- Topics: About deployment branch policies, About deployments, About deployment environments
### Emojis
- **[REST API endpoints for emojis](references/emojis.md)** (~5,073 tokens)
- Topics: Get emojis
### Enterprise Teams
- **[REST API endpoints for enterprise team memberships and more](references/enterprise-teams.md)** (~521 tokens)
- Topics: About enterprise team members, About enterprise team organizations, About enterprise teams
### General
- **[About the REST API and more](references/general-1.md)** (~7,580 tokens)
- Topics: About Git database
- **[GitHub REST API documentation and more](references/general-2.md)** (~6,526 tokens)
- Topics: Start here, Popular, Guides
- **[Quickstart for GitHub REST API and more](references/general-3.md)** (~5,536 tokens)
- Topics: Introduction, Using GitHub CLI in the command line, Using GitHub CLI in GitHub Actions
### Gists
- **[REST API endpoints for gist comments and more](references/gists.md)** (~391 tokens)
- Topics: About gist comments, About gists
### Git
- **[REST API endpoints for Git blobs and more](references/git.md)** (~575 tokens)
- Topics: About Git blobs, About Git commits, About Git references
### Gitignore
- **[REST API endpoints for gitignore](references/gitignore.md)** (~85 tokens)
- Topics: About gitignore
### Guides
- **[Best practices for using the REST API and more](references/guides-1.md)** (~5,184 tokens)
- Topics: Avoid polling, Make authenticated requests, Avoid concurrent requests
- **[Getting started with the REST API](references/guides-2.md)** (~6,614 tokens)
- Topics: Introduction, About requests to the REST API, Making a request
- **[Rendering data as graphs and more](references/guides-3.md)** (~5,111 tokens)
- Topics: Setting up an OAuth app, Fetching repository information, Visualizing language counts
- **[Scripting with the REST API and Ruby and more](references/guides-4.md)** (~7,715 tokens)
- Topics: About Octokitrb, Prerequisites, Instantiating and authenticating
### Interactions
- **[REST API endpoints for organization interactions and more](references/interactions.md)** (~847 tokens)
- Topics: About organization interactions, About repository interactions, About user interactions
### Issues
- **[REST API endpoints for issue assignees and more](references/issues-1.md)** (~4,049 tokens)
- Topics: About issue and pull request assignees, About issue and pull request comments, About events
- **[REST API endpoints for issues](references/issues-2.md)** (~9,102 tokens)
- Topics: List issues assigned to the authenticated user, List organization issues assigned to the authenticated user, List repository issues
- **[REST API endpoints for labels and more](references/issues-3.md)** (~6,472 tokens)
- Topics: About labels, List milestones, Create a milestone
### Licenses
- **[REST API endpoints for licenses](references/licenses.md)** (~426 tokens)
- Topics: About licenses
### Markdown
- **[REST API endpoints for Markdown](references/markdown.md)** (~607 tokens)
- Topics: Render a Markdown document, Render a Markdown document in raw mode
### Meta
- **[REST API endpoints for meta data](references/meta.md)** (~1,300 tokens)
- Topics: GitHub API Root, Get GitHub meta information, Get Octocat
### Metrics
- **[REST API endpoints for community metrics and more](references/metrics.md)** (~809 tokens)
- Topics: Get community profile metrics, About repository statistics, About repository traffic
### Migrations
- **[REST API endpoints for organization migrations and more](references/migrations.md)** (~891 tokens)
- Topics: About organization migrations, About source imports, About user migrations
### Models
- **[REST API endpoints for models catalog and more](references/models.md)** (~1,266 tokens)
- Topics: About GitHub Models catalog, Run an embedding request attributed to an organization, Run an embedding request
### Orgs
- **[REST API endpoints for API Insights and more](references/orgs-1.md)** (~7,897 tokens)
- Topics: Get route stats by actor, Get subject stats, Get summary stats
- **[REST API endpoints for organization members](references/orgs-2.md)** (~7,187 tokens)
- Topics: List failed organization invitations, List pending organization invitations, Create an organization invitation
- **[REST API endpoints for network configurations and more](references/orgs-3.md)** (~5,952 tokens)
- Topics: List hosted compute network configurations for an organization, Create a hosted compute network configuration for an organization, Get a hosted compute network configuration for an organization
- **[REST API endpoints for organizations and more](references/orgs-4.md)** (~7,978 tokens)
- Topics: List organizations, Get an organization, Update an organization
- **[REST API endpoints for personal access tokens and more](references/orgs-5.md)** (~5,227 tokens)
- Topics: List requests to access organization resources with fine-grained personal access tokens, Review requests to access organization resources with fine-grained personal access tokens, Review a request to access organization resources with a fine-grained personal access token
- **[REST API endpoints for rules](references/orgs-6.md)** (~18,480 tokens)
- Topics: Get all organization repository rulesets, Create an organization repository ruleset, Get an organization repository ruleset
- **[REST API endpoints for security managers and more](references/orgs-7.md)** (~156 tokens)
- Topics: About security managers, About organization webhooks
### Overview
- **[API Versions and more](references/overview-1.md)** (~5,283 tokens)
- Topics: About API versioning, Specifying an API version, Upgrading to a new API version
- **[Getting started with the REST API and more](references/overview-2.md)** (~7,126 tokens)
- Topics: Introduction, About requests to the REST API, Making a request
- **[Rate limits for the REST API and more](references/overview-3.md)** (~7,750 tokens)
- Topics: About primary rate limits, About secondary rate limits, Checking the status of your rate limit
### Packages
- **[REST API endpoints for packages](references/packages.md)** (~263 tokens)
- Topics: About GitHub Packages
### Pages
- **[REST API endpoints for GitHub Pages](references/pages.md)** (~4,977 tokens)
- Topics: Get a GitHub Pages site, Create a GitHub Pages site, Update information about a GitHub Pages site
### Private Registries
- **[Organization configurations](references/private-registries.md)** (~2,549 tokens)
- Topics: List private registries for an organization, Create a private registry for an organization, Get private registries public key for an organization
### Projects
- **[REST API endpoints for draft Project items and more](references/projects-1.md)** (~4,134 tokens)
- Topics: Create draft item for organization owned project, Create draft item for user owned project, List project fields for organization
- **[REST API endpoints for Project items](references/projects-2.md)** (~20,774 tokens)
- Topics: List items for an organization owned project, Add item to organization owned project, Get an item for an organization owned project
- **[REST API endpoints for Projects and more](references/projects-3.md)** (~3,239 tokens)
- Topics: List projects for organization, Get project for organization, List projects for user
### Pulls
- **[REST API endpoints for pull request review comments and more](references/pulls.md)** (~531 tokens)
- Topics: About pull request review comments, About pull requests, About review requests
### Rate Limit
- **[REST API endpoints for rate limits](references/rate-limit.md)** (~444 tokens)
- Topics: About rate limits
### Reactions
- **[REST API endpoints for reactions](references/reactions.md)** (~136 tokens)
- Topics: About reactions
### Releases
- **[REST API endpoints for release assets and more](references/releases.md)** (~2,207 tokens)
- Topics: Get a release asset, Update a release asset, Delete a release asset
### Repos
- **[REST API endpoints for repository attestations and more](references/repos-1.md)** (~7,944 tokens)
- Topics: Create an attestation, List attestations, About repository autolinks
- **[REST API endpoints for repositories](references/repos-2.md)** (~21,914 tokens)
- Topics: List organization repositories, Create an organization repository, Get a repository
- **[REST API endpoints for rule suites](references/repos-3.md)** (~1,002 tokens)
- Topics: List repository rule suites, Get a repository rule suite
- **[REST API endpoints for rules](references/repos-4.md)** (~17,293 tokens)
- Topics: Get rules for a branch, Get all repository rulesets, Create a repository ruleset
- **[REST API endpoints for repository tags and more](references/repos-5.md)** (~1,163 tokens)
- Topics: Closing down - List tag protection states for a repository, Closing down - Create a tag protection state for a repository, Closing down - Delete a tag protection state for a repository
### Search
- **[REST API endpoints for search](references/search.md)** (~1,662 tokens)
- Topics: About search
### Secret Scanning
- **[REST API endpoints for secret scanning push protection and more](references/secret-scanning.md)** (~1,028 tokens)
- Topics: List organization pattern configurations, Update organization pattern configurations, About secret scanning
### Security Advisories
- **[REST API endpoints for global security advisories](references/security-advisories-1.md)** (~1,576 tokens)
- Topics: List global security advisories, Get a global security advisory
- **[REST API endpoints for repository security advisories](references/security-advisories-2.md)** (~10,306 tokens)
- Topics: List repository security advisories for an organization, List repository security advisories, Create a repository security advisory
### Teams
- **[REST API endpoints for team members and more](references/teams.md)** (~322 tokens)
- Topics: About team members, About teams
### Users
- **[REST API endpoints for artifact attestations and more](references/users.md)** (~5,807 tokens)
- Topics: List attestations by bulk subject digests, Delete attestations in bulk, Delete attestations by subject digest
### Using The Rest Api
- **[Best practices for using the REST API and more](references/using-the-rest-api-1.md)** (~7,689 tokens)
- Topics: Avoid polling, Make authenticated requests, Avoid concurrent requests
- **[GitHub event types](references/using-the-rest-api-2.md)** (~3,282 tokens)
- Topics: Event object common properties, CommitCommentEvent, CreateEvent
- **[Issue event types](references/using-the-rest-api-3.md)** (~11,021 tokens)
- Topics: Issue event object common properties, assigned, automatic_base_change_failed
- **[Libraries for the REST API and more](references/using-the-rest-api-4.md)** (~6,536 tokens)
- Topics: About libraries, Official GitHub libraries, Third-party libraries
- **[Using pagination in the REST API](references/using-the-rest-api-5.md)** (~1,604 tokens)
- Topics: About pagination, Usinglinkheaders, Changing the number of items per page
## Usage Guidelines
1. **Identify relevant sections** - Match the user's question to the appropriate reference file(s)
2. **Load minimally** - Only read files directly relevant to the question to conserve context
3. **Cite sources** - Reference specific sections when answering
4. **Combine knowledge** - For complex questions, you may need multiple reference files
### When to use each reference:
- **About The Rest Api**: About The Rest Api-related features and documentation
- **Actions**: Actions-related features and documentation
- **Activity**: Activity-related features and documentation
- **Apps**: Apps-related features and documentation
- **Authentication**: Authentication-related features and documentation
- **Billing**: Billing-related features and documentation
- **Branches**: Branches-related features and documentation
- **Campaigns**: Campaigns-related features and documentation
- **Checks**: Checks-related features and documentation
- **Classroom**: Classroom-related features and documentation
- **Code Scanning**: Code Scanning-related features and documentation
- **Code Security**: Code Security-related features and documentation
- **Codes Of Conduct**: Codes Of Conduct-related features and documentation
- **Codespaces**: Codespaces-related features and documentation
- **Collaborators**: Collaborators-related features and documentation
- **Commits**: Commits-related features and documentation
- **Copilot**: Copilot-related features and documentation
- **Credentials**: Credentials-related features and documentation
- **Dependabot**: Dependabot-related features and documentation
- **Dependency Graph**: Dependency Graph-related features and documentation
- **Deploy Keys**: Deploy Keys-related features and documentation
- **Deployments**: Deployments-related features and documentation
- **Emojis**: Emojis-related features and documentation
- **Enterprise Teams**: Enterprise Teams-related features and documentation
- **General**: General documentation, overview, and getting started
- **Gists**: Gists-related features and documentation
- **Git**: Git-related features and documentation
- **Gitignore**: Gitignore-related features and documentation
- **Guides**: Guides-related features and documentation
- **Interactions**: Interactions-related features and documentation
- **Issues**: Issues-related features and documentation
- **Licenses**: Licenses-related features and documentation
- **Markdown**: Markdown-related features and documentation
- **Meta**: Meta-related features and documentation
- **Metrics**: Metrics-related features and documentation
- **Migrations**: Migrations-related features and documentation
- **Models**: Models-related features and documentation
- **Orgs**: Orgs-related features and documentation
- **Overview**: Overview-related features and documentation
- **Packages**: Packages-related features and documentation
- **Pages**: Pages-related features and documentation
- **Private Registries**: Private Registries-related features and documentation
- **Projects**: Projects-related features and documentation
- **Pulls**: Pulls-related features and documentation
- **Rate Limit**: Rate Limit-related features and documentation
- **Reactions**: Reactions-related features and documentation
- **Releases**: Releases-related features and documentation
- **Repos**: Repos-related features and documentation
- **Search**: Search-related features and documentation
- **Secret Scanning**: Secret Scanning-related features and documentation
- **Security Advisories**: Security Advisories-related features and documentation
- **Teams**: Teams-related features and documentation
- **Users**: Users-related features and documentation
- **Using The Rest Api**: Using The Rest Api-related features and documentation
This skill documents the GitHub REST API surface and practical usage for actions, activity, apps, authentication, and billing. It consolidates endpoint descriptions, request/response patterns, rate limit behavior, and recommended workflows to help developers integrate with GitHub programmatically. Use it to find canonical REST endpoints, authentication methods, and best practices for interacting with GitHub services.
The skill indexes official REST API reference content and organizes it by resource area (actions, repos, issues, orgs, apps, billing, etc.). For a given topic it returns endpoint details, required headers and parameters, authentication options, common response codes, and links to related guidance like rate limits and conditional requests. It highlights practical examples and common pitfalls so you can build robust integrations faster.
Which authentication method should I choose?
Use personal access tokens (PATs) for user-level scripts, OAuth apps for third-party integrations, and GitHub Apps for fine-grained, installable permissions and better security controls.
How do I avoid hitting rate limits?
Authenticate requests, use conditional requests, cache responses, respect pagination, and implement exponential backoff for retries. Check the rate limit endpoint to monitor remaining quota.