“Using Corsair, whenever a new issue is opened in our GitHub repo acme/api, create a Linear issue in the Platform team with the same title, a one-line summary and a link to the GitHub issue. Then comment on the GitHub issue with the Linear link.”
“Using Corsair, every Monday at 9am New York time list the pull requests in acme/web that were merged last week and the ones that have been open for more than three days. Post them in #engineering in Slack, grouped as "Shipped" and "Waiting on review", with links and authors.”
Tools are what your agent can do in GitHub through Corsair's MCP server. Triggers are the GitHub events a routine can start from.
Issues
GetRead-only
Get a specific issue
issues.get
Create CommentWrite
Post a comment on an issue
issues.createComment
Add AssigneesWrite
Add assignees to an issue. Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced. GitHub App permission: issues (write), pull_requests (write).
issues.addAssignees
Add Blocked By DependencyWrite
Add a dependency an issue is blocked by. You can use the REST API to add a 'blocked by' relationship to an issue. GitHub App permission: issues (write).
issues.addBlockedByDependency
Add Issue Field ValuesWrite
Add issue field values to an issue. Add custom field values to an issue. You can set values for issue fields that have been defined for the repository's owner. Adding an empty array will clear all existing field values for the issue. GitHub App permission: issues (write), pull_requests (write).
issues.addIssueFieldValues
Add LabelsWrite
Add labels to an issue. Adds labels to an issue. GitHub App permission: issues (write), pull_requests (write).
issues.addLabels
Add Relates ToWrite
Add a related issue. You can use the REST API to mark an issue as related to another issue. GitHub App permission: issues (write).
issues.addRelatesTo
Add Sub IssueWrite
Add sub-issue. You can use the REST API to add sub-issues to issues. GitHub App permission: issues (write).
issues.addSubIssue
Approve SuggestionWrite
Approve an issue suggestion. Approves a pending suggestion on an issue. Applies the proposed change (creating the corresponding timeline event), transitions the suggestion to `approved`, and dismisses any competing pending suggestions for the same change. GitHub App permission: issues (write), pull_requests (write).
issues.approveSuggestion
Check User Can Be AssignedRead-only
Check if a user can be assigned. Checks if a user has permission to be assigned to an issue in this repository. GitHub App permission: issues (read), pull_requests (read).
issues.checkUserCanBeAssigned
Check User Can Be Assigned To IssueRead-only
Check if a user can be assigned to a issue. Checks if a user has permission to be assigned to a specific issue. GitHub App permission: issues (read), pull_requests (read).
issues.checkUserCanBeAssignedToIssue
CreateWrite
Create a new issue
issues.create
Create Issue ArtifactWrite
Create an issue artifact. Creates an artifact attached to an issue. GitHub App permission: issues (write).
issues.createIssueArtifact
Create LabelWrite
Create a label. Creates a label for the specified repository with the given name and color. The name and color parameters are required. The color must be a valid [hexadecimal color code](http://www.color-hex.com/). GitHub App permission: issues (write), pull_requests (write).
issues.createLabel
Create MilestoneWrite
Create a milestone. Creates a milestone. GitHub App permission: issues (write), pull_requests (write).
issues.createMilestone
Delete Issue ArtifactDestructive
Delete an issue artifact. Permanently deletes an artifact attached to an issue. GitHub App permission: issues (write).
issues.deleteIssueArtifact
Delete Issue Field ValueDestructive
Delete an issue field value from an issue. Remove a specific custom field value from an issue. GitHub App permission: issues (write), pull_requests (write).
issues.deleteIssueFieldValue
Delete LabelDestructive
Delete a label. Deletes a label using the given label name. GitHub App permission: issues (write), pull_requests (write).
issues.deleteLabel
Delete MilestoneDestructive
Delete a milestone. Deletes a milestone using the given milestone number. GitHub App permission: issues (write), pull_requests (write).
issues.deleteMilestone
Dismiss SuggestionWrite
Dismiss an issue suggestion. Dismisses a pending suggestion on an issue. Transitions the suggestion to `dismissed` without applying any change or creating a timeline event. GitHub App permission: issues (write), pull_requests (write).
issues.dismissSuggestion
Get EventRead-only
Get an issue event. Gets a single event by the event id. GitHub App permission: issues (read), pull_requests (read).
issues.getEvent
Get Issue ArtifactRead-only
Get an issue artifact. Returns an artifact attached to an issue by its per-issue artifact number, along with its version history ordered from newest to oldest. GitHub App permission: issues (read), pull_requests (read).
issues.getIssueArtifact
Get LabelRead-only
Get a label. Gets a label using the given name. GitHub App permission: issues (read), pull_requests (read).
issues.getLabel
Get MilestoneRead-only
Get a milestone. Gets a milestone using the given milestone number. GitHub App permission: issues (read), pull_requests (read).
issues.getMilestone
Get ParentRead-only
Get parent issue. You can use the REST API to get the parent issue of a sub-issue. GitHub App permission: issues (read).
issues.getParent
ListRead-only
List open issues in one repo unless state is set. Pull requests come back too, marked by a pullRequest key.
issues.list
List Across RepositoriesRead-only
List issues assigned to the authenticated user. List issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not necessarily assigned to you.
issues.listAcrossRepositories
List AssigneesRead-only
List assignees. Lists the [available assignees](https://docs.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. GitHub App permission: issues (read), pull_requests (read).
issues.listAssignees
List Dependencies Blocked ByRead-only
List dependencies an issue is blocked by. You can use the REST API to list the dependencies an issue is blocked by. GitHub App permission: issues (read).
issues.listDependenciesBlockedBy
List Dependencies BlockingRead-only
List dependencies an issue is blocking. You can use the REST API to list the dependencies an issue is blocking. GitHub App permission: issues (read).
issues.listDependenciesBlocking
List EventsRead-only
List issue events. Lists all events for an issue. GitHub App permission: issues (read), pull_requests (read).
issues.listEvents
List Events For RepoRead-only
List issue events for a repository. Lists events for a repository. GitHub App permission: issues (read).
issues.listEventsForRepo
List Events For TimelineRead-only
List timeline events for an issue. List all timeline events for an issue. GitHub App permission: issues (read), pull_requests (read).
issues.listEventsForTimeline
List For OrgRead-only
List organization issues assigned to the authenticated user. List issues in an organization assigned to the authenticated user.
issues.listForOrg
List Issue ArtifactsRead-only
List issue artifacts. Lists artifacts attached to an issue. Results are ordered by artifact number. GitHub App permission: issues (read), pull_requests (read).
issues.listIssueArtifacts
List Issue Field Values For IssueRead-only
List issue field values for an issue. Lists all issue field values for an issue. GitHub App permission: issues (read).
issues.listIssueFieldValuesForIssue
List Labels For MilestoneRead-only
List labels for issues in a milestone. Lists labels for issues in a milestone. GitHub App permission: issues (read), pull_requests (read).
issues.listLabelsForMilestone
List Labels For RepoRead-only
List labels for a repository. Lists all labels for a repository. GitHub App permission: issues (read), pull_requests (read).
issues.listLabelsForRepo
List Labels On IssueRead-only
List labels for an issue. Lists all labels for an issue. GitHub App permission: issues (read), pull_requests (read).
issues.listLabelsOnIssue
List MilestonesRead-only
List milestones. Lists milestones for a repository. GitHub App permission: issues (read), pull_requests (read).
issues.listMilestones
List Relates ToRead-only
List issues related to an issue. You can use the REST API to list the issues that are related to an issue. GitHub App permission: issues (read).
issues.listRelatesTo
List Sub IssuesRead-only
List sub-issues. You can use the REST API to list the sub-issues on an issue. GitHub App permission: issues (read).
issues.listSubIssues
List SuggestionsRead-only
List issue suggestions. Lists the suggestions on an issue. A suggestion is an agent-proposed change to an issue's type, labels, fields, assignees, or closed state that a maintainer can approve or dismiss. GitHub App permission: issues (read), pull_requests (read).
issues.listSuggestions
LockWrite
Lock an issue. Users with push access can lock an issue or pull request's conversation. GitHub App permission: issues (write), pull_requests (write).
issues.lock
Pin CommentWrite
Pin an issue comment. You can use the REST API to pin comments on issues. GitHub App permission: issues (write).
issues.pinComment
Remove All LabelsDestructive
Remove all labels from an issue. Removes all labels from an issue. GitHub App permission: issues (write), pull_requests (write).
issues.removeAllLabels
Remove AssigneesDestructive
Remove assignees from an issue. Removes one or more assignees from an issue. GitHub App permission: issues (write), pull_requests (write).
issues.removeAssignees
Remove Dependency Blocked ByDestructive
Remove dependency an issue is blocked by. You can use the REST API to remove a dependency that an issue is blocked by. GitHub App permission: issues (write).
issues.removeDependencyBlockedBy
Remove LabelDestructive
Remove a label from an issue. Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist. GitHub App permission: issues (write), pull_requests (write).
issues.removeLabel
Remove Relates ToDestructive
Remove a related issue. You can use the REST API to remove a 'relates to' relationship between two issues. GitHub App permission: issues (write).
issues.removeRelatesTo
Remove Sub IssueDestructive
Remove sub-issue. You can use the REST API to remove a sub-issue from an issue. Removing content too quickly using this endpoint may result in secondary rate limiting. GitHub App permission: issues (write).
issues.removeSubIssue
Reprioritize Sub IssueWrite
Reprioritize sub-issue. You can use the REST API to reprioritize a sub-issue to a different position in the parent list. GitHub App permission: issues (write).
issues.reprioritizeSubIssue
Set Issue Field ValuesWrite
Set issue field values for an issue. Set custom field values for an issue, replacing any existing values. You can set values for issue fields that have been defined for the repository's owner. GitHub App permission: issues (write), pull_requests (write).
issues.setIssueFieldValues
Set LabelsWrite
Set labels for an issue. Removes any previous labels and sets the new labels for an issue. GitHub App permission: issues (write), pull_requests (write).
issues.setLabels
UnlockDestructive
Unlock an issue. Users with push access can unlock an issue's conversation. GitHub App permission: issues (write), pull_requests (write).
issues.unlock
Unpin CommentDestructive
Unpin an issue comment. You can use the REST API to unpin comments on issues. GitHub App permission: issues (write).
issues.unpinComment
UpdateWrite
Update an existing issue
issues.update
Update Issue ArtifactWrite
Update an issue artifact. Updates the name, body, or both for an artifact attached to an issue. GitHub App permission: issues (write).
issues.updateIssueArtifact
Update LabelWrite
Update a label. Updates a label using the given label name. GitHub App permission: issues (write), pull_requests (write).
issues.updateLabel
Update MilestoneWrite
Update a milestone. GitHub App permission: issues (write), pull_requests (write).
issues.updateMilestone
Pull Requests
ListRead-only
List open pull requests in one repo unless state is set. To find them by author or reviewer, use search.issues with is:pr.
pullRequests.list
List ReviewsRead-only
List reviews on a pull request
pullRequests.listReviews
Check If MergedRead-only
Check if a pull request has been merged. Checks if a pull request has been merged into the base branch. The HTTP status of the response indicates whether or not the pull request has been merged; the response body is empty. GitHub App permission: pull_requests (read).
pullRequests.checkIfMerged
CreateWrite
Create a pull request. Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. GitHub App permission: pull_requests (write).
pullRequests.create
Create Reply For Review CommentWrite
Create a reply for a review comment. Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported. GitHub App permission: pull_requests (write).
pullRequests.createReplyForReviewComment
Create ReviewWrite
Submit a pull request review
pullRequests.createReview
Create Review CommentWrite
Create a review comment for a pull request. Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/rest/issues/comments#create-an-issue-comment)." GitHub App permission: pull_requests (write).
pullRequests.createReviewComment
Delete Pending ReviewDestructive
Delete a pending review for a pull request. Deletes a pull request review that has not been submitted. Submitted reviews cannot be deleted. GitHub App permission: pull_requests (write).
pullRequests.deletePendingReview
Delete Review CommentDestructive
Delete a review comment for a pull request. Deletes a review comment. GitHub App permission: pull_requests (write).
pullRequests.deleteReviewComment
Dismiss ReviewWrite
Dismiss a review for a pull request. Dismisses a specified review on a pull request. GitHub App permission: pull_requests (write).
pullRequests.dismissReview
GetRead-only
Get a specific pull request
pullRequests.get
Get Merge Async ResultRead-only
Get the result of an asynchronous merge. Fetches the current result of an asynchronous merge request, identified by the UUID that was returned when the merge was requested. GitHub App permission: contents (write).
pullRequests.getMergeAsyncResult
Get ReviewRead-only
Get a review for a pull request. Retrieves a pull request review by its ID. GitHub App permission: pull_requests (read).
pullRequests.getReview
Get Review CommentRead-only
Get a review comment for a pull request. Provides details for a specified review comment. GitHub App permission: pull_requests (read).
pullRequests.getReviewComment
List Comments For ReviewRead-only
List comments for a pull request review. Lists comments for a specific pull request review. GitHub App permission: pull_requests (read).
pullRequests.listCommentsForReview
List CommitsRead-only
List commits on a pull request. Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [List commits](https://docs.github.com/rest/commits/commits#list-commits) endpoint. GitHub App permission: pull_requests (read).
pullRequests.listCommits
List FilesRead-only
List pull requests files. Lists the files in a specified pull request. GitHub App permission: pull_requests (read).
pullRequests.listFiles
List Requested ReviewersRead-only
Get all requested reviewers for a pull request. Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request) operation. GitHub App permission: pull_requests (read).
pullRequests.listRequestedReviewers
List Review CommentsRead-only
List review comments on a pull request. Lists all review comments for a specified pull request. By default, review comments are in ascending order by ID. GitHub App permission: pull_requests (read).
pullRequests.listReviewComments
List Review Comments For RepoRead-only
List review comments in a repository. Lists review comments for all pull requests in a repository. By default, review comments are in ascending order by ID. GitHub App permission: pull_requests (read).
pullRequests.listReviewCommentsForRepo
MergeDestructive
Merge a pull request. > [!NOTE] > We recommend using the [asynchronous merge API](https://docs.github.com/rest/pulls/pulls#merge-a-pull-request-asynchronously) instead. This endpoint does not support stacked pull requests or merging with a merge queue. GitHub App permission: contents (write).
pullRequests.merge
Merge AsyncWrite
Merge a pull request asynchronously. Merges a pull request into the base branch in the background or adds it to a merge queue. Background processing allows certain types of errors to be retried and reduces the risk of timeouts for complex merges. GitHub App permission: contents (write).
pullRequests.mergeAsync
Remove Requested ReviewersDestructive
Remove requested reviewers from a pull request. Removes review requests from a pull request for a given set of users and/or teams. GitHub App permission: pull_requests (write).
pullRequests.removeRequestedReviewers
Request Copilot Code ReviewWrite
Request a Copilot code review for a pull request. Requests a Copilot code review for a pull request. Every call expresses intent to start a new review: if no Copilot review has been requested yet, an initial request is created; if the most recent Copilot review has already completed (including if it was later dismissed or superseded), a new request is created automatically to continue the review lifecycle. GitHub App permission: pull_requests (write).
pullRequests.requestCopilotCodeReview
Request ReviewersWrite
Request reviewers for a pull request. Requests reviews for a pull request from a given set of users and/or teams. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. GitHub App permission: pull_requests (write).
pullRequests.requestReviewers
Rerequest ReviewersWrite
Rerequest reviewers for a pull request. Rerequests reviews for a pull request from a given set of users and/or teams. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. GitHub App permission: pull_requests (write).
pullRequests.rerequestReviewers
Submit ReviewWrite
Submit a review for a pull request. Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see "[Create a review for a pull request](https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request)." GitHub App permission: pull_requests (write).
pullRequests.submitReview
UpdateWrite
Update a pull request. Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. GitHub App permission: pull_requests (write).
pullRequests.update
Update BranchWrite
Update a pull request branch. Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch. Note: If making a request on behalf of a GitHub App you must also have permissions to write the contents of the head repository. GitHub App permission: pull_requests (write).
pullRequests.updateBranch
Update ReviewWrite
Update a review for a pull request. Updates the contents of a specified review summary comment. GitHub App permission: pull_requests (write).
pullRequests.updateReview
Update Review CommentWrite
Update a review comment for a pull request. Edits the content of a specified review comment. GitHub App permission: pull_requests (write).
pullRequests.updateReviewComment
Repositories
Accept Invitation For Authenticated UserWrite
Accept a repository invitation. GitHub App permission: administration (write).
repositories.acceptInvitationForAuthenticatedUser
Add App Access RestrictionsWrite
Add app access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.addAppAccessRestrictions
Add CollaboratorWrite
Add a repository collaborator. Add a user to a repository with a specified level of access. If the repository is owned by an organization, this API does not add the user to the organization - a user that has repository access without being an organization member is called an "outside collaborator" (if they are not an Enterprise Managed User) or a "repository collaborator" if they are an Enterprise Managed User. GitHub App permission: administration (write).
repositories.addCollaborator
Add Status Check ContextsWrite
Add status check contexts. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.addStatusCheckContexts
Add Team Access RestrictionsWrite
Add team access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.addTeamAccessRestrictions
Add User Access RestrictionsWrite
Add user access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.addUserAccessRestrictions
Cancel Pages DeploymentWrite
Cancel a GitHub Pages deployment. Cancels a GitHub Pages deployment. GitHub App permission: pages (write).
repositories.cancelPagesDeployment
Check Automated Security FixesRead-only
Check if Dependabot security updates are enabled for a repository. Shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)". GitHub App permission: administration (read).
repositories.checkAutomatedSecurityFixes
Check CollaboratorRead-only
Check if a user is a repository collaborator. For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. GitHub App permission: metadata (read).
repositories.checkCollaborator
Check Immutable ReleasesRead-only
Check if immutable releases are enabled for a repository. Shows whether immutable releases are enabled or disabled. Also identifies whether immutability is being enforced by the repository owner. The authenticated user must have admin read access to the repository. GitHub App permission: administration (read).
repositories.checkImmutableReleases
Check Private Vulnerability ReportingRead-only
Check if private vulnerability reporting is enabled for a repository. Returns a boolean indicating whether or not private vulnerability reporting is enabled for the repository. For more information, see "[Evaluating the security settings of a repository](https://docs.github.com/code-security/security-advisories/working-with-repository-security-advisories/evaluating-the-security-settings-of-a-repository)". GitHub App permission: metadata (read).
repositories.checkPrivateVulnerabilityReporting
Check StarredRead-only
Check whether the authenticated user has starred a repository
repositories.checkStarred
Check Vulnerability AlertsRead-only
Check if vulnerability alerts are enabled for a repository. Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin read access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)". GitHub App permission: administration (read).
repositories.checkVulnerabilityAlerts
Codeowners ErrorsRead-only
List CODEOWNERS errors. List any syntax errors that are detected in the CODEOWNERS file. GitHub App permission: contents (read).
repositories.codeownersErrors
Compare CommitsRead-only
Compare two commits. Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. GitHub App permission: contents (read).
repositories.compareCommits
Create AttestationWrite
Create an attestation. Store an artifact attestation and associate it with a repository. GitHub App permission: attestations (write).
repositories.createAttestation
Create AutolinkWrite
Create an autolink reference for a repository. Users with admin access to the repository can create an autolink. GitHub App permission: administration (write).
repositories.createAutolink
Create Commit CommentWrite
Create a commit comment. Create a comment for a commit using its `:commit_sha`. GitHub App permission: contents (read).
repositories.createCommitComment
Create Commit Signature ProtectionWrite
Create commit signature protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (write).
repositories.createCommitSignatureProtection
Create Commit StatusWrite
Create a commit status. Users with push access in a repository can create commit statuses for a given SHA. GitHub App permission: statuses (write).
repositories.createCommitStatus
Create Deploy KeyWrite
Create a deploy key. You can create a read-only deploy key. GitHub App permission: administration (write).
repositories.createDeployKey
Create DeploymentWrite
Create a deployment. Deployments offer a few configurable parameters with certain defaults. GitHub App permission: deployments (write).
repositories.createDeployment
Create Deployment Branch PolicyWrite
Create a deployment branch policy. Creates a deployment branch or tag policy for an environment. GitHub App permission: administration (write).
repositories.createDeploymentBranchPolicy
Create Deployment Protection RuleWrite
Create a custom deployment protection rule on an environment. Enable a custom deployment protection rule for an environment. GitHub App permission: administration (write).
repositories.createDeploymentProtectionRule
Create Deployment StatusWrite
Create a deployment status. Users with `push` access can create deployment statuses for a given deployment. GitHub App permission: deployments (write).
repositories.createDeploymentStatus
Create Dispatch EventDestructive
Create a repository dispatch event. You can use this endpoint to trigger a webhook event called `repository_dispatch` when you want activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the `repository_dispatch` event occurs. GitHub App permission: contents (write).
repositories.createDispatchEvent
Create For Authenticated UserWrite
Create a repository for the authenticated user. Creates a new repository for the authenticated user. GitHub App permission: administration (write), repository_creation (write).
repositories.createForAuthenticatedUser
Create In OrgWrite
Create an organization repository. Creates a new repository in the specified organization. The authenticated user must be a member of the organization. GitHub App permission: administration (write), repository_creation (write).
repositories.createInOrg
Create Or Update EnvironmentWrite
Create or update an environment. Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see "[Environments](https://docs.github.com/actions/reference/environments#environment-protection-rules)." GitHub App permission: administration (write).
repositories.createOrUpdateEnvironment
Create Or Update File ContentsWrite
Create or update file contents. Creates a new file or replaces an existing file in a repository. GitHub App permission: contents (write), workflows (write).
repositories.createOrUpdateFileContents
Create Org RulesetWrite
Create an organization repository ruleset. Create a repository ruleset for an organization. GitHub App permission: organization_administration (write).
repositories.createOrgRuleset
Create Pages DeploymentWrite
Create a GitHub Pages deployment. Create a GitHub Pages deployment for a repository. GitHub App permission: pages (write).
repositories.createPagesDeployment
Create Pages SiteWrite
Create a GitHub Pages site. Configures a GitHub Pages site. For more information, see "[About GitHub Pages](https://docs.github.com/github/working-with-github-pages/about-github-pages)." GitHub App permission: administration (write), pages (write).
repositories.createPagesSite
Create Repo RulesetWrite
Create a repository ruleset. Create a ruleset for a repository. GitHub App permission: administration (write).
repositories.createRepoRuleset
Create Using TemplateWrite
Create a repository using a template. Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. GitHub App permission: administration (write), contents (read), repository_creation (write).
repositories.createUsingTemplate
Create WebhookWrite
Create a repository webhook. Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap. GitHub App permission: repository_hooks (write).
repositories.createWebhook
Custom Properties For Repos Create Or Update Repository ValuesWrite
Create or update custom property values for a repository. Create new or update existing custom property values for a repository. Using a value of `null` for a custom property will remove or 'unset' the property value from the repository. GitHub App permission: repository_custom_properties (write).
Custom Properties For Repos Get Repository ValuesRead-only
Get all custom property values for a repository. Gets all custom property values that are set for a repository. Users with read access to the repository can use this endpoint. GitHub App permission: metadata (read).
Delete a repository. Deleting a repository requires admin access. GitHub App permission: administration (write).
repositories.delete
Delete Access RestrictionsDestructive
Delete access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.deleteAccessRestrictions
Delete Admin Branch ProtectionDestructive
Delete admin branch protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.deleteAdminBranchProtection
Delete An EnvironmentDestructive
Delete an environment. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. GitHub App permission: administration (write).
repositories.deleteAnEnvironment
Delete AutolinkDestructive
Delete an autolink reference from a repository. This deletes a single autolink reference by ID that was configured for the given repository. GitHub App permission: administration (write).
repositories.deleteAutolink
Delete Branch ProtectionDestructive
Delete branch protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.deleteBranchProtection
Delete Commit CommentDestructive
Delete a commit comment. GitHub App permission: contents (write).
repositories.deleteCommitComment
Delete Commit Signature ProtectionDestructive
Delete commit signature protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (write).
repositories.deleteCommitSignatureProtection
Delete Deploy KeyDestructive
Delete a deploy key. Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead. GitHub App permission: administration (write).
repositories.deleteDeployKey
Delete DeploymentDestructive
Delete a deployment. If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. GitHub App permission: deployments (write).
repositories.deleteDeployment
Delete Deployment Branch PolicyDestructive
Delete a deployment branch policy. Deletes a deployment branch or tag policy for an environment. GitHub App permission: administration (write).
repositories.deleteDeploymentBranchPolicy
Delete FileDestructive
Delete a file. Deletes a file in a repository. GitHub App permission: contents (write), workflows (write).
repositories.deleteFile
Delete InvitationDestructive
Delete a repository invitation. GitHub App permission: administration (write).
repositories.deleteInvitation
Delete Org RulesetDestructive
Delete an organization repository ruleset. Delete a ruleset for an organization. GitHub App permission: organization_administration (write).
repositories.deleteOrgRuleset
Delete Pages SiteDestructive
Delete a GitHub Pages site. Deletes a GitHub Pages site. For more information, see "[About GitHub Pages](https://docs.github.com/github/working-with-github-pages/about-github-pages). GitHub App permission: administration (write), pages (write).
repositories.deletePagesSite
Delete Pull Request Review ProtectionDestructive
Delete pull request review protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (write).
repositories.deletePullRequestReviewProtection
Delete ReleaseDestructive
Delete a release. Users with push access to the repository can delete a release. GitHub App permission: contents (write).
repositories.deleteRelease
Delete Release AssetDestructive
Delete a release asset. GitHub App permission: contents (write).
repositories.deleteReleaseAsset
Delete Repo RulesetDestructive
Delete a repository ruleset. Delete a ruleset for a repository. GitHub App permission: administration (write).
repositories.deleteRepoRuleset
Delete WebhookDestructive
Delete a repository webhook. Delete a webhook for an organization. GitHub App permission: repository_hooks (write).
repositories.deleteWebhook
Disable Automated Security FixesDestructive
Disable Dependabot security updates. Disables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)". GitHub App permission: administration (write).
repositories.disableAutomatedSecurityFixes
Disable Deployment Protection RuleDestructive
Disable a custom protection rule for an environment. Disables a custom deployment protection rule for an environment. GitHub App permission: administration (write).
repositories.disableDeploymentProtectionRule
Disable Immutable ReleasesDestructive
Disable immutable releases. Disables immutable releases for a repository. The authenticated user must have admin access to the repository. GitHub App permission: administration (write).
Disable private vulnerability reporting for a repository. Disables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see "[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)". GitHub App permission: administration (write).
repositories.disablePrivateVulnerabilityReporting
Disable Vulnerability AlertsDestructive
Disable vulnerability alerts. Disables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)". GitHub App permission: administration (write).
repositories.disableVulnerabilityAlerts
Download Tarball ArchiveRead-only
Download a repository archive (tar). Gets a redirect URL to download a tar archive for a repository. If you omit `:ref`, the repository’s default branch (usually `main`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request. GitHub App permission: contents (read).
repositories.downloadTarballArchive
Download Zipball ArchiveRead-only
Download a repository archive (zip). Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the repository’s default branch (usually `main`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request. GitHub App permission: contents (read).
repositories.downloadZipballArchive
Enable Automated Security FixesWrite
Enable Dependabot security updates. Enables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)". GitHub App permission: administration (write).
repositories.enableAutomatedSecurityFixes
Enable Immutable ReleasesWrite
Enable immutable releases. Enables immutable releases for a repository. The authenticated user must have admin access to the repository. GitHub App permission: administration (write).
repositories.enableImmutableReleases
Enable Private Vulnerability ReportingWrite
Enable private vulnerability reporting for a repository. Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see "[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)." GitHub App permission: administration (write).
repositories.enablePrivateVulnerabilityReporting
Enable Vulnerability AlertsWrite
Enable vulnerability alerts. Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)". GitHub App permission: administration (write).
repositories.enableVulnerabilityAlerts
Generate Release NotesWrite
Generate release notes content for a release. Generate a name and body describing a [release](https://docs.github.com/rest/releases/releases#get-a-release). The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release. GitHub App permission: contents (write).
repositories.generateReleaseNotes
GetRead-only
Get a specific repository
repositories.get
Get Access RestrictionsRead-only
Get access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (read).
repositories.getAccessRestrictions
Get Admin Branch ProtectionRead-only
Get admin branch protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (read).
repositories.getAdminBranchProtection
Get All Deployment Protection RulesRead-only
Get all deployment protection rules for an environment. Gets all custom deployment protection rules that are enabled for an environment. Anyone with read access to the repository can use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)." GitHub App permission: actions (read).
repositories.getAllDeploymentProtectionRules
Get All EnvironmentsRead-only
List environments. Lists the environments for a repository. GitHub App permission: actions (read).
repositories.getAllEnvironments
Get All Status Check ContextsRead-only
Get all status check contexts. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (read).
repositories.getAllStatusCheckContexts
Get All TopicsRead-only
Get all repository topics. GitHub App permission: metadata (read).
repositories.getAllTopics
Get Apps With Access To Protected BranchRead-only
Get apps with access to the protected branch. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (read).
repositories.getAppsWithAccessToProtectedBranch
Get AutolinkRead-only
Get an autolink reference of a repository. This returns a single autolink reference by ID that was configured for the given repository. GitHub App permission: administration (read).
repositories.getAutolink
Get BranchRead-only
Get a branch. GitHub App permission: contents (read).
repositories.getBranch
Get Branch ProtectionRead-only
Get branch protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (read).
repositories.getBranchProtection
Get Branch RulesRead-only
Get rules for a branch. Returns all active rules that apply to the specified branch. The branch does not need to exist; rules that would apply to a branch with that name will be returned. All active rules that apply will be returned, regardless of the level at which they are configured (e.g. repository or organization). Rules in rulesets with "evaluate" or "disabled" enforcement statuses are not returned. GitHub App permission: metadata (read).
repositories.getBranchRules
Get ClonesRead-only
Get repository clones. Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. GitHub App permission: administration (read).
repositories.getClones
Get Code Frequency StatsRead-only
Get the weekly commit activity. Returns a weekly aggregate of the number of additions and deletions pushed to a repository. GitHub App permission: metadata (read).
repositories.getCodeFrequencyStats
Get Collaborator Permission LevelRead-only
Get repository permissions for a user. Checks the repository permission and role of a collaborator. GitHub App permission: metadata (read).
repositories.getCollaboratorPermissionLevel
Get Combined Status For RefRead-only
Get the combined status for a specific reference. Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. GitHub App permission: statuses (read).
repositories.getCombinedStatusForRef
Get CommitRead-only
Get a commit. Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint. GitHub App permission: contents (read).
repositories.getCommit
Get Commit Activity StatsRead-only
Get the last year of commit activity. Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`. GitHub App permission: metadata (read).
repositories.getCommitActivityStats
Get Commit CommentRead-only
Get a commit comment. Gets a specified commit comment. GitHub App permission: metadata (read).
repositories.getCommitComment
Get Commit Signature ProtectionRead-only
Get commit signature protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (read).
repositories.getCommitSignatureProtection
Get Community Profile MetricsRead-only
Get community profile metrics. Returns all community profile metrics for a repository. The repository cannot be a fork. GitHub App permission: contents (read).
repositories.getCommunityProfileMetrics
Get ContentRead-only
A file returns base64-encoded content; a directory returns an array of entries without content, at most 1,000.
repositories.getContent
Get Contributors StatsRead-only
Get all contributor commit activity. Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: GitHub App permission: metadata (read).
repositories.getContributorsStats
Get Custom Deployment Protection RuleRead-only
Get a custom deployment protection rule. Gets an enabled custom deployment protection rule for an environment. Anyone with read access to the repository can use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)." GitHub App permission: actions (read).
repositories.getCustomDeploymentProtectionRule
Get Deploy KeyRead-only
Get a deploy key. GitHub App permission: administration (read).
repositories.getDeployKey
Get DeploymentRead-only
Get a deployment. GitHub App permission: deployments (read).
repositories.getDeployment
Get Deployment Branch PolicyRead-only
Get a deployment branch policy. Gets a deployment branch or tag policy for an environment. GitHub App permission: actions (read).
repositories.getDeploymentBranchPolicy
Get Deployment StatusRead-only
Get a deployment status. Users with pull access can view a deployment status for a deployment: GitHub App permission: deployments (read).
repositories.getDeploymentStatus
Get EnvironmentRead-only
Get an environment. > [!NOTE] > To get information about name patterns that branches must match in order to deploy to this environment, see "[Get a deployment branch policy](https://docs.github.com/rest/deployments/branch-policies#get-a-deployment-branch-policy)." GitHub App permission: actions (read).
repositories.getEnvironment
Get Hash AlgorithmRead-only
Get the hash algorithm for a repository. Returns the hash algorithm used to store repository objects. GitHub App permission: metadata (read).
repositories.getHashAlgorithm
Get Latest Pages BuildRead-only
Get latest Pages build. Gets information about the single most recent build of a GitHub Pages site. GitHub App permission: pages (read).
repositories.getLatestPagesBuild
Get Latest ReleaseRead-only
Get the latest release. View the latest published full release for the repository. GitHub App permission: contents (read).
repositories.getLatestRelease
Get Org Rule SuiteRead-only
Get an organization rule suite. Gets information about a suite of rule evaluations from within an organization. For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)." GitHub App permission: organization_administration (write).
repositories.getOrgRuleSuite
Get Org Rule SuitesRead-only
List organization rule suites. Lists suites of rule evaluations at the organization level. For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)." GitHub App permission: organization_administration (write).
repositories.getOrgRuleSuites
Get Org RulesetRead-only
Get an organization repository ruleset. Get a repository ruleset for an organization. GitHub App permission: organization_administration (write).
repositories.getOrgRuleset
Get Org RulesetsRead-only
Get all organization repository rulesets. Get all the repository rulesets for an organization. GitHub App permission: organization_administration (write).
repositories.getOrgRulesets
Get PagesRead-only
Get a GitHub Pages site. Gets information about a GitHub Pages site. GitHub App permission: pages (read).
repositories.getPages
Get Pages BuildRead-only
Get GitHub Pages build. Gets information about a GitHub Pages build. GitHub App permission: pages (read).
repositories.getPagesBuild
Get Pages DeploymentRead-only
Get the status of a GitHub Pages deployment. Gets the current status of a GitHub Pages deployment. GitHub App permission: pages (read).
repositories.getPagesDeployment
Get Pages Health CheckRead-only
Get a DNS health check for GitHub Pages. Gets a health check of the DNS settings for the `CNAME` record configured for a repository's GitHub Pages. GitHub App permission: administration (write), pages (write).
repositories.getPagesHealthCheck
Get Participation StatsRead-only
Get the weekly commit count. Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`. GitHub App permission: metadata (read).
repositories.getParticipationStats
Get Pull Request Review ProtectionRead-only
Get pull request review protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (read).
repositories.getPullRequestReviewProtection
Get Punch Card StatsRead-only
Get the hourly commit count for each day. Each array contains the day number, hour number, and number of commits: GitHub App permission: metadata (read).
repositories.getPunchCardStats
Get ReadmeRead-only
Get a repository README. Gets the preferred README for a repository. GitHub App permission: contents (read).
repositories.getReadme
Get Readme In DirectoryRead-only
Get a repository README for a directory. Gets the README from a repository directory. GitHub App permission: contents (read).
repositories.getReadmeInDirectory
Get Release AssetRead-only
Get a release asset. To download the asset's binary content: GitHub App permission: contents (read).
repositories.getReleaseAsset
Get Release By TagRead-only
Get a release by tag name. Get a published release with the specified tag. GitHub App permission: contents (read).
repositories.getReleaseByTag
Get Repo Rule SuiteRead-only
Get a repository rule suite. Gets information about a suite of rule evaluations from within a repository. For more information, see "[Managing rulesets for a repository](https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository#viewing-insights-for-rulesets)." GitHub App permission: administration (read).
repositories.getRepoRuleSuite
Get Repo Rule SuitesRead-only
List repository rule suites. Lists suites of rule evaluations at the repository level. For more information, see "[Managing rulesets for a repository](https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository#viewing-insights-for-rulesets)." GitHub App permission: administration (read).
repositories.getRepoRuleSuites
Get Repo RulesetRead-only
Get a repository ruleset. Get a ruleset for a repository. GitHub App permission: metadata (read).
repositories.getRepoRuleset
Get Repo Ruleset HistoryRead-only
Get repository ruleset history. Get the history of a repository ruleset. GitHub App permission: administration (write).
repositories.getRepoRulesetHistory
Get Repo Ruleset VersionRead-only
Get repository ruleset version. Get a version of a repository ruleset. GitHub App permission: administration (write).
repositories.getRepoRulesetVersion
Get Repo RulesetsRead-only
Get all repository rulesets. Get all the rulesets for a repository. GitHub App permission: metadata (read).
repositories.getRepoRulesets
Get Status Checks ProtectionRead-only
Get status checks protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (read).
repositories.getStatusChecksProtection
Get Teams With Access To Protected BranchRead-only
Get teams with access to the protected branch. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (read).
repositories.getTeamsWithAccessToProtectedBranch
Get Top PathsRead-only
Get top referral paths. Get the top 10 popular contents over the last 14 days. GitHub App permission: administration (read).
repositories.getTopPaths
Get Top ReferrersRead-only
Get top referral sources. Get the top 10 referrers over the last 14 days. GitHub App permission: administration (read).
repositories.getTopReferrers
Get Users With Access To Protected BranchRead-only
Get users with access to the protected branch. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (read).
repositories.getUsersWithAccessToProtectedBranch
Get ViewsRead-only
Get page views. Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. GitHub App permission: administration (read).
repositories.getViews
Get WebhookRead-only
Get a repository webhook. Returns a webhook configured in a repository. To get only the webhook `config` properties, see "[Get a webhook configuration for a repository](https://docs.github.com/rest/webhooks/repo-config#get-a-webhook-configuration-for-a-repository)." GitHub App permission: repository_hooks (read).
repositories.getWebhook
Get Webhook Config For RepoRead-only
Get a webhook configuration for a repository. Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use "[Get a repository webhook](https://docs.github.com/rest/webhooks/repos#get-a-repository-webhook)." GitHub App permission: repository_hooks (read).
repositories.getWebhookConfigForRepo
Get Webhook DeliveryRead-only
Get a delivery for a repository webhook. Returns a delivery for a webhook configured in a repository. GitHub App permission: repository_hooks (read).
repositories.getWebhookDelivery
ListRead-only
No owner: repos you own, collaborate on or reach through an org, private included. With owner: that account's public repos only. Other repos: search.repositories.
repositories.list
List ActivitiesRead-only
List repository activities. Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users. GitHub App permission: contents (read).
repositories.listActivities
List AttestationsRead-only
List attestations. List a collection of artifact attestations with a given subject digest that are associated with a repository. GitHub App permission: attestations (read).
repositories.listAttestations
List AutolinksRead-only
Get all autolinks of a repository. Gets all autolinks that are configured for a repository. GitHub App permission: administration (read).
repositories.listAutolinks
List BranchesRead-only
List branches in a repository
repositories.listBranches
List Branches For Head CommitRead-only
List branches for HEAD commit. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: contents (read).
repositories.listBranchesForHeadCommit
List CollaboratorsRead-only
List repository collaborators. For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. GitHub App permission: metadata (read).
repositories.listCollaborators
List Comments For CommitRead-only
List commit comments. Lists the comments for a specified commit. GitHub App permission: metadata (read).
repositories.listCommentsForCommit
List Commit Comments For RepoRead-only
List commit comments for a repository. Lists the commit comments for a specified repository. Comments are ordered by ascending ID. GitHub App permission: metadata (read).
repositories.listCommitCommentsForRepo
List Commit Statuses For RefRead-only
List commit statuses for a reference. Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one. GitHub App permission: statuses (read).
repositories.listCommitStatusesForRef
List CommitsRead-only
List commits in a repository
repositories.listCommits
List ContributorsRead-only
List repository contributors. Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API caches contributor data to improve performance. GitHub App permission: metadata (read).
repositories.listContributors
List Custom Deployment Rule IntegrationsRead-only
List custom deployment rule integrations available for an environment. Gets all custom deployment protection rule integrations that are available for an environment. GitHub App permission: administration (read).
repositories.listCustomDeploymentRuleIntegrations
List Deploy KeysRead-only
List deploy keys. GitHub App permission: administration (read).
repositories.listDeployKeys
List Deployment Branch PoliciesRead-only
List deployment branch policies. Lists the deployment branch policies for an environment. GitHub App permission: actions (read).
repositories.listDeploymentBranchPolicies
List Deployment StatusesRead-only
List deployment statuses. Users with pull access can view deployment statuses for a deployment: GitHub App permission: deployments (read).
repositories.listDeploymentStatuses
List DeploymentsRead-only
List deployments. Simple filtering of deployments is available via query parameters: GitHub App permission: deployments (read).
repositories.listDeployments
List For OrgRead-only
List organization repositories. Lists repositories for the specified organization. GitHub App permission: metadata (read).
repositories.listForOrg
List InvitationsRead-only
List repository invitations. When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. GitHub App permission: administration (read), private_repository_invitations (read).
repositories.listInvitations
List Invitations For Authenticated UserRead-only
List repository invitations for the authenticated user. When authenticating as a user, this endpoint will list all currently open repository invitations for that user. GitHub App permission: administration (read).
repositories.listInvitationsForAuthenticatedUser
List Issue TypesRead-only
List issue types for a repository. Lists enabled issue types inherited from the repository owner. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. Fine-grained access tokens require the "Metadata" repository permission (read). GitHub App permission: metadata (read).
repositories.listIssueTypes
List LanguagesRead-only
List repository languages. Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language. GitHub App permission: metadata (read).
repositories.listLanguages
List Pages BuildsRead-only
List GitHub Pages builds. Lists builts of a GitHub Pages site. GitHub App permission: pages (read).
repositories.listPagesBuilds
List Planning StatusesRead-only
List planning statuses for a repository. Lists the selectable planning statuses available. Planning statuses are returned in deterministic display order: Backlog, Todo, In progress, In review, Done, Not planned, and Duplicate. Clients should expect new keys to be added. Returns `404 Not Found` when issue statuses aren't available in the repository. GitHub App permission: issues (read).
repositories.listPlanningStatuses
List PublicRead-only
List public repositories. Lists all public repositories in the order that they were created. GitHub App permission: metadata (read).
repositories.listPublic
List Pull Requests Associated With CommitRead-only
List pull requests associated with a commit. Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, it will return merged and open pull requests associated with the commit. GitHub App permission: pull_requests (read).
repositories.listPullRequestsAssociatedWithCommit
List Release AssetsRead-only
List release assets. GitHub App permission: contents (read).
repositories.listReleaseAssets
List StargazersRead-only
List users who have starred a repository
repositories.listStargazers
List StarredRead-only
List repositories starred by the authenticated user
repositories.listStarred
List TagsRead-only
List repository tags. GitHub App permission: metadata (read).
repositories.listTags
List TeamsRead-only
List repository teams. Lists the teams that have access to the specified repository and that are also visible to the authenticated user. GitHub App permission: administration (read).
repositories.listTeams
List Webhook DeliveriesRead-only
List deliveries for a repository webhook. Returns a list of webhook deliveries for a webhook configured in a repository. GitHub App permission: repository_hooks (read).
repositories.listWebhookDeliveries
List WebhooksRead-only
List repository webhooks. Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. GitHub App permission: repository_hooks (read).
repositories.listWebhooks
MergeDestructive
Merge a branch. GitHub App permission: contents (write).
repositories.merge
Merge UpstreamDestructive
Sync a fork branch with the upstream repository. Sync a branch of a forked repository to keep it up-to-date with the upstream repository. GitHub App permission: contents (write).
repositories.mergeUpstream
Ping WebhookWrite
Ping a repository webhook. This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook. GitHub App permission: repository_hooks (read).
repositories.pingWebhook
Redeliver Webhook DeliveryWrite
Redeliver a delivery for a repository webhook. Redeliver a webhook delivery for a webhook configured in a repository. GitHub App permission: repository_hooks (write).
repositories.redeliverWebhookDelivery
Remove App Access RestrictionsDestructive
Remove app access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.removeAppAccessRestrictions
Remove CollaboratorDestructive
Remove a repository collaborator. Removes a collaborator from a repository. GitHub App permission: administration (write).
repositories.removeCollaborator
Remove Status Check ContextsDestructive
Remove status check contexts. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.removeStatusCheckContexts
Remove Status Check ProtectionDestructive
Remove status check protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.removeStatusCheckProtection
Remove Team Access RestrictionsDestructive
Remove team access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (write).
repositories.removeTeamAccessRestrictions
Remove User Access RestrictionsDestructive
Remove user access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (write).
repositories.removeUserAccessRestrictions
Rename BranchDestructive
Rename a branch. Renames a branch in a repository. GitHub App permission: contents (write).
repositories.renameBranch
Replace All TopicsWrite
Replace all repository topics. GitHub App permission: administration (write).
repositories.replaceAllTopics
Request Pages BuildWrite
Request a GitHub Pages build. You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures. GitHub App permission: pages (write).
repositories.requestPagesBuild
Set Admin Branch ProtectionWrite
Set admin branch protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.setAdminBranchProtection
Set App Access RestrictionsWrite
Set app access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.setAppAccessRestrictions
Set Status Check ContextsWrite
Set status check contexts. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.setStatusCheckContexts
Set Team Access RestrictionsWrite
Set team access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.setTeamAccessRestrictions
Set User Access RestrictionsWrite
Set user access restrictions. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.setUserAccessRestrictions
StarWrite
Star a repository for the authenticated user
repositories.star
Test Push WebhookWrite
Test the push repository webhook. This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated. GitHub App permission: repository_hooks (read).
repositories.testPushWebhook
TransferDestructive
Transfer a repository. A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. GitHub App permission: administration (write).
repositories.transfer
UnstarWrite
Unstar a repository for the authenticated user
repositories.unstar
UpdateDestructive
Update a repository. **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint. GitHub App permission: administration (write).
repositories.update
Update Branch ProtectionDestructive
Update branch protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.updateBranchProtection
Update Commit CommentWrite
Update a commit comment. Updates the contents of a specified commit comment. GitHub App permission: contents (write).
repositories.updateCommitComment
Update Deployment Branch PolicyWrite
Update a deployment branch policy. Updates a deployment branch or tag policy for an environment. GitHub App permission: administration (write).
repositories.updateDeploymentBranchPolicy
Update Information About Pages SiteWrite
Update information about a GitHub Pages site. Updates information for a GitHub Pages site. For more information, see "[About GitHub Pages](https://docs.github.com/github/working-with-github-pages/about-github-pages). GitHub App permission: administration (write), pages (write).
repositories.updateInformationAboutPagesSite
Update InvitationWrite
Update a repository invitation. GitHub App permission: administration (write).
repositories.updateInvitation
Update Org RulesetWrite
Update an organization repository ruleset. Update a ruleset for an organization. GitHub App permission: organization_administration (write).
repositories.updateOrgRuleset
Update Pull Request Review ProtectionWrite
Update pull request review protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. GitHub App permission: administration (write).
repositories.updatePullRequestReviewProtection
Update Release AssetWrite
Update a release asset. Users with push access to the repository can edit a release asset. GitHub App permission: contents (write).
repositories.updateReleaseAsset
Update Repo RulesetWrite
Update a repository ruleset. Update a ruleset for a repository. GitHub App permission: administration (write).
repositories.updateRepoRuleset
Update Status Check ProtectionWrite
Update status check protection. Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. GitHub App permission: administration (write).
repositories.updateStatusCheckProtection
Update WebhookWrite
Update a repository webhook. Updates a webhook configured in a repository. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. GitHub App permission: repository_hooks (write).
repositories.updateWebhook
Update Webhook Config For RepoWrite
Update a webhook configuration for a repository. Updates the webhook configuration for a repository. To update more information about the webhook, including the `active` state and `events`, use "[Update a repository webhook](https://docs.github.com/rest/webhooks/repos#update-a-repository-webhook)." GitHub App permission: repository_hooks (write).
repositories.updateWebhookConfigForRepo
Upload Release AssetWrite
Upload a release asset. This endpoint makes use of a [Hypermedia relation](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Not available to GitHub App user tokens: needs a personal access token.
repositories.uploadReleaseAsset
Actions
Add Custom Labels To Self Hosted Runner For OrgWrite
Add custom labels to a self-hosted runner for an organization. Adds custom labels to a self-hosted runner configured in an organization. GitHub App permission: organization_self_hosted_runners (write).
actions.addCustomLabelsToSelfHostedRunnerForOrg
Add Custom Labels To Self Hosted Runner For RepoWrite
Add custom labels to a self-hosted runner for a repository. Adds custom labels to a self-hosted runner configured in a repository. GitHub App permission: administration (write).
actions.addCustomLabelsToSelfHostedRunnerForRepo
Add Repo Access To Self Hosted Runner Group In OrgWrite
Add repository access to a self-hosted runner group in an organization. Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. GitHub App permission: organization_self_hosted_runners (write).
actions.addRepoAccessToSelfHostedRunnerGroupInOrg
Add Selected Repo To Org SecretWrite
Add selected repository to an organization secret. Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. For more information about setting the visibility, see [Create or update an organization secret](https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_secrets (write).
actions.addSelectedRepoToOrgSecret
Add Selected Repo To Org VariableWrite
Add selected repository to an organization variable. Adds a repository to an organization variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. GitHub App permission: organization_actions_variables (write).
actions.addSelectedRepoToOrgVariable
Add Self Hosted Runner To Group For OrgWrite
Add a self-hosted runner to a group for an organization. Adds a self-hosted runner to a runner group configured in an organization. GitHub App permission: organization_self_hosted_runners (write).
actions.addSelfHostedRunnerToGroupForOrg
Approve Workflow RunWrite
Approve a workflow run for a fork pull request. Approves a workflow run for a pull request from a public fork of a first time contributor. For more information, see ["Approving workflow runs from public forks](https://docs.github.com/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks)." GitHub App permission: actions (write).
actions.approveWorkflowRun
Cancel Workflow RunWrite
Cancel a workflow run. Cancels a workflow run using its `id`. GitHub App permission: actions (write).
actions.cancelWorkflowRun
Create Environment VariableWrite
Create an environment variable. Create an environment variable that you can reference in a GitHub Actions workflow. GitHub App permission: environments (write).
actions.createEnvironmentVariable
Create Hosted Runner For OrgWrite
Create a GitHub-hosted runner for an organization. Creates a GitHub-hosted runner for an organization. OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint. GitHub App permission: organization_administration (write).
actions.createHostedRunnerForOrg
Create Or Update Environment SecretWrite
Create or update an environment secret. Creates or updates an environment secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: environments (write).
actions.createOrUpdateEnvironmentSecret
Create Or Update Org SecretWrite
Create or update an organization secret. Creates or updates an organization secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: organization_secrets (write).
actions.createOrUpdateOrgSecret
Create Or Update Repo SecretWrite
Create or update a repository secret. Creates or updates a repository secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: secrets (write).
actions.createOrUpdateRepoSecret
Create Org Actions PolicyWrite
Create an organization Actions policy. Create an Actions policy for an organization. Omitting `workflow_path` targets all workflows without storing an explicit condition. GitHub App permission: organization_administration (write).
actions.createOrgActionsPolicy
Create Org VariableWrite
Create an organization variable. Creates an organization variable that you can reference in a GitHub Actions workflow. GitHub App permission: organization_actions_variables (write).
actions.createOrgVariable
Create Registration Token For OrgWrite
Create a registration token for an organization. Returns a token that you can pass to the `config` script. The token expires after one hour. GitHub App permission: organization_self_hosted_runners (write).
actions.createRegistrationTokenForOrg
Create Registration Token For RepoWrite
Create a registration token for a repository. Returns a token that you can pass to the `config` script. The token expires after one hour. GitHub App permission: administration (write).
actions.createRegistrationTokenForRepo
Create Remove Token For OrgWrite
Create a remove token for an organization. Returns a token that you can pass to the `config` script to remove a self-hosted runner from an organization. The token expires after one hour. GitHub App permission: organization_self_hosted_runners (write).
actions.createRemoveTokenForOrg
Create Remove Token For RepoWrite
Create a remove token for a repository. Returns a token that you can pass to the `config` script to remove a self-hosted runner from an repository. The token expires after one hour. GitHub App permission: administration (write).
actions.createRemoveTokenForRepo
Create Repo Actions PolicyWrite
Create a repository Actions policy. Create an Actions policy for a repository. Omitting `workflow_path` targets all workflows without storing an explicit condition. GitHub App permission: administration (write).
actions.createRepoActionsPolicy
Create Repo VariableWrite
Create a repository variable. Creates a repository variable that you can reference in a GitHub Actions workflow. GitHub App permission: actions_variables (write).
actions.createRepoVariable
Create Self Hosted Runner Group For OrgWrite
Create a self-hosted runner group for an organization. Creates a new self-hosted runner group for an organization. GitHub App permission: organization_self_hosted_runners (write).
actions.createSelfHostedRunnerGroupForOrg
Create Workflow DispatchDestructive
Create a workflow dispatch event. You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. GitHub App permission: actions (write).
actions.createWorkflowDispatch
Delete Actions Cache By IdDestructive
Delete a GitHub Actions cache for a repository (using a cache ID). Deletes a GitHub Actions cache for a repository, using a cache ID. GitHub App permission: actions (write).
actions.deleteActionsCacheById
Delete Actions Cache By KeyDestructive
Delete GitHub Actions caches for a repository (using a cache key). Deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref. GitHub App permission: actions (write).
actions.deleteActionsCacheByKey
Delete ArtifactDestructive
Delete an artifact. Deletes an artifact for a workflow run. OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. GitHub App permission: actions (write).
actions.deleteArtifact
Delete Custom Image From OrgDestructive
Delete a custom image from the organization. GitHub App permission: organization_runner_custom_images (write).
actions.deleteCustomImageFromOrg
Delete Custom Image Version From OrgDestructive
Delete an image version of custom image from the organization. GitHub App permission: organization_runner_custom_images (write).
actions.deleteCustomImageVersionFromOrg
Delete Environment SecretDestructive
Delete an environment secret. Deletes a secret in an environment using the secret name. GitHub App permission: environments (write).
actions.deleteEnvironmentSecret
Delete Environment VariableDestructive
Delete an environment variable. Deletes an environment variable using the variable name. GitHub App permission: environments (write).
actions.deleteEnvironmentVariable
Delete Hosted Runner For OrgDestructive
Delete a GitHub-hosted runner for an organization. Deletes a GitHub-hosted runner for an organization. GitHub App permission: organization_administration (write).
actions.deleteHostedRunnerForOrg
Delete Org Actions PolicyDestructive
Delete an organization Actions policy. Delete an Actions policy for an organization. GitHub App permission: organization_administration (write).
actions.deleteOrgActionsPolicy
Delete Org SecretDestructive
Delete an organization secret. Deletes a secret in an organization using the secret name. GitHub App permission: organization_secrets (write).
actions.deleteOrgSecret
Delete Org VariableDestructive
Delete an organization variable. Deletes an organization variable using the variable name. GitHub App permission: organization_actions_variables (write).
actions.deleteOrgVariable
Delete Repo Actions PolicyDestructive
Delete a repository Actions policy. Delete an Actions policy for a repository. GitHub App permission: administration (write).
actions.deleteRepoActionsPolicy
Delete Repo SecretDestructive
Delete a repository secret. Deletes a secret in a repository using the secret name. GitHub App permission: secrets (write).
actions.deleteRepoSecret
Delete Repo VariableDestructive
Delete a repository variable. Deletes a repository variable using the variable name. GitHub App permission: actions_variables (write).
actions.deleteRepoVariable
Delete Self Hosted Runner From OrgDestructive
Delete a self-hosted runner from an organization. Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. GitHub App permission: organization_self_hosted_runners (write).
actions.deleteSelfHostedRunnerFromOrg
Delete Self Hosted Runner From RepoDestructive
Delete a self-hosted runner from a repository. Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. GitHub App permission: administration (write).
actions.deleteSelfHostedRunnerFromRepo
Delete Self Hosted Runner Group From OrgDestructive
Delete a self-hosted runner group from an organization. Deletes a self-hosted runner group for an organization. GitHub App permission: organization_self_hosted_runners (write).
actions.deleteSelfHostedRunnerGroupFromOrg
Delete Workflow RunDestructive
Delete a workflow run. Deletes a specific workflow run. GitHub App permission: actions (write).
actions.deleteWorkflowRun
Delete Workflow Run LogsDestructive
Delete workflow run logs. Deletes all logs for a workflow run. GitHub App permission: actions (write).
Disable a selected repository for GitHub Actions in an organization. Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. GitHub App permission: organization_administration (write).
Remove a repository from the list of repositories allowed to use self-hosted runners in an organization. Removes a repository from the list of repositories that are allowed to use self-hosted runners in an organization. GitHub App permission: organization_administration (write).
Disable a workflow. Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. GitHub App permission: actions (write).
actions.disableWorkflow
Download ArtifactRead-only
Download an artifact. Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. The `:archive_format` must be `zip`. GitHub App permission: actions (read).
actions.downloadArtifact
Download Job Logs For Workflow RunRead-only
Download job logs for a workflow run. Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. GitHub App permission: actions (read).
actions.downloadJobLogsForWorkflowRun
Download Step Logs For Workflow Run JobRead-only
Download step logs for a workflow run job. Gets a redirect URL to download a plain text file of logs for a specific step of a workflow job. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. GitHub App permission: actions (read).
actions.downloadStepLogsForWorkflowRunJob
Download Workflow Run Attempt LogsRead-only
Download workflow run attempt logs. Gets a redirect URL to download an archive of log files for a specific workflow run attempt. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. GitHub App permission: actions (read).
actions.downloadWorkflowRunAttemptLogs
Download Workflow Run LogsRead-only
Download workflow run logs. Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. GitHub App permission: actions (read).
Enable a selected repository for GitHub Actions in an organization. Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be must be configured to `selected`. GitHub App permission: organization_administration (write).
Add a repository to the list of repositories allowed to use self-hosted runners in an organization. Adds a repository to the list of repositories that are allowed to use self-hosted runners in an organization. GitHub App permission: organization_administration (write).
Enable a workflow. Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. GitHub App permission: actions (write).
actions.enableWorkflow
Force Cancel Workflow RunDestructive
Force cancel a workflow run. Cancels a workflow run and bypasses conditions that would otherwise cause a workflow execution to continue, such as an `always()` condition on a job. You should only use this endpoint to cancel a workflow run when the workflow run is not responding to [`POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`](https://docs.github.com/rest/actions/workflow-runs#cancel-a-workflow-run). GitHub App permission: actions (write).
actions.forceCancelWorkflowRun
Generate Runner Jitconfig For OrgWrite
Create configuration for a just-in-time runner for an organization. Generates a configuration that can be passed to the runner application at startup. GitHub App permission: organization_self_hosted_runners (write).
actions.generateRunnerJitconfigForOrg
Generate Runner Jitconfig For RepoWrite
Create configuration for a just-in-time runner for a repository. Generates a configuration that can be passed to the runner application at startup. GitHub App permission: administration (write).
actions.generateRunnerJitconfigForRepo
Get Actions Cache ListRead-only
List GitHub Actions caches for a repository. Lists the GitHub Actions caches for a repository. GitHub App permission: actions (read).
actions.getActionsCacheList
Get Actions Cache Retention Limit For EnterpriseRead-only
Get GitHub Actions cache retention limit for an enterprise. Gets GitHub Actions cache retention limit for an enterprise. All organizations and repositories under this enterprise may not set a higher cache retention limit. Not available to GitHub App user tokens: needs a personal access token.
Get Actions Cache Retention Limit For OrganizationRead-only
Get GitHub Actions cache retention limit for an organization. Gets GitHub Actions cache retention limit for an organization. All repositories under this organization may not set a higher cache retention limit. GitHub App permission: organization_administration (read).
Get Actions Cache Retention Limit For RepositoryRead-only
Get GitHub Actions cache retention limit for a repository. Gets GitHub Actions cache retention limit for a repository. This determines how long caches will be retained for, if not manually removed or evicted due to size constraints. GitHub App permission: administration (read).
Get Actions Cache Storage Limit For EnterpriseRead-only
Get GitHub Actions cache storage limit for an enterprise. Gets GitHub Actions cache storage limit for an enterprise. All organizations and repositories under this enterprise may not set a higher cache storage limit. Not available to GitHub App user tokens: needs a personal access token.
actions.getActionsCacheStorageLimitForEnterprise
Get Actions Cache Storage Limit For OrganizationRead-only
Get GitHub Actions cache storage limit for an organization. Gets GitHub Actions cache storage limit for an organization. All repositories under this organization may not set a higher cache storage limit. GitHub App permission: organization_administration (read).
Get Actions Cache Storage Limit For RepositoryRead-only
Get GitHub Actions cache storage limit for a repository. Gets GitHub Actions cache storage limit for a repository. This determines the maximum size of caches that can be stored before eviction occurs. GitHub App permission: actions (read).
actions.getActionsCacheStorageLimitForRepository
Get Actions Cache UsageRead-only
Get GitHub Actions cache usage for a repository. Gets GitHub Actions cache usage for a repository. The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated. GitHub App permission: actions (read).
actions.getActionsCacheUsage
Get Actions Cache Usage By Repo For OrgRead-only
List repositories with GitHub Actions cache usage for an organization. Lists repositories and their GitHub Actions cache usage for an organization. The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated. GitHub App permission: organization_administration (read).
actions.getActionsCacheUsageByRepoForOrg
Get Actions Cache Usage For OrgRead-only
Get GitHub Actions cache usage for an organization. Gets the total GitHub Actions cache usage for an organization. The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated. GitHub App permission: organization_administration (read).
actions.getActionsCacheUsageForOrg
Get Allowed Actions OrganizationRead-only
Get allowed actions and reusable workflows for an organization. Gets the selected actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. GitHub App permission: organization_administration (read).
actions.getAllowedActionsOrganization
Get Allowed Actions RepositoryRead-only
Get allowed actions and reusable workflows for a repository. Gets the settings for selected actions and reusable workflows that are allowed in a repository. To use this endpoint, the repository policy for `allowed_actions` must be configured to `selected`. GitHub App permission: administration (read).
actions.getAllowedActionsRepository
Get ArtifactRead-only
Get an artifact. Gets a specific artifact for a workflow run. GitHub App permission: actions (read).
actions.getArtifact
Get Artifact And Log Retention Settings OrganizationRead-only
Get artifact and log retention settings for an organization. Gets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for an organization. GitHub App permission: organization_administration (read).
Get Artifact And Log Retention Settings RepositoryRead-only
Get artifact and log retention settings for a repository. Gets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for a repository. GitHub App permission: administration (read).
Get a concurrency group for a repository. Gets a specific concurrency group for a repository, including all instances in the group's queue. Returns 404 if the group is inactive or does not exist. GitHub App permission: actions (read).
actions.getConcurrencyGroupForRepository
Get Custom Image For OrgRead-only
Get a custom image definition for GitHub Actions Hosted Runners. GitHub App permission: organization_runner_custom_images (read).
actions.getCustomImageForOrg
Get Custom Image Version For OrgRead-only
Get an image version of a custom image for GitHub Actions Hosted Runners. GitHub App permission: organization_runner_custom_images (read).
actions.getCustomImageVersionForOrg
Get Custom Oidc Sub Claim For RepoRead-only
Get the customization template for an OIDC subject claim for a repository. Gets the customization template for an OpenID Connect (OIDC) subject claim. GitHub App permission: actions (read).
actions.getCustomOidcSubClaimForRepo
Get Environment Public KeyRead-only
Get an environment public key. Get the public key for an environment, which you need to encrypt environment secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: environments (read).
actions.getEnvironmentPublicKey
Get Environment SecretRead-only
Get an environment secret. Gets a single environment secret without revealing its encrypted value. GitHub App permission: environments (read).
actions.getEnvironmentSecret
Get Environment VariableRead-only
Get an environment variable. Gets a specific variable in an environment. GitHub App permission: environments (read).
actions.getEnvironmentVariable
Get Fork Pr Contributor Approval Permissions OrganizationRead-only
Get fork PR contributor approval permissions for an organization. Gets the fork PR contributor approval policy for an organization. GitHub App permission: organization_administration (read).
Get Fork Pr Contributor Approval Permissions RepositoryRead-only
Get fork PR contributor approval permissions for a repository. Gets the fork PR contributor approval policy for a repository. GitHub App permission: administration (read).
Get Github Actions Default Workflow Permissions OrganizationRead-only
Get default workflow permissions for an organization. Gets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an organization, as well as whether GitHub Actions can submit approving pull request reviews. GitHub App permission: organization_administration (read).
Get Github Actions Default Workflow Permissions RepositoryRead-only
Get default workflow permissions for a repository. Gets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in a repository, as well as if GitHub Actions can submit approving pull request reviews. GitHub App permission: administration (read).
Get Github Actions Permissions OrganizationRead-only
Get GitHub Actions permissions for an organization. Gets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization. GitHub App permission: organization_administration (read).
actions.getGithubActionsPermissionsOrganization
Get Github Actions Permissions RepositoryRead-only
Get GitHub Actions permissions for a repository. Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions and reusable workflows allowed to run in the repository. GitHub App permission: administration (read).
actions.getGithubActionsPermissionsRepository
Get Hosted Runner For OrgRead-only
Get a GitHub-hosted runner for an organization. Gets a GitHub-hosted runner configured in an organization. GitHub App permission: organization_administration (read).
actions.getHostedRunnerForOrg
Get Hosted Runners Github Owned Images For OrgRead-only
Get GitHub-owned images for GitHub-hosted runners in an organization. Get the list of GitHub-owned images available for GitHub-hosted runners for an organization. GitHub App permission: organization_administration (read).
actions.getHostedRunnersGithubOwnedImagesForOrg
Get Hosted Runners Limits For OrgRead-only
Get limits on GitHub-hosted runners for an organization. Get the GitHub-hosted runners limits for an organization. GitHub App permission: organization_administration (read).
actions.getHostedRunnersLimitsForOrg
Get Hosted Runners Machine Specs For OrgRead-only
Get GitHub-hosted runners machine specs for an organization. Get the list of machine specs available for GitHub-hosted runners for an organization. GitHub App permission: organization_administration (read).
actions.getHostedRunnersMachineSpecsForOrg
Get Hosted Runners Partner Images For OrgRead-only
Get partner images for GitHub-hosted runners in an organization. Get the list of partner images available for GitHub-hosted runners for an organization. GitHub App permission: organization_administration (read).
actions.getHostedRunnersPartnerImagesForOrg
Get Hosted Runners Platforms For OrgRead-only
Get platforms for GitHub-hosted runners in an organization. Get the list of platforms available for GitHub-hosted runners for an organization. GitHub App permission: organization_administration (read).
actions.getHostedRunnersPlatformsForOrg
Get Job For Workflow RunRead-only
Get a job for a workflow run. Gets a specific job in a workflow run. GitHub App permission: actions (read).
actions.getJobForWorkflowRun
Get Org Actions PoliciesRead-only
List organization Actions policies. List all Actions policies for an organization. GitHub App permission: organization_administration (write).
actions.getOrgActionsPolicies
Get Org Actions PolicyRead-only
Get an organization Actions policy. Get a specific Actions policy for an organization. GitHub App permission: organization_administration (write).
actions.getOrgActionsPolicy
Get Org Public KeyRead-only
Get an organization public key. Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: organization_secrets (read).
actions.getOrgPublicKey
Get Org SecretRead-only
Get an organization secret. Gets a single organization secret without revealing its encrypted value. GitHub App permission: organization_secrets (read).
actions.getOrgSecret
Get Org VariableRead-only
Get an organization variable. Gets a specific variable in an organization. GitHub App permission: organization_actions_variables (read).
actions.getOrgVariable
Get Pending Deployments For RunRead-only
Get pending deployments for a workflow run. Get all deployment environments for a workflow run that are waiting for protection rules to pass. GitHub App permission: actions (read).
actions.getPendingDeploymentsForRun
Get Private Repo Fork Pr Workflows Settings OrganizationRead-only
Get private repo fork PR workflow settings for an organization. Gets the settings for whether workflows from fork pull requests can run on private repositories in an organization. GitHub App permission: organization_administration (read).
Get Private Repo Fork Pr Workflows Settings RepositoryRead-only
Get private repo fork PR workflow settings for a repository. Gets the settings for whether workflows from fork pull requests can run on a private repository. GitHub App permission: administration (read).
List repository Actions policies. List all Actions policies for a repository. GitHub App permission: administration (write).
actions.getRepoActionsPolicies
Get Repo Actions PolicyRead-only
Get a repository Actions policy. Get a specific Actions policy for a repository. GitHub App permission: administration (write).
actions.getRepoActionsPolicy
Get Repo Public KeyRead-only
Get a repository public key. Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: secrets (read).
actions.getRepoPublicKey
Get Repo SecretRead-only
Get a repository secret. Gets a single repository secret without revealing its encrypted value. GitHub App permission: secrets (read).
actions.getRepoSecret
Get Repo VariableRead-only
Get a repository variable. Gets a specific variable in a repository. GitHub App permission: actions_variables (read).
actions.getRepoVariable
Get Reviews For RunRead-only
Get the review history for a workflow run. Anyone with read access to the repository can use this endpoint. GitHub App permission: actions (read).
actions.getReviewsForRun
Get Runner Version Deprecation For OrgRead-only
Get runner version end-of-life schedule for an organization. Gets the end-of-life schedule for a specific runner version in an organization. Returns the runner version and the dates when registration and runtime support will end. GitHub App permission: organization_self_hosted_runners (read).
actions.getRunnerVersionDeprecationForOrg
Get Runner Version Deprecation For RepoRead-only
Get runner version end-of-life schedule for a repository. Gets the end-of-life schedule for a specific runner version in a repository. Returns the runner version and the dates when registration and runtime support will end. GitHub App permission: administration (read).
actions.getRunnerVersionDeprecationForRepo
Get Self Hosted Runner For OrgRead-only
Get a self-hosted runner for an organization. Gets a specific self-hosted runner configured in an organization. GitHub App permission: organization_self_hosted_runners (read).
actions.getSelfHostedRunnerForOrg
Get Self Hosted Runner For RepoRead-only
Get a self-hosted runner for a repository. Gets a specific self-hosted runner configured in a repository. GitHub App permission: administration (read).
actions.getSelfHostedRunnerForRepo
Get Self Hosted Runner Group For OrgRead-only
Get a self-hosted runner group for an organization. Gets a specific self-hosted runner group for an organization. GitHub App permission: organization_self_hosted_runners (read).
actions.getSelfHostedRunnerGroupForOrg
Get Self Hosted Runners Permissions OrganizationRead-only
Get self-hosted runners settings for an organization. Gets the settings for self-hosted runners for an organization. GitHub App permission: organization_administration (read).
Get the level of access for workflows outside of the repository. Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository. This endpoint only applies to private repositories. GitHub App permission: administration (read).
actions.getWorkflowAccessToRepository
Get Workflow RunRead-only
Get a workflow run. Gets a specific workflow run. GitHub App permission: actions (read).
actions.getWorkflowRun
Get Workflow Run AttemptRead-only
Get a workflow run attempt. Gets a specific workflow run attempt. GitHub App permission: actions (read).
actions.getWorkflowRunAttempt
Get Workflow Run UsageRead-only
Get workflow run usage. > [!WARNING] > This endpoint is in the process of closing down. Refer to "[Actions Get workflow usage and Get workflow run usage endpoints closing down](https://github.blog/changelog/2025-02-02-actions-get-workflow-usage-and-get-workflow-run-usage-endpoints-closing-down/)" for more information. GitHub App permission: actions (read).
actions.getWorkflowRunUsage
Get Workflow UsageRead-only
Get workflow usage. > [!WARNING] > This endpoint is in the process of closing down. Refer to "[Actions Get workflow usage and Get workflow run usage endpoints closing down](https://github.blog/changelog/2025-02-02-actions-get-workflow-usage-and-get-workflow-run-usage-endpoints-closing-down/)" for more information. GitHub App permission: actions (read).
actions.getWorkflowUsage
List Artifacts For RepoRead-only
List artifacts for a repository. Lists all artifacts for a repository. GitHub App permission: actions (read).
actions.listArtifactsForRepo
List Concurrency Groups For RepositoryRead-only
List concurrency groups for a repository. Lists the active concurrency groups for a repository. GitHub App permission: actions (read).
actions.listConcurrencyGroupsForRepository
List Concurrency Groups For Workflow RunRead-only
List concurrency groups for a workflow run. Lists all concurrency groups associated with a workflow run or its jobs. GitHub App permission: actions (read).
actions.listConcurrencyGroupsForWorkflowRun
List Custom Image Versions For OrgRead-only
List image versions of a custom image for an organization. GitHub App permission: organization_runner_custom_images (read).
actions.listCustomImageVersionsForOrg
List Custom Images For OrgRead-only
List custom images for an organization. GitHub App permission: organization_runner_custom_images (read).
actions.listCustomImagesForOrg
List Environment SecretsRead-only
List environment secrets. Lists all secrets available in an environment without revealing their encrypted values. GitHub App permission: environments (read).
actions.listEnvironmentSecrets
List Environment VariablesRead-only
List environment variables. Lists all environment variables. GitHub App permission: environments (read).
actions.listEnvironmentVariables
List Github Hosted Runners In Group For OrgRead-only
List GitHub-hosted runners in a group for an organization. Lists the GitHub-hosted runners in an organization group. GitHub App permission: organization_self_hosted_runners (read).
actions.listGithubHostedRunnersInGroupForOrg
List Hosted Runners For OrgRead-only
List GitHub-hosted runners for an organization. Lists all GitHub-hosted runners configured in an organization. GitHub App permission: organization_administration (read).
actions.listHostedRunnersForOrg
List Jobs For Workflow RunRead-only
List jobs for a workflow run. Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters). GitHub App permission: actions (read).
actions.listJobsForWorkflowRun
List Jobs For Workflow Run AttemptRead-only
List jobs for a workflow run attempt. Lists jobs for a specific workflow run attempt. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters). GitHub App permission: actions (read).
actions.listJobsForWorkflowRunAttempt
List Labels For Self Hosted Runner For OrgRead-only
List labels for a self-hosted runner for an organization. Lists all labels for a self-hosted runner configured in an organization. GitHub App permission: organization_self_hosted_runners (read).
actions.listLabelsForSelfHostedRunnerForOrg
List Labels For Self Hosted Runner For RepoRead-only
List labels for a self-hosted runner for a repository. Lists all labels for a self-hosted runner configured in a repository. GitHub App permission: administration (read).
actions.listLabelsForSelfHostedRunnerForRepo
List Org SecretsRead-only
List organization secrets. Lists all secrets available in an organization without revealing their encrypted values. GitHub App permission: organization_secrets (read).
actions.listOrgSecrets
List Org VariablesRead-only
List organization variables. Lists all organization variables. GitHub App permission: organization_actions_variables (read).
actions.listOrgVariables
List Repo Access To Self Hosted Runner Group In OrgRead-only
List repository access to a self-hosted runner group in an organization. Lists the repositories with access to a self-hosted runner group configured in an organization. GitHub App permission: organization_self_hosted_runners (read).
List repository organization secrets. Lists all organization secrets shared with a repository without revealing their encrypted values. GitHub App permission: secrets (read).
actions.listRepoOrganizationSecrets
List Repo Organization VariablesRead-only
List repository organization variables. Lists all organization variables shared with a repository. GitHub App permission: actions_variables (read).
actions.listRepoOrganizationVariables
List Repo SecretsRead-only
List repository secrets. Lists all secrets available in a repository without revealing their encrypted values. GitHub App permission: secrets (read).
actions.listRepoSecrets
List Repo VariablesRead-only
List repository variables. Lists all repository variables. GitHub App permission: actions_variables (read).
actions.listRepoVariables
List Runner Applications For OrgRead-only
List runner applications for an organization. Lists binaries for the runner application that you can download and run. GitHub App permission: organization_self_hosted_runners (read).
actions.listRunnerApplicationsForOrg
List Runner Applications For RepoRead-only
List runner applications for a repository. Lists binaries for the runner application that you can download and run. GitHub App permission: administration (read).
actions.listRunnerApplicationsForRepo
List Selected Repos For Org SecretRead-only
List selected repositories for an organization secret. Lists all repositories that have been selected when the `visibility` for repository access to a secret is set to `selected`. GitHub App permission: organization_secrets (read).
actions.listSelectedReposForOrgSecret
List Selected Repos For Org VariableRead-only
List selected repositories for an organization variable. Lists all repositories that can access an organization variable that is available to selected repositories. GitHub App permission: organization_actions_variables (read).
actions.listSelectedReposForOrgVariable
List Selected Repositories Enabled Github Actions OrganizationRead-only
List selected repositories enabled for GitHub Actions in an organization. Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. GitHub App permission: organization_administration (read).
List Selected Repositories Self Hosted Runners OrganizationRead-only
List repositories allowed to use self-hosted runners in an organization. Lists repositories that are allowed to use self-hosted runners in an organization. GitHub App permission: organization_administration (read).
List self-hosted runner groups for an organization. Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. GitHub App permission: organization_self_hosted_runners (read).
actions.listSelfHostedRunnerGroupsForOrg
List Self Hosted Runners For OrgRead-only
List self-hosted runners for an organization. Lists all self-hosted runners configured in an organization. GitHub App permission: organization_self_hosted_runners (read).
actions.listSelfHostedRunnersForOrg
List Self Hosted Runners For RepoRead-only
List self-hosted runners for a repository. Lists all self-hosted runners configured in a repository. GitHub App permission: administration (read).
actions.listSelfHostedRunnersForRepo
List Self Hosted Runners In Group For OrgRead-only
List self-hosted runners in a group for an organization. Lists self-hosted runners that are in a specific organization group. GitHub App permission: organization_self_hosted_runners (read).
actions.listSelfHostedRunnersInGroupForOrg
List Workflow Run ArtifactsRead-only
List workflow run artifacts. Lists artifacts for a workflow run. GitHub App permission: actions (read).
actions.listWorkflowRunArtifacts
List Workflow RunsRead-only
List workflow runs for a workflow. List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters). GitHub App permission: actions (read).
actions.listWorkflowRuns
Re Run Job For Workflow RunWrite
Re-run a job from a workflow run. Re-run a job and its dependent jobs in a workflow run. GitHub App permission: actions (write).
actions.reRunJobForWorkflowRun
Re Run WorkflowWrite
Re-run a workflow. Re-runs your workflow run using its `id`. GitHub App permission: actions (write).
actions.reRunWorkflow
Re Run Workflow Failed JobsWrite
Re-run failed jobs from a workflow run. Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run. GitHub App permission: actions (write).
actions.reRunWorkflowFailedJobs
Remove All Custom Labels From Self Hosted Runner For OrgDestructive
Remove all custom labels from a self-hosted runner for an organization. Remove all custom labels from a self-hosted runner configured in an organization. Returns the remaining read-only labels from the runner. GitHub App permission: organization_self_hosted_runners (write).
Remove All Custom Labels From Self Hosted Runner For RepoDestructive
Remove all custom labels from a self-hosted runner for a repository. Remove all custom labels from a self-hosted runner configured in a repository. Returns the remaining read-only labels from the runner. GitHub App permission: administration (write).
Remove Custom Label From Self Hosted Runner For OrgDestructive
Remove a custom label from a self-hosted runner for an organization. Remove a custom label from a self-hosted runner configured in an organization. Returns the remaining labels from the runner. GitHub App permission: organization_self_hosted_runners (write).
Remove Custom Label From Self Hosted Runner For RepoDestructive
Remove a custom label from a self-hosted runner for a repository. Remove a custom label from a self-hosted runner configured in a repository. Returns the remaining labels from the runner. GitHub App permission: administration (write).
Remove Repo Access To Self Hosted Runner Group In OrgDestructive
Remove repository access to a self-hosted runner group in an organization. Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. GitHub App permission: organization_self_hosted_runners (write).
Remove selected repository from an organization secret. Removes a repository from an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_secrets (write).
actions.removeSelectedRepoFromOrgSecret
Remove Selected Repo From Org VariableDestructive
Remove selected repository from an organization variable. Removes a repository from an organization variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. GitHub App permission: organization_actions_variables (write).
actions.removeSelectedRepoFromOrgVariable
Remove Self Hosted Runner From Group For OrgDestructive
Remove a self-hosted runner from a group for an organization. Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. GitHub App permission: organization_self_hosted_runners (write).
actions.removeSelfHostedRunnerFromGroupForOrg
Review Custom Gates For RunWrite
Review custom deployment protection rules for a workflow run. Approve or reject custom deployment protection rules provided by a GitHub App for a workflow run. For more information, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)." GitHub App permission: deployments (write). Not available to GitHub App user tokens: needs a personal access token.
actions.reviewCustomGatesForRun
Review Pending Deployments For RunWrite
Review pending deployments for a workflow run. Approve or reject pending deployments that are waiting on approval by a required reviewer. GitHub App permission: deployments (write).
actions.reviewPendingDeploymentsForRun
Set Actions Cache Retention Limit For EnterpriseWrite
Set GitHub Actions cache retention limit for an enterprise. Sets GitHub Actions cache retention limit for an enterprise. All organizations and repositories under this enterprise may not set a higher cache retention limit. Not available to GitHub App user tokens: needs a personal access token.
Set Actions Cache Retention Limit For OrganizationWrite
Set GitHub Actions cache retention limit for an organization. Sets GitHub Actions cache retention limit for an organization. All repositories under this organization may not set a higher cache retention limit. GitHub App permission: organization_administration (write).
Set Actions Cache Retention Limit For RepositoryWrite
Set GitHub Actions cache retention limit for a repository. Sets GitHub Actions cache retention limit for a repository. This determines how long caches will be retained for, if not manually removed or evicted due to size constraints. GitHub App permission: administration (write).
Set Actions Cache Storage Limit For EnterpriseWrite
Set GitHub Actions cache storage limit for an enterprise. Sets GitHub Actions cache storage limit for an enterprise. All organizations and repositories under this enterprise may not set a higher cache storage limit. Not available to GitHub App user tokens: needs a personal access token.
actions.setActionsCacheStorageLimitForEnterprise
Set Actions Cache Storage Limit For OrganizationWrite
Set GitHub Actions cache storage limit for an organization. Sets GitHub Actions cache storage limit for an organization. All organizations and repositories under this organization may not set a higher cache storage limit. GitHub App permission: organization_administration (write).
Set Actions Cache Storage Limit For RepositoryWrite
Set GitHub Actions cache storage limit for a repository. Sets GitHub Actions cache storage limit for a repository. This determines the maximum size of caches that can be stored before eviction occurs. GitHub App permission: administration (write).
actions.setActionsCacheStorageLimitForRepository
Set Allowed Actions OrganizationWrite
Set allowed actions and reusable workflows for an organization. Sets the actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. GitHub App permission: organization_administration (write).
actions.setAllowedActionsOrganization
Set Allowed Actions RepositoryWrite
Set allowed actions and reusable workflows for a repository. Sets the actions and reusable workflows that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. GitHub App permission: administration (write).
actions.setAllowedActionsRepository
Set Artifact And Log Retention Settings OrganizationWrite
Set artifact and log retention settings for an organization. Sets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for an organization. GitHub App permission: organization_administration (write).
Set Artifact And Log Retention Settings RepositoryWrite
Set artifact and log retention settings for a repository. Sets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for a repository. GitHub App permission: administration (write).
Set Custom Labels For Self Hosted Runner For OrgWrite
Set custom labels for a self-hosted runner for an organization. Remove all previous custom labels and set the new custom labels for a specific self-hosted runner configured in an organization. GitHub App permission: organization_self_hosted_runners (write).
actions.setCustomLabelsForSelfHostedRunnerForOrg
Set Custom Labels For Self Hosted Runner For RepoWrite
Set custom labels for a self-hosted runner for a repository. Remove all previous custom labels and set the new custom labels for a specific self-hosted runner configured in a repository. GitHub App permission: administration (write).
actions.setCustomLabelsForSelfHostedRunnerForRepo
Set Custom Oidc Sub Claim For RepoWrite
Set the customization template for an OIDC subject claim for a repository. Sets the customization template and `opt-in` or `opt-out` flag for an OpenID Connect (OIDC) subject claim for a repository. GitHub App permission: actions (write).
actions.setCustomOidcSubClaimForRepo
Set Fork Pr Contributor Approval Permissions OrganizationWrite
Set fork PR contributor approval permissions for an organization. Sets the fork PR contributor approval policy for an organization. GitHub App permission: organization_administration (write).
Set Fork Pr Contributor Approval Permissions RepositoryWrite
Set fork PR contributor approval permissions for a repository. Sets the fork PR contributor approval policy for a repository. GitHub App permission: administration (write).
Set Github Actions Default Workflow Permissions OrganizationWrite
Set default workflow permissions for an organization. Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an organization, and sets if GitHub Actions can submit approving pull request reviews. GitHub App permission: organization_administration (write).
Set Github Actions Default Workflow Permissions RepositoryWrite
Set default workflow permissions for a repository. Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in a repository, and sets if GitHub Actions can submit approving pull request reviews. GitHub App permission: administration (write).
Set GitHub Actions permissions for an organization. Sets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization. GitHub App permission: organization_administration (write).
actions.setGithubActionsPermissionsOrganization
Set Github Actions Permissions RepositoryWrite
Set GitHub Actions permissions for a repository. Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions and reusable workflows in the repository. GitHub App permission: administration (write).
actions.setGithubActionsPermissionsRepository
Set Private Repo Fork Pr Workflows Settings OrganizationWrite
Set private repo fork PR workflow settings for an organization. Sets the settings for whether workflows from fork pull requests can run on private repositories in an organization. GitHub App permission: organization_administration (write).
Set Private Repo Fork Pr Workflows Settings RepositoryWrite
Set private repo fork PR workflow settings for a repository. Sets the settings for whether workflows from fork pull requests can run on a private repository. GitHub App permission: administration (write).
Set Repo Access To Self Hosted Runner Group In OrgWrite
Set repository access for a self-hosted runner group in an organization. Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. GitHub App permission: organization_self_hosted_runners (write).
actions.setRepoAccessToSelfHostedRunnerGroupInOrg
Set Selected Repos For Org SecretWrite
Set selected repositories for an organization secret. Replaces all repositories for an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_secrets (write).
actions.setSelectedReposForOrgSecret
Set Selected Repos For Org VariableWrite
Set selected repositories for an organization variable. Replaces all repositories for an organization variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. GitHub App permission: organization_actions_variables (write).
actions.setSelectedReposForOrgVariable
Set Selected Repositories Enabled Github Actions OrganizationWrite
Set selected repositories enabled for GitHub Actions in an organization. Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. GitHub App permission: organization_administration (write).
Set Selected Repositories Self Hosted Runners OrganizationWrite
Set repositories allowed to use self-hosted runners in an organization. Sets repositories that are allowed to use self-hosted runners in an organization. GitHub App permission: organization_administration (write).
Set self-hosted runners in a group for an organization. Replaces the list of self-hosted runners that are part of an organization runner group. GitHub App permission: organization_self_hosted_runners (write).
actions.setSelfHostedRunnersInGroupForOrg
Set Self Hosted Runners Permissions OrganizationWrite
Set self-hosted runners settings for an organization. Sets the settings for self-hosted runners for an organization. GitHub App permission: organization_administration (write).
Set the level of access for workflows outside of the repository. Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository. This endpoint only applies to private repositories. GitHub App permission: administration (write).
actions.setWorkflowAccessToRepository
Update Environment VariableWrite
Update an environment variable. Updates an environment variable that you can reference in a GitHub Actions workflow. GitHub App permission: environments (write).
actions.updateEnvironmentVariable
Update Hosted Runner For OrgWrite
Update a GitHub-hosted runner for an organization. Updates a GitHub-hosted runner for an organization. OAuth app tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint. GitHub App permission: organization_administration (write).
actions.updateHostedRunnerForOrg
Update Org Actions PolicyWrite
Update an organization Actions policy. Update an Actions policy for an organization. Omitting `workflow_path` preserves the policy's existing workflow targeting. GitHub App permission: organization_administration (write).
actions.updateOrgActionsPolicy
Update Org VariableWrite
Update an organization variable. Updates an organization variable that you can reference in a GitHub Actions workflow. GitHub App permission: organization_actions_variables (write).
actions.updateOrgVariable
Update Repo Actions PolicyWrite
Update a repository Actions policy. Update an Actions policy for a repository. Omitting `workflow_path` preserves the policy's existing workflow targeting. GitHub App permission: administration (write).
actions.updateRepoActionsPolicy
Update Repo VariableWrite
Update a repository variable. Updates a repository variable that you can reference in a GitHub Actions workflow. GitHub App permission: actions_variables (write).
actions.updateRepoVariable
Update Self Hosted Runner Group For OrgWrite
Update a self-hosted runner group for an organization. Updates the `name` and `visibility` of a self-hosted runner group in an organization. GitHub App permission: organization_self_hosted_runners (write).
actions.updateSelfHostedRunnerGroupForOrg
Orgs
Assign Team To Org RoleWrite
Assign an organization role to a team. Assigns an organization role to a team in an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: members (write).
orgs.assignTeamToOrgRole
Assign User To Org RoleWrite
Assign an organization role to a user. Assigns an organization role to a member of an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: members (write).
orgs.assignUserToOrgRole
Block UserDestructive
Block a user from an organization. Blocks the given user on behalf of the specified organization and returns a 204. If the organization cannot block the given user a 422 is returned. GitHub App permission: organization_user_blocking (write).
orgs.blockUser
Cancel InvitationDestructive
Cancel an organization invitation. Cancel an organization invitation. In order to cancel an organization invitation, the authenticated user must be an organization owner. GitHub App permission: members (write).
orgs.cancelInvitation
Check Blocked UserRead-only
Check if a user is blocked by an organization. Returns a 204 if the given user is blocked by the given organization. Returns a 404 if the organization is not blocking the user, or if the user account has been identified as spam by GitHub. GitHub App permission: organization_user_blocking (read).
orgs.checkBlockedUser
Check Membership For UserRead-only
Check organization membership for a user. Check if a user is, publicly or privately, a member of the organization. GitHub App permission: members (read).
orgs.checkMembershipForUser
Check Public Membership For UserRead-only
Check public organization membership for a user. Check if the provided user is a public member of the organization. GitHub App permission: members (read).
orgs.checkPublicMembershipForUser
Convert Member To Outside CollaboratorDestructive
Convert an organization member to outside collaborator. When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. GitHub App permission: members (write).
orgs.convertMemberToOutsideCollaborator
Create Artifact Deployment RecordWrite
Create an artifact deployment record. Create or update deployment records for an artifact associated with an organization. This endpoint allows you to record information about a specific artifact, such as its name, digest, environments, cluster, and deployment. The deployment name has to be unique within a cluster (i.e a combination of logical, physical environment and cluster) as it identifies unique deployment. GitHub App permission: artifact_metadata (write).
orgs.createArtifactDeploymentRecord
Create Artifact Storage RecordWrite
Create artifact metadata storage record. Create metadata storage records for artifacts associated with an organization. This endpoint will create a new artifact storage record on behalf of any artifact matching the provided digest and associated with a repository owned by the organization. GitHub App permission: artifact_metadata (write).
orgs.createArtifactStorageRecord
Create Cluster Deployment Records JobWrite
Create a cluster deployment records job. Create a background job to set deployment records for a given cluster. Performs validation and permission checks synchronously, returning rejected deployments immediately, then enqueues a background job for the actual deployment updates. Use the companion GET endpoint to poll for job status. GitHub App permission: artifact_metadata (write).
orgs.createClusterDeploymentRecordsJob
Create InvitationWrite
Create an organization invitation. Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. GitHub App permission: members (write).
orgs.createInvitation
Create Issue FieldWrite
Create issue field for an organization. Creates a new issue field for an organization. GitHub App permission: issue_fields (write).
orgs.createIssueField
Create Issue TypeWrite
Create issue type for an organization. Create a new issue type for an organization. GitHub App permission: issue_types (write).
orgs.createIssueType
Create WebhookWrite
Create an organization webhook. Create a hook that posts payloads in JSON format. GitHub App permission: organization_hooks (write).
orgs.createWebhook
Custom Properties For Repos Create Or Update Organization DefinitionWrite
Create or update a custom property for an organization. Creates a new or updates an existing custom property that is defined for an organization. GitHub App permission: organization_custom_properties (admin).
Custom Properties For Repos Create Or Update Organization DefinitionsWrite
Create or update custom properties for an organization. Creates new or updates existing custom properties defined for an organization in a batch. GitHub App permission: organization_custom_properties (admin).
Custom Properties For Repos Create Or Update Organization ValuesWrite
Create or update custom property values for organization repositories. Create new or update existing custom property values for repositories in a batch that belong to an organization. Each target repository will have its custom property values updated to match the values provided in the request. GitHub App permission: organization_custom_properties (write).
Custom Properties For Repos Delete Organization DefinitionDestructive
Remove a custom property for an organization. Removes a custom property that is defined for an organization. GitHub App permission: organization_custom_properties (admin).
Custom Properties For Repos Get Organization DefinitionRead-only
Get a custom property for an organization. Gets a custom property that is defined for an organization. Organization members can read these properties. GitHub App permission: organization_custom_properties (read).
Custom Properties For Repos Get Organization DefinitionsRead-only
Get all custom properties for an organization. Gets all custom properties defined for an organization. Organization members can read these properties. GitHub App permission: organization_custom_properties (read).
Custom Properties For Repos Get Organization ValuesRead-only
List custom property values for organization repositories. Lists organization repositories with all of their custom property values. Organization members can read these properties. GitHub App permission: organization_custom_properties (read).
Delete an organization. Deletes an organization and all its repositories. GitHub App permission: organization_administration (write).
orgs.delete
Delete Attestations BulkWrite
Delete attestations in bulk. Delete artifact attestations in bulk by either subject digests or unique ID. GitHub App permission: attestations (write).
orgs.deleteAttestationsBulk
Delete Attestations By IdDestructive
Delete attestations by ID. Delete an artifact attestation by unique ID that is associated with a repository owned by an org. GitHub App permission: attestations (write).
orgs.deleteAttestationsById
Delete Attestations By Subject DigestDestructive
Delete attestations by subject digest. Delete an artifact attestation by subject digest. GitHub App permission: attestations (write).
orgs.deleteAttestationsBySubjectDigest
Delete Issue FieldDestructive
Delete issue field for an organization. Deletes an issue field for an organization. GitHub App permission: issue_fields (write).
orgs.deleteIssueField
Delete Issue TypeDestructive
Delete issue type for an organization. Deletes an issue type for an organization. GitHub App permission: issue_types (write).
orgs.deleteIssueType
Delete WebhookDestructive
Delete an organization webhook. Delete a webhook for an organization. GitHub App permission: organization_hooks (write).
Disable a selected repository for immutable releases in an organization. Removes a repository from the list of selected repositories that are enforced for immutable releases in an organization. To use this endpoint, the organization immutable releases policy for `enforced_repositories` must be configured to `selected`. GitHub App permission: organization_administration (write).
Enable a selected repository for immutable releases in an organization. Adds a repository to the list of selected repositories that are enforced for immutable releases in an organization. To use this endpoint, the organization immutable releases policy for `enforced_repositories` must be configured to `selected`. GitHub App permission: organization_administration (write).
External Properties For Repos Create Or Update Organization ValuesWrite
Create or update external custom property values for organization repositories. Create new or update existing external custom property values for repositories in a batch that belong to an organization. Each target repository will have its external custom property values updated to match the values provided in the request. GitHub App permission: organization_external_properties_for_repos (write). Not available to GitHub App user tokens: needs a personal access token.
External Properties For Repos Create Or Update Values For Organization PropertyWrite
Create or update external custom property values for a property across organization repositories. Create new or update existing external custom property values for a single named property across repositories that belong to an organization. GitHub App permission: organization_external_properties_for_repos (write). Not available to GitHub App user tokens: needs a personal access token.
External Properties For Repos Delete Organization ValuesDestructive
Remove all external custom property values for a property across all organization repositories. Removes all external custom property values for a specified property name across all repositories that belong to an organization. GitHub App permission: organization_external_properties_for_repos (write). Not available to GitHub App user tokens: needs a personal access token.
External Properties For Repos Get Organization App InstallationsRead-only
Get registered app installations for external custom properties. Gets the registered GitHub App installations used to read and write external custom properties for an organization. GitHub App permission: organization_external_properties_for_repos (admin).
External Properties For Repos Get Organization DefinitionsRead-only
Get all external custom properties for a GitHub App installation in an organization. Gets all external custom properties defined for the authenticated GitHub App installation on an organization. GitHub App permission: organization_external_properties_for_repos (read). Not available to GitHub App user tokens: needs a personal access token.
External Properties For Repos Register Organization App InstallationWrite
Register an app installation for external custom properties. Registers a GitHub App installation so it can read and write external custom properties for an organization, and assigns it a display name. GitHub App permission: organization_external_properties_for_repos (admin).
Get an organization. Gets information about an organization.
orgs.get
Get Cluster Deployment Records JobRead-only
Get cluster deployment records job status. Get the status and results of a previously created cluster deployment records job. GitHub App permission: artifact_metadata (read).
orgs.getClusterDeploymentRecordsJob
Get Immutable Releases SettingsRead-only
Get immutable releases settings for an organization. Gets the immutable releases policy for repositories in an organization. GitHub App permission: organization_administration (read).
orgs.getImmutableReleasesSettings
Get Immutable Releases Settings RepositoriesRead-only
List selected repositories for immutable releases enforcement. List all of the repositories that have been selected for immutable releases enforcement in an organization. GitHub App permission: organization_administration (read).
orgs.getImmutableReleasesSettingsRepositories
Get Membership For Authenticated UserRead-only
Get an organization membership for the authenticated user. If the authenticated user is an active or pending member of the organization, this endpoint will return the user's membership. If the authenticated user is not affiliated with the organization, a `404` is returned. This endpoint will return a `403` if the request is made by a GitHub App that is blocked by the organization. GitHub App permission: members (read).
orgs.getMembershipForAuthenticatedUser
Get Membership For UserRead-only
Get organization membership for a user. In order to get a user's membership with an organization, the authenticated user must be an organization member. The `state` parameter in the response can be used to identify the user's membership status. GitHub App permission: members (read).
orgs.getMembershipForUser
Get Org RoleRead-only
Get an organization role. Gets an organization role that is available to this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: organization_custom_org_roles (read).
orgs.getOrgRole
Get Org Ruleset HistoryRead-only
Get organization ruleset history. Get the history of an organization ruleset. GitHub App permission: organization_administration (write).
orgs.getOrgRulesetHistory
Get Org Ruleset VersionRead-only
Get organization ruleset version. Get a version of an organization ruleset. GitHub App permission: organization_administration (write).
orgs.getOrgRulesetVersion
Get WebhookRead-only
Get an organization webhook. Returns a webhook configured in an organization. To get only the webhook `config` properties, see "[Get a webhook configuration for an organization](https://docs.github.com/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization). GitHub App permission: organization_hooks (read).
orgs.getWebhook
Get Webhook Config For OrgRead-only
Get a webhook configuration for an organization. Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use "[Get an organization webhook ](https://docs.github.com/rest/orgs/webhooks#get-an-organization-webhook)." GitHub App permission: organization_hooks (read).
orgs.getWebhookConfigForOrg
Get Webhook DeliveryRead-only
Get a webhook delivery for an organization webhook. Returns a delivery for a webhook configured in an organization. GitHub App permission: organization_hooks (read).
orgs.getWebhookDelivery
ListRead-only
List organizations. Lists all organizations, in the order that they were created.
orgs.list
List App InstallationsRead-only
List app installations for an organization. Lists all GitHub Apps in an organization. The installation count includes all GitHub Apps installed on repositories in the organization. GitHub App permission: organization_administration (read).
orgs.listAppInstallations
List Artifact Deployment RecordsRead-only
List artifact deployment records. List deployment records for an artifact metadata associated with an organization. GitHub App permission: artifact_metadata (read).
orgs.listArtifactDeploymentRecords
List Artifact Storage RecordsRead-only
List artifact storage records. List artifact storage records with a given subject digest for repositories owned by an organization. GitHub App permission: artifact_metadata (read).
orgs.listArtifactStorageRecords
List Attestation RepositoriesRead-only
List attestation repositories. List repositories owned by the provided organization that have created at least one attested artifact. Results will be sorted in ascending order by repository ID. GitHub App permission: attestations (read).
orgs.listAttestationRepositories
List AttestationsRead-only
List attestations. List a collection of artifact attestations with a given subject digest that are associated with repositories owned by an organization.
orgs.listAttestations
List Attestations BulkWrite
List attestations by bulk subject digests. List a collection of artifact attestations associated with any entry in a list of subject digests owned by an organization.
orgs.listAttestationsBulk
List Blocked UsersRead-only
List users blocked by an organization. List the users blocked by an organization. GitHub App permission: organization_user_blocking (read).
orgs.listBlockedUsers
List Failed InvitationsRead-only
List failed organization invitations. The return hash contains `failed_at` and `failed_reason` fields which represent the time at which the invitation failed and the reason for the failure. GitHub App permission: members (read).
orgs.listFailedInvitations
List For Authenticated UserRead-only
List organizations for the authenticated user.
orgs.listForAuthenticatedUser
List For UserRead-only
List organizations for a user. List [public organization memberships](https://docs.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.
orgs.listForUser
List Invitation TeamsRead-only
List organization invitation teams. List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. GitHub App permission: members (read).
orgs.listInvitationTeams
List Issue FieldsRead-only
List issue fields for an organization. Lists all issue fields for an organization. OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint. GitHub App permission: issue_fields (read).
orgs.listIssueFields
List Issue TypesRead-only
List issue types for an organization. Lists all issue types for an organization. OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint. GitHub App permission: issue_types (read).
orgs.listIssueTypes
List MembersRead-only
List organization members. List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. GitHub App permission: members (read).
orgs.listMembers
List Memberships For Authenticated UserRead-only
List organization memberships for the authenticated user. Lists all of the authenticated user's organization memberships.
orgs.listMembershipsForAuthenticatedUser
List Org Role TeamsRead-only
List teams that are assigned to an organization role. Lists the teams that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: members (read).
orgs.listOrgRoleTeams
List Org Role UsersRead-only
List users that are assigned to an organization role. Lists organization members that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: members (read).
orgs.listOrgRoleUsers
List Org RolesRead-only
Get all organization roles for an organization. Lists the organization roles available in this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: organization_custom_org_roles (read).
orgs.listOrgRoles
List Outside CollaboratorsRead-only
List outside collaborators for an organization. List all users who are outside collaborators of an organization. GitHub App permission: members (read).
orgs.listOutsideCollaborators
List Pat Grant RepositoriesRead-only
List repositories a fine-grained personal access token has access to. Lists the repositories a fine-grained personal access token has access to. GitHub App permission: organization_personal_access_tokens (read).
orgs.listPatGrantRepositories
List Pat Grant Request RepositoriesRead-only
List repositories requested to be accessed by a fine-grained personal access token. Lists the repositories a fine-grained personal access token request is requesting access to. GitHub App permission: organization_personal_access_token_requests (read).
orgs.listPatGrantRequestRepositories
List Pat Grant RequestsRead-only
List requests to access organization resources with fine-grained personal access tokens. Lists requests from organization members to access organization resources with a fine-grained personal access token. GitHub App permission: organization_personal_access_token_requests (read).
orgs.listPatGrantRequests
List Pat GrantsRead-only
List fine-grained personal access tokens with access to organization resources. Lists approved fine-grained personal access tokens owned by organization members that can access organization resources. GitHub App permission: organization_personal_access_tokens (read).
orgs.listPatGrants
List Pending InvitationsRead-only
List pending organization invitations. The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. GitHub App permission: members (read).
orgs.listPendingInvitations
List Public MembersRead-only
List public organization members. Members of an organization can choose to have their membership publicized or not. GitHub App permission: members (read).
orgs.listPublicMembers
List Webhook DeliveriesRead-only
List deliveries for an organization webhook. Returns a list of webhook deliveries for a webhook configured in an organization. GitHub App permission: organization_hooks (read).
orgs.listWebhookDeliveries
List WebhooksRead-only
List organization webhooks. List webhooks for an organization. GitHub App permission: organization_hooks (read).
orgs.listWebhooks
Ping WebhookWrite
Ping an organization webhook. This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook. GitHub App permission: organization_hooks (write).
orgs.pingWebhook
Redeliver Webhook DeliveryWrite
Redeliver a delivery for an organization webhook. Redeliver a delivery for a webhook configured in an organization. GitHub App permission: organization_hooks (write).
orgs.redeliverWebhookDelivery
Remove MemberDestructive
Remove an organization member. Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. GitHub App permission: members (write).
orgs.removeMember
Remove Membership For UserDestructive
Remove organization membership for a user. In order to remove a user's membership with an organization, the authenticated user must be an organization owner. GitHub App permission: members (write).
orgs.removeMembershipForUser
Remove Outside CollaboratorDestructive
Remove outside collaborator from an organization. Removing a user from this list will remove them from all the organization's repositories. GitHub App permission: members (write).
orgs.removeOutsideCollaborator
Remove Public Membership For Authenticated UserDestructive
Remove public organization membership for the authenticated user. Removes the public membership for the authenticated user from the specified organization, unless public visibility is enforced by default. GitHub App permission: members (write).
orgs.removePublicMembershipForAuthenticatedUser
Review Pat Grant RequestWrite
Review a request to access organization resources with a fine-grained personal access token. Approves or denies a pending request to access organization resources via a fine-grained personal access token. GitHub App permission: organization_personal_access_token_requests (write).
orgs.reviewPatGrantRequest
Review Pat Grant Requests In BulkWrite
Review requests to access organization resources with fine-grained personal access tokens. Approves or denies multiple pending requests to access organization resources via a fine-grained personal access token. GitHub App permission: organization_personal_access_token_requests (write).
orgs.reviewPatGrantRequestsInBulk
Revoke All Org Roles TeamDestructive
Remove all organization roles for a team. Removes all assigned organization roles from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: members (write).
orgs.revokeAllOrgRolesTeam
Revoke All Org Roles UserDestructive
Remove all organization roles for a user. Revokes all assigned organization roles from a user. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: members (write).
orgs.revokeAllOrgRolesUser
Revoke Org Role TeamDestructive
Remove an organization role from a team. Removes an organization role from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: members (write).
orgs.revokeOrgRoleTeam
Revoke Org Role UserDestructive
Remove an organization role from a user. Remove an organization role from a user. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." GitHub App permission: members (write).
orgs.revokeOrgRoleUser
Set Cluster Deployment RecordsWrite
Set cluster deployment records. Set deployment records for a given cluster. If proposed records in the 'deployments' field have identical 'cluster', 'logical_environment', 'physical_environment', and 'deployment_name' values as existing records, the existing records will be updated. If no existing records match, new records will be created. GitHub App permission: artifact_metadata (write).
orgs.setClusterDeploymentRecords
Set Immutable Releases SettingsWrite
Set immutable releases settings for an organization. Sets the immutable releases policy for repositories in an organization. GitHub App permission: organization_administration (write).
orgs.setImmutableReleasesSettings
Set Immutable Releases Settings RepositoriesWrite
Set selected repositories for immutable releases enforcement. Replaces all repositories that have been selected for immutable releases enforcement in an organization. To use this endpoint, the organization immutable releases policy for `enforced_repositories` must be configured to `selected`. GitHub App permission: organization_administration (write).
orgs.setImmutableReleasesSettingsRepositories
Set Membership For UserWrite
Set organization membership for a user. Only authenticated organization owners can add a member to the organization or update the member's role. GitHub App permission: members (write).
orgs.setMembershipForUser
Set Public Membership For Authenticated UserWrite
Set public organization membership for the authenticated user. The user can publicize their own membership. (A user cannot publicize the membership for another user.) GitHub App permission: members (write).
orgs.setPublicMembershipForAuthenticatedUser
Unblock UserDestructive
Unblock a user from an organization. Unblocks the given user on behalf of the specified organization. GitHub App permission: organization_user_blocking (write).
orgs.unblockUser
UpdateWrite
Update an organization. > [!WARNING] > **Closing down notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. GitHub App permission: organization_administration (write).
orgs.update
Update Issue FieldWrite
Update issue field for an organization. Updates an issue field for an organization. GitHub App permission: issue_fields (write).
orgs.updateIssueField
Update Issue TypeWrite
Update issue type for an organization. Updates an issue type for an organization. GitHub App permission: issue_types (write).
orgs.updateIssueType
Update Membership For Authenticated UserWrite
Update an organization membership for the authenticated user. Converts the authenticated user to an active member of the organization, if that user has a pending invitation from the organization. GitHub App permission: members (write).
orgs.updateMembershipForAuthenticatedUser
Update Pat AccessWrite
Update the access a fine-grained personal access token has to organization resources. Updates the access an organization member has to organization resources via a fine-grained personal access token. Limited to revoking the token's existing access. Limited to revoking a token's existing access. GitHub App permission: organization_personal_access_tokens (write).
orgs.updatePatAccess
Update Pat AccessesWrite
Update the access to organization resources via fine-grained personal access tokens. Updates the access organization members have to organization resources via fine-grained personal access tokens. Limited to revoking a token's existing access. GitHub App permission: organization_personal_access_tokens (write).
orgs.updatePatAccesses
Update WebhookWrite
Update an organization webhook. Updates a webhook configured in an organization. When you update a webhook, the `secret` will be overwritten. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. GitHub App permission: organization_hooks (write).
orgs.updateWebhook
Update Webhook Config For OrgWrite
Update a webhook configuration for an organization. Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use "[Update an organization webhook ](https://docs.github.com/rest/orgs/webhooks#update-an-organization-webhook)." GitHub App permission: organization_hooks (write).
orgs.updateWebhookConfigForOrg
Users
Add Email For Authenticated UserWrite
Add an email address for the authenticated user. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. GitHub App permission: emails (write).
users.addEmailForAuthenticatedUser
Add Social Account For Authenticated UserWrite
Add social accounts for the authenticated user. Add one or more social accounts to the authenticated user's profile. GitHub App permission: profile (write).
users.addSocialAccountForAuthenticatedUser
BlockDestructive
Block a user. Blocks the given user and returns a 204. If the authenticated user cannot block the given user a 422 is returned. GitHub App permission: blocking (write).
users.block
Check BlockedRead-only
Check if a user is blocked by the authenticated user. Returns a 204 if the given user is blocked by the authenticated user. Returns a 404 if the given user is not blocked by the authenticated user, or if the given user account has been identified as spam by GitHub. GitHub App permission: blocking (read).
users.checkBlocked
Check Following For UserRead-only
Check if a user follows another user.
users.checkFollowingForUser
Check Person Is Followed By AuthenticatedRead-only
Check if a person is followed by the authenticated user. GitHub App permission: followers (read).
users.checkPersonIsFollowedByAuthenticated
Create Gpg Key For Authenticated UserWrite
Create a GPG key for the authenticated user. Adds a GPG key to the authenticated user's GitHub account. GitHub App permission: gpg_keys (write).
users.createGpgKeyForAuthenticatedUser
Create Issue Field For Authenticated UserWrite
Create an issue field. Creates a new issue field for the authenticated user's personal account. GitHub App permission: user_issue_fields (write).
users.createIssueFieldForAuthenticatedUser
Create Issue Type For Authenticated UserWrite
Create an issue type. Creates a new issue type for the authenticated user's personal account. GitHub App permission: user_issue_types (write).
users.createIssueTypeForAuthenticatedUser
Create Public Ssh Key For Authenticated UserWrite
Create a public SSH key for the authenticated user. Adds a public SSH key to the authenticated user's GitHub account. GitHub App permission: keys (write).
users.createPublicSshKeyForAuthenticatedUser
Create Ssh Signing Key For Authenticated UserWrite
Create a SSH signing key for the authenticated user. Creates an SSH signing key for the authenticated user's GitHub account. GitHub App permission: git_signing_ssh_public_keys (write).
users.createSshSigningKeyForAuthenticatedUser
Delete Attestations BulkWrite
Delete attestations in bulk. Delete artifact attestations in bulk by either subject digests or unique ID. GitHub App permission: attestations (write).
users.deleteAttestationsBulk
Delete Attestations By IdDestructive
Delete attestations by ID. Delete an artifact attestation by unique ID that is associated with a repository owned by a user. GitHub App permission: attestations (write).
users.deleteAttestationsById
Delete Attestations By Subject DigestDestructive
Delete attestations by subject digest. Delete an artifact attestation by subject digest. GitHub App permission: attestations (write).
users.deleteAttestationsBySubjectDigest
Delete Email For Authenticated UserDestructive
Delete an email address for the authenticated user. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. GitHub App permission: emails (write).
users.deleteEmailForAuthenticatedUser
Delete Gpg Key For Authenticated UserDestructive
Delete a GPG key for the authenticated user. Removes a GPG key from the authenticated user's GitHub account. GitHub App permission: gpg_keys (write).
users.deleteGpgKeyForAuthenticatedUser
Delete Issue Field For Authenticated UserDestructive
Delete an issue field. Deletes an issue field for the authenticated user. GitHub App permission: user_issue_fields (write).
users.deleteIssueFieldForAuthenticatedUser
Delete Issue Type For Authenticated UserDestructive
Delete an issue type. Deletes an issue type for the authenticated user. GitHub App permission: user_issue_types (write).
users.deleteIssueTypeForAuthenticatedUser
Delete Public Ssh Key For Authenticated UserDestructive
Delete a public SSH key for the authenticated user. Removes a public SSH key from the authenticated user's GitHub account. GitHub App permission: keys (write).
users.deletePublicSshKeyForAuthenticatedUser
Delete Social Account For Authenticated UserDestructive
Delete social accounts for the authenticated user. Deletes one or more social accounts from the authenticated user's profile. GitHub App permission: profile (write).
users.deleteSocialAccountForAuthenticatedUser
Delete Ssh Signing Key For Authenticated UserDestructive
Delete an SSH signing key for the authenticated user. Deletes an SSH signing key from the authenticated user's GitHub account. GitHub App permission: git_signing_ssh_public_keys (write).
users.deleteSshSigningKeyForAuthenticatedUser
FollowWrite
Follow a user. Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." GitHub App permission: followers (write).
users.follow
GetRead-only
Get a user by username
users.get
Get AuthenticatedRead-only
Get the authenticated user
users.getAuthenticated
Get By IdRead-only
Get a user by account ID
users.getById
Get Gpg Key For Authenticated UserRead-only
Get a GPG key for the authenticated user. View extended details for a single GPG key. GitHub App permission: gpg_keys (read).
users.getGpgKeyForAuthenticatedUser
Get HovercardRead-only
Get contextual hovercard information for a user
users.getHovercard
Get Public Ssh Key For Authenticated UserRead-only
Get a public SSH key for the authenticated user. View extended details for a single public SSH key. GitHub App permission: keys (read).
users.getPublicSshKeyForAuthenticatedUser
Get Ssh Signing Key For Authenticated UserRead-only
Get an SSH signing key for the authenticated user. Gets extended details for an SSH signing key. GitHub App permission: git_signing_ssh_public_keys (read).
users.getSshSigningKeyForAuthenticatedUser
ListRead-only
Every GitHub account in id order, paged by since (a user id). To find a person use search.users or users.get.
users.list
List AttestationsRead-only
List attestations. List a collection of artifact attestations with a given subject digest that are associated with repositories owned by a user.
users.listAttestations
List Attestations BulkWrite
List attestations by bulk subject digests. List a collection of artifact attestations associated with any entry in a list of subject digests owned by a user.
users.listAttestationsBulk
List Blocked By Authenticated UserRead-only
List users blocked by the authenticated user. List the users you've blocked on your personal account. GitHub App permission: blocking (read).
users.listBlockedByAuthenticatedUser
List Emails For Authenticated UserRead-only
List email addresses for the authenticated user. Lists all of your email addresses, and specifies which one is visible to the public. GitHub App permission: emails (read).
users.listEmailsForAuthenticatedUser
List Followed By Authenticated UserRead-only
List the people the authenticated user follows. Lists the people who the authenticated user follows. GitHub App permission: followers (read).
users.listFollowedByAuthenticatedUser
List Followers For Authenticated UserRead-only
List followers of the authenticated user. Lists the people following the authenticated user. GitHub App permission: followers (read).
users.listFollowersForAuthenticatedUser
List Followers For UserRead-only
List followers of a user. Lists the people following the specified user.
users.listFollowersForUser
List Following For UserRead-only
List the people a user follows. Lists the people who the specified user follows.
users.listFollowingForUser
List Gpg Keys For Authenticated UserRead-only
List GPG keys for the authenticated user. Lists the current user's GPG keys. GitHub App permission: gpg_keys (read).
users.listGpgKeysForAuthenticatedUser
List Gpg Keys For UserRead-only
List GPG keys for a user. Lists the GPG keys for a user. This information is accessible by anyone.
users.listGpgKeysForUser
List Issue Fields For Authenticated UserRead-only
List issue fields. Lists all issue fields for the authenticated user. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint. GitHub App permission: user_issue_fields (read).
users.listIssueFieldsForAuthenticatedUser
List Issue Types For Authenticated UserRead-only
List issue types. Lists all issue types for the authenticated user. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint. GitHub App permission: user_issue_types (read).
users.listIssueTypesForAuthenticatedUser
List Public Emails For Authenticated UserRead-only
List public email addresses for the authenticated user. Lists your publicly visible email address, which you can set with the [Set primary email visibility for the authenticated user](https://docs.github.com/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user) endpoint. GitHub App permission: emails (read).
users.listPublicEmailsForAuthenticatedUser
List Public Keys For UserRead-only
List public keys for a user. Lists the _verified_ public SSH keys for a user. This is accessible by anyone. GitHub App permission: keys (read).
users.listPublicKeysForUser
List Public Ssh Keys For Authenticated UserRead-only
List public SSH keys for the authenticated user. Lists the public SSH keys for the authenticated user's GitHub account. GitHub App permission: keys (read).
users.listPublicSshKeysForAuthenticatedUser
List Social Accounts For Authenticated UserRead-only
List social accounts for the authenticated user. Lists all of your social accounts.
users.listSocialAccountsForAuthenticatedUser
List Social Accounts For UserRead-only
List social accounts for a user. Lists social media accounts for a user. This endpoint is accessible by anyone.
users.listSocialAccountsForUser
List Ssh Signing Keys For Authenticated UserRead-only
List SSH signing keys for the authenticated user. Lists the SSH signing keys for the authenticated user's GitHub account. GitHub App permission: git_signing_ssh_public_keys (read).
users.listSshSigningKeysForAuthenticatedUser
List Ssh Signing Keys For UserRead-only
List SSH signing keys for a user. Lists the SSH signing keys for a user. This operation is accessible by anyone.
users.listSshSigningKeysForUser
Set Primary Email Visibility For Authenticated UserWrite
Set primary email visibility for the authenticated user. Sets the visibility for your primary email addresses. GitHub App permission: emails (write).
Unblock a user. Unblocks the given user and returns a 204. GitHub App permission: blocking (write).
users.unblock
UnfollowDestructive
Unfollow a user. OAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint. GitHub App permission: followers (write).
users.unfollow
UpdateWrite
Update the authenticated user profile
users.update
Update Issue Field For Authenticated UserWrite
Update an issue field. Updates an issue field for the authenticated user. GitHub App permission: user_issue_fields (write).
users.updateIssueFieldForAuthenticatedUser
Update Issue Type For Authenticated UserWrite
Update an issue type. Updates an issue type for the authenticated user. GitHub App permission: user_issue_types (write).
users.updateIssueTypeForAuthenticatedUser
Codespaces
Add Repository For Secret For Authenticated UserWrite
Add a selected repository to a user secret. Adds a repository to the selected repositories for a user's development environment secret. GitHub App permission: codespaces_user_secrets (write).
Add selected repository to an organization secret. Adds a repository to an organization development environment secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret). GitHub App permission: organization_codespaces_secrets (write).
codespaces.addSelectedRepoToOrgSecret
Check Permissions For DevcontainerRead-only
Check if permissions defined by a devcontainer have been accepted by the authenticated user. Checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user. GitHub App permission: codespaces (write).
codespaces.checkPermissionsForDevcontainer
Codespace Machines For Authenticated UserRead-only
List machine types for a codespace. List the machine types a codespace can transition to use. GitHub App permission: codespaces_metadata (read).
codespaces.codespaceMachinesForAuthenticatedUser
Create For Authenticated UserDestructive
Create a codespace for the authenticated user. Creates a new codespace, owned by the authenticated user. GitHub App permission: codespaces (write).
codespaces.createForAuthenticatedUser
Create Or Update Org SecretWrite
Create or update an organization secret. Creates or updates an organization development environment secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: organization_codespaces_secrets (write).
codespaces.createOrUpdateOrgSecret
Create Or Update Repo SecretWrite
Create or update a repository secret. Creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: codespaces_secrets (write).
codespaces.createOrUpdateRepoSecret
Create Or Update Secret For Authenticated UserWrite
Create or update a secret for the authenticated user. Creates or updates a development environment secret for a user's codespace with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: codespaces_user_secrets (write).
Create a codespace from a pull request. Creates a codespace owned by the authenticated user for the specified pull request. GitHub App permission: codespaces (write).
codespaces.createWithPrForAuthenticatedUser
Create With Repo For Authenticated UserDestructive
Create a codespace in a repository. Creates a codespace owned by the authenticated user in the specified repository. GitHub App permission: codespaces (write).
codespaces.createWithRepoForAuthenticatedUser
Delete For Authenticated UserDestructive
Delete a codespace for the authenticated user. Deletes a user's codespace. GitHub App permission: codespaces (write).
codespaces.deleteForAuthenticatedUser
Delete From OrganizationDestructive
Delete a codespace from the organization. Deletes a user's codespace. GitHub App permission: organization_codespaces (write), codespaces (write).
codespaces.deleteFromOrganization
Delete Org SecretDestructive
Delete an organization secret. Deletes an organization development environment secret using the secret name. GitHub App permission: organization_codespaces_secrets (write).
codespaces.deleteOrgSecret
Delete Repo SecretDestructive
Delete a repository secret. Deletes a development environment secret in a repository using the secret name. GitHub App permission: codespaces_secrets (write).
codespaces.deleteRepoSecret
Delete Secret For Authenticated UserDestructive
Delete a secret for the authenticated user. Deletes a development environment secret from a user's codespaces using the secret name. Deleting the secret will remove access from all codespaces that were allowed to access the secret. GitHub App permission: codespaces_user_secrets (write).
codespaces.deleteSecretForAuthenticatedUser
Export For Authenticated UserWrite
Export a codespace for the authenticated user. Triggers an export of the specified codespace and returns a URL and ID where the status of the export can be monitored. GitHub App permission: codespaces_lifecycle_admin (write).
codespaces.exportForAuthenticatedUser
Get Codespaces For User In OrgRead-only
List codespaces for a user in organization. Lists the codespaces that a member of an organization has for repositories in that organization. GitHub App permission: organization_codespaces (read), codespaces (read).
codespaces.getCodespacesForUserInOrg
Get Export Details For Authenticated UserRead-only
Get details about a codespace export. Gets information about an export of a codespace. GitHub App permission: codespaces_lifecycle_admin (read).
codespaces.getExportDetailsForAuthenticatedUser
Get For Authenticated UserRead-only
Get a codespace for the authenticated user. Gets information about a user's codespace. GitHub App permission: codespaces (read).
codespaces.getForAuthenticatedUser
Get Org Public KeyRead-only
Get an organization public key. Gets a public key for an organization, which is required in order to encrypt secrets. You need to encrypt the value of a secret before you can create or update secrets. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. GitHub App permission: organization_codespaces_secrets (read).
codespaces.getOrgPublicKey
Get Org SecretRead-only
Get an organization secret. Gets an organization development environment secret without revealing its encrypted value. GitHub App permission: organization_codespaces_secrets (read).
codespaces.getOrgSecret
Get Public Key For Authenticated UserRead-only
Get public key for the authenticated user. Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: codespaces_user_secrets (read).
codespaces.getPublicKeyForAuthenticatedUser
Get Repo Public KeyRead-only
Get a repository public key. Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: codespaces_secrets (write).
codespaces.getRepoPublicKey
Get Repo SecretRead-only
Get a repository secret. Gets a single repository development environment secret without revealing its encrypted value. GitHub App permission: codespaces_secrets (write).
codespaces.getRepoSecret
Get Secret For Authenticated UserRead-only
Get a secret for the authenticated user. Gets a development environment secret available to a user's codespaces without revealing its encrypted value. GitHub App permission: codespaces_user_secrets (read).
codespaces.getSecretForAuthenticatedUser
List Devcontainers In Repository For Authenticated UserRead-only
List devcontainer configurations in a repository for the authenticated user. Lists the devcontainer.json files associated with a specified repository and the authenticated user. These files specify launchpoint configurations for codespaces created within the repository. GitHub App permission: codespaces_metadata (read).
List codespaces for the authenticated user. Lists the authenticated user's codespaces. GitHub App permission: codespaces (read).
codespaces.listForAuthenticatedUser
List In OrganizationRead-only
List codespaces for the organization. Lists the codespaces associated to a specified organization. GitHub App permission: organization_codespaces (read), codespaces (read).
codespaces.listInOrganization
List In Repository For Authenticated UserRead-only
List codespaces in a repository for the authenticated user. Lists the codespaces associated to a specified repository and the authenticated user. GitHub App permission: codespaces (read).
codespaces.listInRepositoryForAuthenticatedUser
List Org SecretsRead-only
List organization secrets. Lists all Codespaces development environment secrets available at the organization-level without revealing their encrypted values. GitHub App permission: organization_codespaces_secrets (read).
codespaces.listOrgSecrets
List Repo SecretsRead-only
List repository secrets. Lists all development environment secrets available in a repository without revealing their encrypted values. GitHub App permission: codespaces_secrets (write).
codespaces.listRepoSecrets
List Repositories For Secret For Authenticated UserRead-only
List selected repositories for a user secret. List the repositories that have been granted the ability to use a user's development environment secret. GitHub App permission: codespaces_user_secrets (read).
List secrets for the authenticated user. Lists all development environment secrets available for a user's codespaces without revealing their encrypted values. GitHub App permission: codespaces_user_secrets (read).
codespaces.listSecretsForAuthenticatedUser
List Selected Repos For Org SecretRead-only
List selected repositories for an organization secret. Lists all repositories that have been selected when the `visibility` for repository access to a secret is set to `selected`. GitHub App permission: organization_codespaces_secrets (read).
codespaces.listSelectedReposForOrgSecret
Pre Flight With Repo For Authenticated UserRead-only
Get default attributes for a codespace. Gets the default attributes for codespaces created by the user with the repository. GitHub App permission: codespaces (write).
codespaces.preFlightWithRepoForAuthenticatedUser
Publish For Authenticated UserWrite
Create a repository from an unpublished codespace. Publishes an unpublished codespace, creating a new repository and assigning it to the codespace. GitHub App permission: codespaces (write).
codespaces.publishForAuthenticatedUser
Remove Repository For Secret For Authenticated UserDestructive
Remove a selected repository from a user secret. Removes a repository from the selected repositories for a user's development environment secret. GitHub App permission: codespaces_user_secrets (write).
Remove selected repository from an organization secret. Removes a repository from an organization development environment secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret). GitHub App permission: organization_codespaces_secrets (write).
codespaces.removeSelectedRepoFromOrgSecret
Repo Machines For Authenticated UserRead-only
List available machine types for a repository. List the machine types available for a given repository based on its configuration. GitHub App permission: codespaces_metadata (read).
codespaces.repoMachinesForAuthenticatedUser
Set Repositories For Secret For Authenticated UserWrite
Set selected repositories for a user secret. Select the repositories that will use a user's development environment secret. GitHub App permission: codespaces_user_secrets (write).
Set selected repositories for an organization secret. Replaces all repositories for an organization development environment secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret). GitHub App permission: organization_codespaces_secrets (write).
codespaces.setSelectedReposForOrgSecret
Start For Authenticated UserWrite
Start a codespace for the authenticated user. Starts a user's codespace. GitHub App permission: codespaces_lifecycle_admin (write).
codespaces.startForAuthenticatedUser
Stop For Authenticated UserWrite
Stop a codespace for the authenticated user. Stops a user's codespace. GitHub App permission: codespaces_lifecycle_admin (write).
codespaces.stopForAuthenticatedUser
Stop In OrganizationWrite
Stop a codespace for an organization user. Stops a user's codespace. GitHub App permission: organization_codespaces (write), codespaces_lifecycle_admin (write).
codespaces.stopInOrganization
Update For Authenticated UserWrite
Update a codespace for the authenticated user. Updates a codespace owned by the authenticated user. Currently only the codespace's machine type and recent folders can be modified using this endpoint. GitHub App permission: codespaces (write).
codespaces.updateForAuthenticatedUser
Copilot
Add Copilot Seats For TeamsDestructive
Add teams to the Copilot subscription for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_administration (write), organization_copilot_seat_management (write).
copilot.addCopilotSeatsForTeams
Add Copilot Seats For UsersDestructive
Add users to the Copilot subscription for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_administration (write), organization_copilot_seat_management (write).
copilot.addCopilotSeatsForUsers
Add Organizations To Enterprise Coding Agent PolicyWrite
Add organizations to the enterprise coding agent policy. Enables Copilot cloud agent for the specified organizations within the enterprise. GitHub App permission: enterprise_ai_controls (write).
Cancel Copilot Seat Assignment For TeamsDestructive
Remove teams from the Copilot subscription for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_administration (write), organization_copilot_seat_management (write).
copilot.cancelCopilotSeatAssignmentForTeams
Cancel Copilot Seat Assignment For UsersDestructive
Remove users from the Copilot subscription for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_administration (write), organization_copilot_seat_management (write).
copilot.cancelCopilotSeatAssignmentForUsers
Copilot Content Exclusion For OrganizationRead-only
Get Copilot content exclusion rules for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: org_copilot_content_exclusion (read).
copilot.copilotContentExclusionForOrganization
Copilot Enterprise One Day Usage MetricsRead-only
Get Copilot enterprise usage metrics for a specific day. Use this endpoint to retrieve download links for the Copilot enterprise usage metrics report for a specific day. The report provides comprehensive usage data for Copilot features across the enterprise. GitHub App permission: enterprise_copilot_metrics (read).
copilot.copilotEnterpriseOneDayUsageMetrics
Copilot Enterprise Repos One Day ReportRead-only
Get Copilot enterprise repository report for a specific day. Use this endpoint to retrieve download links for the Copilot enterprise repository report for a specific day. The report provides per-repository pull request metrics for Copilot across the enterprise, with one entry per repository. GitHub App permission: enterprise_copilot_metrics (read).
copilot.copilotEnterpriseReposOneDayReport
Copilot Enterprise Usage MetricsRead-only
Get Copilot enterprise usage metrics. Use this endpoint to retrieve download links for the latest 28-day enterprise Copilot usage metrics report. The report provides comprehensive usage data for Copilot features across the enterprise. GitHub App permission: enterprise_copilot_metrics (read).
copilot.copilotEnterpriseUsageMetrics
Copilot Enterprise User Teams One Day ReportRead-only
Get Copilot enterprise user-teams report for a specific day. Use this endpoint to retrieve download links for the Copilot enterprise user-teams report for a specific day. The report provides user-team join data for Copilot across the enterprise, with one entry per user-team pair. GitHub App permission: enterprise_copilot_metrics (read).
copilot.copilotEnterpriseUserTeamsOneDayReport
Copilot Organization One Day Usage MetricsRead-only
Get Copilot organization usage metrics for a specific day. Use this endpoint to retrieve download links for the Copilot organization usage metrics report for a specific day. The report provides comprehensive usage data for Copilot features across the organization. GitHub App permission: organization_copilot_metrics (read).
copilot.copilotOrganizationOneDayUsageMetrics
Copilot Organization Repos One Day ReportRead-only
Get Copilot organization repository report for a specific day. Use this endpoint to retrieve download links for the Copilot organization repository report for a specific day. The report provides per-repository pull request metrics for Copilot across the organization, with one entry per repository. GitHub App permission: organization_copilot_metrics (read).
copilot.copilotOrganizationReposOneDayReport
Copilot Organization Usage MetricsRead-only
Get Copilot organization usage metrics. Use this endpoint to retrieve download links for the latest 28-day organization Copilot usage metrics report. The report provides comprehensive usage data for Copilot features across the organization. GitHub App permission: organization_copilot_metrics (read).
copilot.copilotOrganizationUsageMetrics
Copilot Organization User Teams One Day ReportRead-only
Get Copilot organization user-teams report for a specific day. Use this endpoint to retrieve download links for the Copilot organization user-teams report for a specific day. The report provides user-team join data for Copilot across the organization, with one entry per user-team pair. GitHub App permission: organization_copilot_metrics (read).
copilot.copilotOrganizationUserTeamsOneDayReport
Copilot Organization Users One Day Usage MetricsRead-only
Get Copilot organization users usage metrics for a specific day. Use this endpoint to retrieve download links for the Copilot organization user usage metrics report for a specific day. The report provides detailed user-level usage data and engagement metrics for Copilot features across the organization. GitHub App permission: organization_copilot_metrics (read).
Get Copilot organization users usage metrics. Use this endpoint to retrieve download links for the latest 28-day organization users Copilot usage metrics report. The report provides detailed user-level usage data and engagement metrics for Copilot features across the organization. GitHub App permission: organization_copilot_metrics (read).
copilot.copilotOrganizationUsersUsageMetrics
Copilot Users One Day Usage MetricsRead-only
Get Copilot users usage metrics for a specific day. Use this endpoint to retrieve download links for the Copilot user usage metrics report for a specific day. The report provides detailed user-level usage data and engagement metrics for Copilot features across the enterprise. GitHub App permission: enterprise_copilot_metrics (read).
copilot.copilotUsersOneDayUsageMetrics
Copilot Users Usage MetricsRead-only
Get Copilot users usage metrics. Use this endpoint to retrieve download links for the latest 28-day enterprise users Copilot usage metrics report. The report provides detailed user-level usage data and engagement metrics for Copilot features across the enterprise. GitHub App permission: enterprise_copilot_metrics (read).
copilot.copilotUsersUsageMetrics
Delete Copilot Team CustomizationsDestructive
Delete Copilot customizations for a team. Deletes the GitHub-managed Copilot customization document for an organization team. Enterprise teams are not supported. Returns `204` with no response body, including when the team has no customization document. GitHub App permission: organization_copilot_agent_settings (write).
copilot.deleteCopilotTeamCustomizations
Disable Copilot Coding Agent For Repository In OrganizationDestructive
Disable a repository for Copilot cloud agent in an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_copilot_agent_settings (write).
Enable Copilot Coding Agent For Repository In OrganizationWrite
Enable a repository for Copilot cloud agent in an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_copilot_agent_settings (write).
Get Copilot cloud agent configuration for a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: copilot_agent_settings (read).
copilot.getCopilotCloudAgentConfiguration
Get Copilot Coding Agent Permissions OrganizationRead-only
Get Copilot cloud agent permissions for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_copilot_agent_settings (read).
Get Copilot seat information and settings for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_administration (read), organization_copilot_seat_management (read).
copilot.getCopilotOrganizationDetails
Get Copilot Seat Details For UserRead-only
Get Copilot seat assignment details for a user. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_administration (read), organization_copilot_seat_management (read).
copilot.getCopilotSeatDetailsForUser
Get Copilot Team CustomizationsRead-only
Get Copilot customizations for a team. Gets the GitHub-managed Copilot customization document for an organization team. Returns `404` if the team has no customization document. Enterprise teams are not supported. GitHub App permission: organization_copilot_agent_settings (read).
copilot.getCopilotTeamCustomizations
Get Enterprise Code Review PolicyRead-only
Get the Copilot code review policy for an enterprise. Gets the configured Copilot code review policy for an enterprise. This does not return a user's effective access, preview approval controls, or automatic-review rulesets. Not available to GitHub App user tokens: needs a personal access token.
copilot.getEnterpriseCodeReviewPolicy
Get Organization Code Review PolicyRead-only
Get the Copilot code review policy for an organization. Gets the configured and effective Copilot code review policy for an organization, whether organization administrators can edit it, and whether the enterprise or the organization manages it. This does not return review effort, repository settings, preview approval controls, or automatic-review rulesets. Not available to GitHub App user tokens: needs a personal access token.
copilot.getOrganizationCodeReviewPolicy
Get Organization Code Review RunnerRead-only
Get the Copilot code review runner configuration for an organization. Gets the runner configuration that Copilot code review uses for an organization. Until the organization saves a Copilot code review runner configuration, the response reports the values inherited from the organization's Copilot coding agent runner configuration, with `configured_by` set to `coding_agent`. Not available to GitHub App user tokens: needs a personal access token.
copilot.getOrganizationCodeReviewRunner
Get Organization Code Review SettingsRead-only
Get Copilot code review settings for an organization. Gets the Copilot code review settings for an organization. Currently this is the default review effort that repositories in the organization use when they do not choose their own. Not available to GitHub App user tokens: needs a personal access token.
copilot.getOrganizationCodeReviewSettings
Get Repository Code Review SettingsRead-only
Get Copilot code review settings for a repository. Gets the Copilot code review settings for a repository. These settings tune how Copilot code review reviews pull requests in the repository. They do not enable Copilot code review. GitHub App permission: administration (read).
copilot.getRepositoryCodeReviewSettings
List Copilot Coding Agent Selected Repositories For OrganizationRead-only
List repositories enabled for Copilot cloud agent in an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_copilot_agent_settings (read).
List all Copilot seat assignments for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_administration (read), organization_copilot_seat_management (read).
copilot.listCopilotSeats
Remove Organizations From Enterprise Coding Agent PolicyDestructive
Remove organizations from the enterprise coding agent policy. Disables Copilot cloud agent for the specified organizations within the enterprise. GitHub App permission: enterprise_ai_controls (write).
Set Copilot Coding Agent Permissions OrganizationWrite
Set Copilot cloud agent permissions for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_copilot_agent_settings (write).
Set Copilot Coding Agent Selected Repositories For OrganizationWrite
Set selected repositories for Copilot cloud agent in an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_copilot_agent_settings (write).
Set Copilot Content Exclusion For OrganizationWrite
Set Copilot content exclusion rules for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: org_copilot_content_exclusion (write).
copilot.setCopilotContentExclusionForOrganization
Set Copilot Team CustomizationsWrite
Set Copilot customizations for a team. Replaces the entire GitHub-managed Copilot customization document for an organization team, creating it on the first write. The request body is the customization document itself. Include every plugin assignment and marketplace you want to keep. GitHub App permission: organization_copilot_agent_settings (write).
copilot.setCopilotTeamCustomizations
Set Enterprise Code Review PolicyWrite
Set the Copilot code review policy for an enterprise. Sets the configured Copilot code review policy for an enterprise, using the same asynchronous propagation and notifications as enterprise settings. Policies that depend on Copilot code review keep their values. Not available to GitHub App user tokens: needs a personal access token.
copilot.setEnterpriseCodeReviewPolicy
Set Enterprise Coding Agent PolicyWrite
Set the coding agent policy for an enterprise. Sets the policy for Copilot cloud agent usage across an enterprise. GitHub App permission: enterprise_ai_controls (write).
copilot.setEnterpriseCodingAgentPolicy
Set Organization Code Review PolicyWrite
Set the Copilot code review policy for an organization. Sets the Copilot code review policy for an organization, using the same user settings propagation and notifications as organization settings. Policies that depend on Copilot code review keep their values. Not available to GitHub App user tokens: needs a personal access token.
copilot.setOrganizationCodeReviewPolicy
Set Organization Code Review RunnerWrite
Set the Copilot code review runner configuration for an organization. Sets the runner configuration that Copilot code review uses for an organization. After a successful update, Copilot code review uses its own runner configuration and `configured_by` is `code_review`. Not available to GitHub App user tokens: needs a personal access token.
copilot.setOrganizationCodeReviewRunner
Update Organization Code Review SettingsWrite
Update Copilot code review settings for an organization. Updates the Copilot code review settings for an organization. Omitted settings are not changed. Set `default_review_effort` to `inherit` to clear the organization's value so repositories use the inherited default again. Changes use the same audit logging and telemetry as organization settings. Not available to GitHub App user tokens: needs a personal access token.
copilot.updateOrganizationCodeReviewSettings
Update Repository Code Review SettingsWrite
Update Copilot code review settings for a repository. Updates the Copilot code review settings for a repository. These settings tune how Copilot code review reviews pull requests in the repository. They do not enable Copilot code review, and they can be stored while an enterprise or organization policy disables Copilot code review. GitHub App permission: administration (write).
copilot.updateRepositoryCodeReviewSettings
Apps
Add Repo To Installation For Authenticated UserWrite
Add a repository to an app installation. Add a single repository to an installation. The authenticated user must have admin access to the repository. GitHub App permission: installation_repositories (write).
apps.addRepoToInstallationForAuthenticatedUser
Check TokenWrite
Check a token. OAuth applications and GitHub applications with OAuth authorizations can use this API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. Invalid tokens will return `404 NOT FOUND`. Needs Basic authentication with the OAuth or GitHub App's client_id and client_secret.
apps.checkToken
Create From ManifestWrite
Create a GitHub App from a manifest. Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. Not available to GitHub App user tokens: needs a personal access token.
apps.createFromManifest
Create Installation Access TokenDestructive
Create an installation access token for an app. Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.createInstallationAccessToken
Delete AuthorizationDestructive
Delete an app authorization. OAuth and GitHub application owners can revoke a grant for their application and a specific user. You must provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted. Deleting an application's grant will also delete all OAuth tokens associated with the application for the user. Needs Basic authentication with the OAuth or GitHub App's client_id and client_secret.
apps.deleteAuthorization
Delete InstallationDestructive
Delete an installation for the authenticated app. Uninstalls a GitHub App on a user, organization, or enterprise account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.deleteInstallation
Delete TokenDestructive
Delete an app token. OAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization. Needs Basic authentication with the OAuth or GitHub App's client_id and client_secret.
apps.deleteToken
Get AuthenticatedRead-only
Get the authenticated app. Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getAuthenticated
Get By SlugRead-only
Get an app. > [!NOTE] > The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).
apps.getBySlug
Get InstallationRead-only
Get an installation for the authenticated app. Enables an authenticated GitHub App to find an installation's information using the installation id. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getInstallation
Get Org InstallationRead-only
Get an organization installation for the authenticated app. Enables an authenticated GitHub App to find the organization's installation information. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getOrgInstallation
Get Repo InstallationRead-only
Get a repository installation for the authenticated app. Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getRepoInstallation
Get Subscription Plan For AccountRead-only
Get a subscription plan for an account. Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getSubscriptionPlanForAccount
Get Subscription Plan For Account StubbedRead-only
Get a subscription plan for an account (stubbed). Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getSubscriptionPlanForAccountStubbed
Get User InstallationRead-only
Get a user installation for the authenticated app. Enables an authenticated GitHub App to find the user’s installation information. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getUserInstallation
Get Webhook Config For AppRead-only
Get a webhook configuration for an app. Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](https://docs.github.com/developers/apps/creating-a-github-app)." Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getWebhookConfigForApp
Get Webhook DeliveryRead-only
Get a delivery for an app webhook. Returns a delivery for the webhook configured for a GitHub App. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.getWebhookDelivery
List Accounts For PlanRead-only
List accounts for a plan. Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.listAccountsForPlan
List Accounts For Plan StubbedRead-only
List accounts for a plan (stubbed). Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.listAccountsForPlanStubbed
List Installation Repos For Authenticated UserRead-only
List repositories accessible to the user access token. List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation. GitHub App permission: metadata (read).
apps.listInstallationReposForAuthenticatedUser
List Installation Requests For Authenticated AppRead-only
List installation requests for the authenticated app. Lists all the pending installation requests for the authenticated GitHub App. Not available to GitHub App user tokens: needs a personal access token.
apps.listInstallationRequestsForAuthenticatedApp
List InstallationsRead-only
List installations for the authenticated app. The permissions the installation has are included under the `permissions` key. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.listInstallations
List Installations For Authenticated UserRead-only
List app installations accessible to the user access token. Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.
apps.listInstallationsForAuthenticatedUser
List PlansRead-only
List plans. Lists all plans that are part of your GitHub Marketplace listing. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.listPlans
List Plans StubbedRead-only
List plans (stubbed). Lists all plans that are part of your GitHub Marketplace listing. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.listPlansStubbed
List Repos Accessible To InstallationRead-only
List repositories accessible to the app installation. List repositories that an app installation can access. Not available to GitHub App user tokens: needs a personal access token.
apps.listReposAccessibleToInstallation
List Subscriptions For Authenticated UserRead-only
List subscriptions for the authenticated user. Lists the active subscriptions for the authenticated user.
apps.listSubscriptionsForAuthenticatedUser
List Subscriptions For Authenticated User StubbedRead-only
List subscriptions for the authenticated user (stubbed). Lists the active subscriptions for the authenticated user.
apps.listSubscriptionsForAuthenticatedUserStubbed
List Webhook DeliveriesRead-only
List deliveries for an app webhook. Returns a list of webhook deliveries for the webhook configured for a GitHub App. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.listWebhookDeliveries
Redeliver Webhook DeliveryWrite
Redeliver a delivery for an app webhook. Redeliver a delivery for the webhook configured for a GitHub App. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.redeliverWebhookDelivery
Remove Repo From Installation For Authenticated UserDestructive
Remove a repository from an app installation. Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the `repository_selection` of `selected`. GitHub App permission: installation_repositories (write).
Reset a token. OAuth applications and GitHub applications with OAuth authorizations can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. Invalid tokens will return `404 NOT FOUND`. Needs Basic authentication with the OAuth or GitHub App's client_id and client_secret.
apps.resetToken
Revoke Installation Access TokenDestructive
Revoke an installation access token. Revokes the installation token you're using to authenticate as an installation and access this endpoint. Not available to GitHub App user tokens: needs a personal access token.
apps.revokeInstallationAccessToken
Scope TokenDestructive
Create a scoped access token. Use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specify which repositories the token can access and which permissions are granted to the token. Needs Basic authentication with the OAuth or GitHub App's client_id and client_secret.
apps.scopeToken
Suspend InstallationWrite
Suspend an app installation. Suspends a GitHub App on a user, organization, or enterprise account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.suspendInstallation
Unsuspend InstallationDestructive
Unsuspend an app installation. Removes a GitHub App installation suspension. Needs a GitHub App JWT, not a user, installation or personal access token.
apps.unsuspendInstallation
Update Webhook Config For AppWrite
Update a webhook configuration for an app. Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](https://docs.github.com/developers/apps/creating-a-github-app)." Needs a GitHub App JWT, not a user, installation or personal access token.
apps.updateWebhookConfigForApp
Agents
Add Selected Repo To Org SecretWrite
Add selected repository to an organization secret. Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. For more information about setting the visibility, see [Create or update an organization secret](https://docs.github.com/rest/agents/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_agent_secrets (write).
agents.addSelectedRepoToOrgSecret
Add Selected Repo To Org VariableWrite
Add selected repository to an organization variable. Adds a repository to an organization agent variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. GitHub App permission: organization_agent_variables (write).
agents.addSelectedRepoToOrgVariable
Create Or Update Org SecretWrite
Create or update an organization secret. Creates or updates an organization secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: organization_agent_secrets (write).
agents.createOrUpdateOrgSecret
Create Or Update Repo SecretWrite
Create or update a repository secret. Creates or updates a repository secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: agent_secrets (write).
agents.createOrUpdateRepoSecret
Create Org VariableWrite
Create an organization variable. Creates an organization agent variable that you can reference in a GitHub Actions workflow. GitHub App permission: organization_agent_variables (write).
agents.createOrgVariable
Create Repo VariableWrite
Create a repository variable. Creates a repository variable that you can reference in a GitHub Actions workflow. GitHub App permission: agent_variables (write).
agents.createRepoVariable
Delete Org SecretDestructive
Delete an organization secret. Deletes a secret in an organization using the secret name. GitHub App permission: organization_agent_secrets (write).
agents.deleteOrgSecret
Delete Org VariableDestructive
Delete an organization variable. Deletes an organization agent variable using the variable name. GitHub App permission: organization_agent_variables (write).
agents.deleteOrgVariable
Delete Repo SecretDestructive
Delete a repository secret. Deletes a secret in a repository using the secret name. GitHub App permission: agent_secrets (write).
agents.deleteRepoSecret
Delete Repo VariableDestructive
Delete a repository variable. Deletes a repository variable using the variable name. GitHub App permission: agent_variables (write).
agents.deleteRepoVariable
Get Org Public KeyRead-only
Get an organization public key. Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: organization_agent_secrets (read).
agents.getOrgPublicKey
Get Org SecretRead-only
Get an organization secret. Gets a single organization secret without revealing its encrypted value. GitHub App permission: organization_agent_secrets (read).
agents.getOrgSecret
Get Org VariableRead-only
Get an organization variable. Gets a specific agent variable in an organization. GitHub App permission: organization_agent_variables (read).
agents.getOrgVariable
Get Repo Public KeyRead-only
Get a repository public key. Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: agent_secrets (read).
agents.getRepoPublicKey
Get Repo SecretRead-only
Get a repository secret. Gets a single repository secret without revealing its encrypted value. GitHub App permission: agent_secrets (read).
agents.getRepoSecret
Get Repo VariableRead-only
Get a repository variable. Gets a specific variable in a repository. GitHub App permission: agent_variables (read).
agents.getRepoVariable
List Org SecretsRead-only
List organization secrets. Lists all secrets available in an organization without revealing their encrypted values. GitHub App permission: organization_agent_secrets (read).
agents.listOrgSecrets
List Org VariablesRead-only
List organization variables. Lists all agent variables available in an organization. Returned variables include their values. GitHub App permission: organization_agent_variables (read).
agents.listOrgVariables
List Repo Organization SecretsRead-only
List repository organization secrets. Lists all organization secrets shared with a repository without revealing their encrypted values. GitHub App permission: agent_secrets (read).
agents.listRepoOrganizationSecrets
List Repo Organization VariablesRead-only
List repository organization variables. Lists all organization variables shared with a repository. GitHub App permission: agent_variables (read).
agents.listRepoOrganizationVariables
List Repo SecretsRead-only
List repository secrets. Lists all secrets available in a repository without revealing their encrypted values. GitHub App permission: agent_secrets (read).
agents.listRepoSecrets
List Repo VariablesRead-only
List repository variables. Lists all repository variables. GitHub App permission: agent_variables (read).
agents.listRepoVariables
List Selected Repos For Org SecretRead-only
List selected repositories for an organization secret. Lists all repositories that have been selected when the `visibility` for repository access to a secret is set to `selected`. GitHub App permission: organization_agent_secrets (read).
agents.listSelectedReposForOrgSecret
List Selected Repos For Org VariableRead-only
List selected repositories for an organization variable. Lists all repositories that can access an organization agent variable that is available to selected repositories. GitHub App permission: organization_agent_variables (read).
agents.listSelectedReposForOrgVariable
Remove Selected Repo From Org SecretDestructive
Remove selected repository from an organization secret. Removes a repository from an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/agents/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_agent_secrets (write).
agents.removeSelectedRepoFromOrgSecret
Remove Selected Repo From Org VariableDestructive
Remove selected repository from an organization variable. Removes a repository from an organization agent variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. GitHub App permission: organization_agent_variables (write).
agents.removeSelectedRepoFromOrgVariable
Set Selected Repos For Org SecretWrite
Set selected repositories for an organization secret. Replaces all repositories for an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/agents/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_agent_secrets (write).
agents.setSelectedReposForOrgSecret
Set Selected Repos For Org VariableWrite
Set selected repositories for an organization variable. Replaces all repositories for an organization agent variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. GitHub App permission: organization_agent_variables (write).
agents.setSelectedReposForOrgVariable
Update Org VariableWrite
Update an organization variable. Updates an organization agent variable that you can reference in a GitHub Actions workflow. GitHub App permission: organization_agent_variables (write).
agents.updateOrgVariable
Update Repo VariableWrite
Update a repository variable. Updates a repository variable that you can reference in a GitHub Actions workflow. GitHub App permission: agent_variables (write).
agents.updateRepoVariable
Copilot Spaces
Add Collaborator For OrgWrite
Add a collaborator to an organization Copilot Space. Adds a collaborator (user or team) to a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to manage collaborators. GitHub App permission: organization_copilot_seat_management (write).
copilotSpaces.addCollaboratorForOrg
Add Collaborator For UserWrite
Add a collaborator to a Copilot Space for a user. Adds a collaborator to a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.addCollaboratorForUser
Create For OrgWrite
Create an organization Copilot Space. Creates a new Copilot Space owned by an organization. The authenticated user must have permissions to create spaces in the organization. GitHub App permission: organization_copilot_spaces (write).
copilotSpaces.createForOrg
Create For UserWrite
Create a Copilot Space for a user. Creates a new Copilot Space owned by a user. Only the authenticated user can create spaces for their own account. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.createForUser
Create Resource For OrgWrite
Create a resource for an organization Copilot Space. Creates a new resource in a specific Copilot Space owned by an organization. The authenticated user must have write permissions on the space. GitHub App permission: organization_copilot_spaces (write).
copilotSpaces.createResourceForOrg
Create Resource For UserWrite
Create a resource for a Copilot Space for a user. Creates a new resource in a specific Copilot Space owned by a user. The authenticated user must have write permissions on the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.createResourceForUser
Delete For OrgDestructive
Delete an organization Copilot Space. Deletes a Copilot Space owned by an organization. The authenticated user must have permissions to delete spaces in the organization. GitHub App permission: organization_copilot_spaces (write).
copilotSpaces.deleteForOrg
Delete For UserDestructive
Delete a Copilot Space for a user. Deletes a Copilot Space owned by a user. The authenticated user must be the owner of the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.deleteForUser
Delete Resource For OrgDestructive
Delete a resource from an organization Copilot Space. Deletes a resource from a specific Copilot Space owned by an organization. The authenticated user must have write permissions on the space. GitHub App permission: organization_copilot_spaces (write).
copilotSpaces.deleteResourceForOrg
Delete Resource For UserDestructive
Delete a resource from a Copilot Space for a user. Deletes a resource from a specific Copilot Space owned by a user. The authenticated user must have write permissions on the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.deleteResourceForUser
Get For OrgRead-only
Get an organization Copilot Space. Gets details about a specific Copilot Space owned by an organization. The authenticated user must have read access to the Space. GitHub App permission: organization_copilot_spaces (read).
copilotSpaces.getForOrg
Get For UserRead-only
Get a Copilot Space for a user. Gets details about a specific Copilot Space owned by a user. The authenticated user must have read access to the Space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.getForUser
Get Resource For OrgRead-only
Get a resource for an organization Copilot Space. Gets a specific resource attached to a Copilot Space owned by an organization. The authenticated user must have appropriate permissions to view the space. GitHub App permission: organization_copilot_spaces (read).
copilotSpaces.getResourceForOrg
Get Resource For UserRead-only
Get a resource for a Copilot Space for a user. Gets a specific resource attached to a Copilot Space owned by a user. The authenticated user must have appropriate permissions to view the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.getResourceForUser
List Collaborators For OrgRead-only
List collaborators for an organization Copilot Space. Lists all collaborators for a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to view collaborators. GitHub App permission: organization_copilot_seat_management (read).
copilotSpaces.listCollaboratorsForOrg
List Collaborators For UserRead-only
List collaborators for a Copilot Space for a user. Lists all collaborators for a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.listCollaboratorsForUser
List For OrgRead-only
List organization Copilot Spaces. Lists Copilot Spaces owned by an organization. The authenticated user must have read access to the organization's Copilot Spaces. GitHub App permission: organization_copilot_spaces (read).
copilotSpaces.listForOrg
List For UserRead-only
List Copilot Spaces for a user. Lists Copilot Spaces owned by a user. The authenticated user must have read access to the user's Copilot Spaces. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.listForUser
List Resources For OrgRead-only
List resources for an organization Copilot Space. Lists all resources attached to a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to view the space. GitHub App permission: organization_copilot_spaces (read).
copilotSpaces.listResourcesForOrg
List Resources For UserRead-only
List resources for a Copilot Space for a user. Lists all resources attached to a specific Copilot Space owned by a user. The authenticated user must have appropriate permissions to view the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.listResourcesForUser
Remove Collaborator For OrgDestructive
Remove a collaborator from an organization Copilot Space. Removes a collaborator from a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to manage collaborators. GitHub App permission: organization_copilot_seat_management (write).
copilotSpaces.removeCollaboratorForOrg
Remove Collaborator For UserDestructive
Remove a collaborator from a Copilot Space for a user. Removes a collaborator from a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.removeCollaboratorForUser
Update Collaborator For OrgWrite
Set a collaborator role for an organization Copilot Space. Updates the role of a collaborator for a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to manage collaborators. GitHub App permission: organization_copilot_seat_management (write).
copilotSpaces.updateCollaboratorForOrg
Update Collaborator For UserWrite
Set a collaborator role for a Copilot Space for a user. Updates the role of a collaborator for a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.updateCollaboratorForUser
Update For OrgWrite
Set an organization Copilot Space. Updates a Copilot Space owned by an organization. The authenticated user must have permissions to update spaces in the organization. GitHub App permission: organization_copilot_spaces (write).
copilotSpaces.updateForOrg
Update For UserWrite
Set a Copilot Space for a user. Updates a Copilot Space owned by a user. Only the authenticated user can update spaces for their own account. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.updateForUser
Update Resource For OrgWrite
Set a resource for an organization Copilot Space. Updates the metadata of a resource in a specific Copilot Space owned by an organization. The authenticated user must have write permissions on the space. GitHub App permission: organization_copilot_spaces (write).
copilotSpaces.updateResourceForOrg
Update Resource For UserWrite
Set a resource for a Copilot Space for a user. Updates the metadata of a resource in a specific Copilot Space owned by a user. The authenticated user must have write permissions on the space. Not available to GitHub App user tokens: needs a personal access token.
copilotSpaces.updateResourceForUser
Dependabot
Add Selected Repo To Org SecretWrite
Add selected repository to an organization secret. Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_dependabot_secrets (write).
dependabot.addSelectedRepoToOrgSecret
Create Or Update Org SecretWrite
Create or update an organization secret. Creates or updates an organization secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: organization_dependabot_secrets (write).
dependabot.createOrUpdateOrgSecret
Create Or Update Repo SecretWrite
Create or update a repository secret. Creates or updates a repository secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: dependabot_secrets (write).
dependabot.createOrUpdateRepoSecret
Delete Org SecretDestructive
Delete an organization secret. Deletes a secret in an organization using the secret name. GitHub App permission: organization_dependabot_secrets (write).
dependabot.deleteOrgSecret
Delete Repo SecretDestructive
Delete a repository secret. Deletes a secret in a repository using the secret name. GitHub App permission: dependabot_secrets (write).
dependabot.deleteRepoSecret
Get AlertRead-only
Get a Dependabot alert. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. GitHub App permission: vulnerability_alerts (read).
dependabot.getAlert
Get Org Public KeyRead-only
Get an organization public key. Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: organization_dependabot_secrets (read).
dependabot.getOrgPublicKey
Get Org SecretRead-only
Get an organization secret. Gets a single organization secret without revealing its encrypted value. GitHub App permission: organization_dependabot_secrets (read).
dependabot.getOrgSecret
Get Repo Public KeyRead-only
Get a repository public key. Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Anyone with read access to the repository can use this endpoint. GitHub App permission: dependabot_secrets (read).
dependabot.getRepoPublicKey
Get Repo SecretRead-only
Get a repository secret. Gets a single repository secret without revealing its encrypted value. GitHub App permission: dependabot_secrets (read).
dependabot.getRepoSecret
Get Repository Runner SettingsRead-only
Get repository Dependabot runner settings. Gets the runner Dependabot uses for this repository: standard GitHub-hosted runners, or labeled runners with their labels and optional runner group. The response matches the repository's code security settings page. GitHub App permission: administration (read).
dependabot.getRepositoryRunnerSettings
List Alerts For EnterpriseRead-only
List Dependabot alerts for an enterprise. Lists Dependabot alerts for repositories that are owned by the specified enterprise. Not available to GitHub App user tokens: needs a personal access token.
dependabot.listAlertsForEnterprise
List Alerts For OrgRead-only
List Dependabot alerts for an organization. Lists Dependabot alerts for an organization. GitHub App permission: vulnerability_alerts (read).
dependabot.listAlertsForOrg
List Alerts For RepoRead-only
List Dependabot alerts for a repository. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. GitHub App permission: vulnerability_alerts (read).
dependabot.listAlertsForRepo
List Org SecretsRead-only
List organization secrets. Lists all secrets available in an organization without revealing their encrypted values. GitHub App permission: organization_dependabot_secrets (read).
dependabot.listOrgSecrets
List Repo SecretsRead-only
List repository secrets. Lists all secrets available in a repository without revealing their encrypted values. GitHub App permission: dependabot_secrets (read).
dependabot.listRepoSecrets
List Selected Repos For Org SecretRead-only
List selected repositories for an organization secret. Lists all repositories that have been selected when the `visibility` for repository access to a secret is set to `selected`. GitHub App permission: organization_dependabot_secrets (read).
dependabot.listSelectedReposForOrgSecret
Remove Selected Repo From Org SecretDestructive
Remove selected repository from an organization secret. Removes a repository from an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_dependabot_secrets (write).
dependabot.removeSelectedRepoFromOrgSecret
Repository Access For EnterpriseRead-only
Lists the repositories Dependabot can access in an enterprise. Lists repositories that enterprise admins have allowed Dependabot to access when updating dependencies across organizations in the enterprise. GitHub App permission: enterprise_security_products (read).
dependabot.repositoryAccessForEnterprise
Repository Access For OrgRead-only
Lists the repositories Dependabot can access in an organization. Lists repositories that organization admins have allowed Dependabot to access when updating dependencies. > [!NOTE] > This operation supports both server-to-server and user-to-server access. Unauthorized users will not see the existence of this endpoint. GitHub App permission: organization_administration (read).
dependabot.repositoryAccessForOrg
Set Repository Access Default LevelWrite
Set the default repository access level for Dependabot. Sets the default level of repository access Dependabot will have while performing an update. Available values are: - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. GitHub App permission: organization_administration (write).
dependabot.setRepositoryAccessDefaultLevel
Set Repository Access Default Level For EnterpriseWrite
Set the default repository access level for Dependabot in an enterprise. Sets the default level of repository access Dependabot will have while performing an update across organizations in the enterprise. Available values are: - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. GitHub App permission: enterprise_security_products (write).
Set repository Dependabot runner settings. Sets the runner Dependabot uses for this repository. This is the same setting as on the repository's code security settings page. GitHub App permission: administration (write).
dependabot.setRepositoryRunnerSettings
Set Selected Repos For Org SecretWrite
Set selected repositories for an organization secret. Replaces all repositories for an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret). GitHub App permission: organization_dependabot_secrets (write).
dependabot.setSelectedReposForOrgSecret
Update AlertWrite
Update a Dependabot alert. The authenticated user must have access to security alerts for the repository to use this endpoint. For more information, see "[Granting access to security alerts](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts)." GitHub App permission: vulnerability_alerts (write).
dependabot.updateAlert
Update Repository Access For EnterpriseWrite
Updates Dependabot's repository access list for an enterprise. Updates repositories according to the list of repositories that enterprise admins have given Dependabot access to when they've updated dependencies across organizations in the enterprise. GitHub App permission: enterprise_security_products (write).
dependabot.updateRepositoryAccessForEnterprise
Update Repository Access For OrgWrite
Updates Dependabot's repository access list for an organization. Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they've updated dependencies. GitHub App permission: organization_administration (write).
dependabot.updateRepositoryAccessForOrg
Packages
Delete Package For Authenticated UserDestructive
Delete a package for the authenticated user. Deletes a package owned by the authenticated user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
packages.deletePackageForAuthenticatedUser
Delete Package For OrgDestructive
Delete a package for an organization. Deletes an entire package in an organization. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
packages.deletePackageForOrg
Delete Package For UserDestructive
Delete a package for a user. Deletes an entire package for a user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
packages.deletePackageForUser
Delete Package Version For Authenticated UserDestructive
Delete a package version for the authenticated user. Deletes a specific package version for a package owned by the authenticated user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance. Not available to GitHub App user tokens: needs a personal access token.
packages.deletePackageVersionForAuthenticatedUser
Delete Package Version For OrgDestructive
Delete package version for an organization. Deletes a specific package version in an organization. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance. Not available to GitHub App user tokens: needs a personal access token.
packages.deletePackageVersionForOrg
Delete Package Version For UserDestructive
Delete package version for a user. Deletes a specific package version for a user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance. Not available to GitHub App user tokens: needs a personal access token.
packages.deletePackageVersionForUser
Get All Package Versions For Package Owned By Authenticated UserRead-only
List package versions for a package owned by the authenticated user. Lists package versions for a package owned by the authenticated user.
Get a package for the authenticated user. Gets a specific package for a package owned by the authenticated user.
packages.getPackageForAuthenticatedUser
Get Package For OrganizationRead-only
Get a package for an organization. Gets a specific package in an organization.
packages.getPackageForOrganization
Get Package For UserRead-only
Get a package for a user. Gets a specific package metadata for a public package owned by a user.
packages.getPackageForUser
Get Package Version For Authenticated UserRead-only
Get a package version for the authenticated user. Gets a specific package version for a package owned by the authenticated user.
packages.getPackageVersionForAuthenticatedUser
Get Package Version For OrganizationRead-only
Get a package version for an organization. Gets a specific package version in an organization.
packages.getPackageVersionForOrganization
Get Package Version For UserRead-only
Get a package version for a user. Gets a specific package version for a public package owned by a specified user.
packages.getPackageVersionForUser
List Docker Migration Conflicting Packages For Authenticated UserRead-only
Get list of conflicting packages during Docker migration for authenticated-user. Lists all packages that are owned by the authenticated user within the user's namespace, and that encountered a conflict during a Docker migration.
List Docker Migration Conflicting Packages For OrganizationRead-only
Get list of conflicting packages during Docker migration for organization. Lists all packages that are in a specific organization, are readable by the requesting user, and that encountered a conflict during a Docker migration.
List Docker Migration Conflicting Packages For UserRead-only
Get list of conflicting packages during Docker migration for user. Lists all packages that are in a specific user's namespace, that the requesting user has access to, and that encountered a conflict during Docker migration.
List packages for the authenticated user's namespace. Lists packages owned by the authenticated user within the user's namespace.
packages.listPackagesForAuthenticatedUser
List Packages For OrganizationRead-only
List packages for an organization. Lists packages in an organization readable by the user.
packages.listPackagesForOrganization
List Packages For UserRead-only
List packages for a user. Lists all packages in a user's namespace for which the requesting user has access.
packages.listPackagesForUser
Restore Package For Authenticated UserWrite
Restore a package for the authenticated user. Restores a package owned by the authenticated user. Not available to GitHub App user tokens: needs a personal access token.
packages.restorePackageForAuthenticatedUser
Restore Package For OrgWrite
Restore a package for an organization. Restores an entire package in an organization. Not available to GitHub App user tokens: needs a personal access token.
packages.restorePackageForOrg
Restore Package For UserWrite
Restore a package for a user. Restores an entire package for a user. Not available to GitHub App user tokens: needs a personal access token.
packages.restorePackageForUser
Restore Package Version For Authenticated UserWrite
Restore a package version for the authenticated user. Restores a package version owned by the authenticated user. Not available to GitHub App user tokens: needs a personal access token.
Restore package version for an organization. Restores a specific package version in an organization. Not available to GitHub App user tokens: needs a personal access token.
packages.restorePackageVersionForOrg
Restore Package Version For UserWrite
Restore package version for a user. Restores a specific package version for a user. Not available to GitHub App user tokens: needs a personal access token.
packages.restorePackageVersionForUser
Projects
Add Field For OrgWrite
Add a field to an organization-owned project. GitHub App permission: organization_projects (write).
projects.addFieldForOrg
Add Field For UserWrite
Add field to user owned project. Add a field to a specified user owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.addFieldForUser
Add Item For OrgWrite
Add item to organization owned project. Add an issue or pull request item to the specified organization owned project. GitHub App permission: organization_projects (write).
projects.addItemForOrg
Add Item For UserWrite
Add item to user owned project. Add an issue or pull request item to the specified user owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.addItemForUser
Create Draft Item For Authenticated UserWrite
Create draft item for user owned project. Create draft issue item for the specified user owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.createDraftItemForAuthenticatedUser
Create Draft Item For OrgWrite
Create draft item for organization owned project. Create draft issue item for the specified organization owned project. GitHub App permission: organization_projects (write).
projects.createDraftItemForOrg
Create View For OrgWrite
Create a view for an organization-owned project. Create a new view in an organization-owned project. Views allow you to customize how items in a project are displayed and filtered. GitHub App permission: organization_projects (write).
projects.createViewForOrg
Create View For UserWrite
Create a view for a user-owned project. Create a new view in a user-owned project. Views allow you to customize how items in a project are displayed and filtered. Not available to GitHub App user tokens: needs a personal access token.
projects.createViewForUser
Delete Item For OrgDestructive
Delete project item for organization. Delete a specific item from an organization-owned project. GitHub App permission: organization_projects (write).
projects.deleteItemForOrg
Delete Item For UserDestructive
Delete project item for user. Delete a specific item from a user-owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.deleteItemForUser
Get Field For OrgRead-only
Get project field for organization. Get a specific field for an organization-owned project. GitHub App permission: organization_projects (read).
projects.getFieldForOrg
Get Field For UserRead-only
Get project field for user. Get a specific field for a user-owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.getFieldForUser
Get For OrgRead-only
Get project for organization. Get a specific organization-owned project. GitHub App permission: organization_projects (read).
projects.getForOrg
Get For UserRead-only
Get project for user. Get a specific user-owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.getForUser
Get Org ItemRead-only
Get an item for an organization owned project. Get a specific item from an organization-owned project. GitHub App permission: organization_projects (read).
projects.getOrgItem
Get User ItemRead-only
Get an item for a user owned project. Get a specific item from a user-owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.getUserItem
List Fields For OrgRead-only
List project fields for organization. List all fields for a specific organization-owned project. GitHub App permission: organization_projects (read).
projects.listFieldsForOrg
List Fields For UserRead-only
List project fields for user. List all fields for a specific user-owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.listFieldsForUser
List For OrgRead-only
List projects for organization. List all projects owned by a specific organization accessible by the authenticated user. GitHub App permission: organization_projects (read).
projects.listForOrg
List For UserRead-only
List projects for user. List all projects owned by a specific user accessible by the authenticated user. Not available to GitHub App user tokens: needs a personal access token.
projects.listForUser
List Items For OrgRead-only
List items for an organization owned project. List all items for a specific organization-owned project accessible by the authenticated user. GitHub App permission: organization_projects (read).
projects.listItemsForOrg
List Items For UserRead-only
List items for a user owned project. List all items for a specific user-owned project accessible by the authenticated user. Not available to GitHub App user tokens: needs a personal access token.
projects.listItemsForUser
List View Items For OrgRead-only
List items for an organization project view. List items in an organization project with the saved view's filter applied. GitHub App permission: organization_projects (read).
projects.listViewItemsForOrg
List View Items For UserRead-only
List items for a user project view. List items in a user project with the saved view's filter applied. Not available to GitHub App user tokens: needs a personal access token.
projects.listViewItemsForUser
Update Item For OrgWrite
Update project item for organization. Update a specific item in an organization-owned project. GitHub App permission: organization_projects (write).
projects.updateItemForOrg
Update Item For UserWrite
Update project item for user. Update a specific item in a user-owned project. Not available to GitHub App user tokens: needs a personal access token.
projects.updateItemForUser
Code Scanning
Commit AutofixWrite
Commit an autofix for a code scanning alert. Commits an autofix for a code scanning alert from the repository's default branch. GitHub App permission: contents (write).
codeScanning.commitAutofix
Create AutofixWrite
Create an autofix for a code scanning alert. Creates an autofix for a code scanning alert from the repository's default branch. GitHub App permission: security_events (write).
codeScanning.createAutofix
Create Variant AnalysisWrite
Create a CodeQL variant analysis. Creates a new CodeQL variant analysis, which will run a CodeQL query against one or more repositories. GitHub App permission: contents (write).
codeScanning.createVariantAnalysis
Delete AnalysisDestructive
Delete a code scanning analysis from a repository. Deletes a specified code scanning analysis from a repository. GitHub App permission: security_events (write).
codeScanning.deleteAnalysis
Delete Codeql DatabaseDestructive
Delete a CodeQL database. Deletes a CodeQL database for a language in a repository. GitHub App permission: contents (write).
codeScanning.deleteCodeqlDatabase
Get Ai Scan EnablementRead-only
Get AI Scan enablement for a repository. Gets whether AI Scan is enabled for a repository. GitHub App permission: security_events (read).
codeScanning.getAiScanEnablement
Get Ai Scan Enablement For OrgRead-only
Get the AI Scan setting for an organization. Gets the AI Scan setting stored on an organization. GitHub App permission: organization_administration (read).
codeScanning.getAiScanEnablementForOrg
Get AlertRead-only
Get a code scanning alert. Gets a single code scanning alert. GitHub App permission: security_events (read).
codeScanning.getAlert
Get AnalysisRead-only
Get a code scanning analysis for a repository. Gets a specified code scanning analysis for a repository. GitHub App permission: security_events (read).
codeScanning.getAnalysis
Get AutofixRead-only
Get the status of an autofix for a code scanning alert. Gets the status and description of an autofix for a code scanning alert on the repository's default branch. GitHub App permission: security_events (read).
codeScanning.getAutofix
Get Codeql DatabaseRead-only
Get a CodeQL database for a repository. Gets a CodeQL database for a language in a repository. GitHub App permission: contents (read).
codeScanning.getCodeqlDatabase
Get Default SetupRead-only
Get a code scanning default setup configuration. Gets a code scanning default setup configuration. GitHub App permission: administration (read).
codeScanning.getDefaultSetup
Get SarifRead-only
Get information about a SARIF upload. Gets information about a SARIF upload, including the status and the URL of the analysis that was uploaded so that you can retrieve details of the analysis. For more information, see "[Get a code scanning analysis for a repository](https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository)." GitHub App permission: security_events (read).
codeScanning.getSarif
Get Variant AnalysisRead-only
Get the summary of a CodeQL variant analysis. Gets the summary of a CodeQL variant analysis. GitHub App permission: contents (read).
codeScanning.getVariantAnalysis
Get Variant Analysis Repo TaskRead-only
Get the analysis status of a repository in a CodeQL variant analysis. Gets the analysis status of a repository in a CodeQL variant analysis. GitHub App permission: contents (read).
codeScanning.getVariantAnalysisRepoTask
List Alert InstancesRead-only
List instances of a code scanning alert. Lists all instances of the specified code scanning alert. GitHub App permission: security_events (read).
codeScanning.listAlertInstances
List Alerts For OrgRead-only
List code scanning alerts for an organization. Lists code scanning alerts for the default branch for all eligible repositories in an organization. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. GitHub App permission: security_events (read).
codeScanning.listAlertsForOrg
List Alerts For RepoRead-only
List code scanning alerts for a repository. Lists code scanning alerts. GitHub App permission: security_events (read).
codeScanning.listAlertsForRepo
List Codeql DatabasesRead-only
List CodeQL databases for a repository. Lists the CodeQL databases that are available in a repository. GitHub App permission: contents (read).
codeScanning.listCodeqlDatabases
List Recent AnalysesRead-only
List code scanning analyses for a repository. Lists the details of all code scanning analyses for a repository, starting with the most recent. The response is paginated and you can use the `page` and `per_page` parameters to list the analyses you're interested in. By default 30 analyses are listed per page. GitHub App permission: security_events (read).
codeScanning.listRecentAnalyses
Update Ai Scan EnablementWrite
Update AI Scan enablement for a repository. Updates whether AI Scan is enabled for a repository. GitHub App permission: administration (write).
codeScanning.updateAiScanEnablement
Update Ai Scan Enablement For OrgWrite
Update the AI Scan setting for an organization. Updates the AI Scan setting stored on an organization. GitHub App permission: organization_administration (write).
codeScanning.updateAiScanEnablementForOrg
Update AlertWrite
Update a code scanning alert. Updates the status of a single code scanning alert. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. GitHub App permission: security_events (write).
codeScanning.updateAlert
Update Default SetupWrite
Update a code scanning default setup configuration. Updates a code scanning default setup configuration. GitHub App permission: administration (write).
codeScanning.updateDefaultSetup
Upload SarifWrite
Upload an analysis as SARIF data. Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. For troubleshooting information, see "[Troubleshooting SARIF uploads](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif)." GitHub App permission: security_events (write).
codeScanning.uploadSarif
Activity
Delete Repo SubscriptionDestructive
Delete a repository subscription. This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://docs.github.com/rest/activity/watching#set-a-repository-subscription). Not available to GitHub App user tokens: needs a personal access token.
activity.deleteRepoSubscription
Delete Thread SubscriptionDestructive
Delete a thread subscription. Mutes all future notifications for a conversation until you comment on the thread or get an **@mention**. If you are watching the repository of the thread, you will still receive notifications. Not available to GitHub App user tokens: needs a personal access token.
activity.deleteThreadSubscription
Get FeedsRead-only
Get feeds. Lists the feeds available to the authenticated user. The response provides a URL for each feed. You can then get a specific feed by sending a request to one of the feed URLs.
activity.getFeeds
Get Repo SubscriptionRead-only
Get a repository subscription. Gets information about whether the authenticated user is subscribed to the repository. Not available to GitHub App user tokens: needs a personal access token.
activity.getRepoSubscription
Get Stargazer Count For RepoRead-only
Get stargazer count. Gets the current number of users who have starred the repository. Users who previously starred the repository but later removed their star are not included. GitHub App permission: metadata (read).
activity.getStargazerCountForRepo
Get Stargazer History For RepoRead-only
Get repository star history. Returns repository stars grouped by calendar weeks, most recent first. Pages move backward toward the repository's creation week, and weeks within a page are ordered newest to oldest, so concatenating pages produces one continuous series. Weeks without stars contain zero counts. Week and day boundaries are not guaranteed to align with UTC. GitHub App permission: metadata (read).
activity.getStargazerHistoryForRepo
Get ThreadRead-only
Get a thread. Gets information about a notification thread. Not available to GitHub App user tokens: needs a personal access token.
activity.getThread
Get Thread Subscription For Authenticated UserRead-only
Get a thread subscription for the authenticated user. This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://docs.github.com/rest/activity/watching#get-a-repository-subscription). Not available to GitHub App user tokens: needs a personal access token.
List Notifications For Authenticated UserRead-only
List notifications for the authenticated user. List all notifications for the current user, sorted by most recently updated. Not available to GitHub App user tokens: needs a personal access token.
activity.listNotificationsForAuthenticatedUser
List Repo Notifications For Authenticated UserRead-only
List repository notifications for the authenticated user. Lists all notifications for the current user in the specified repository. Not available to GitHub App user tokens: needs a personal access token.
List repositories starred by a user. Lists repositories a user has starred. GitHub App permission: starring (read).
activity.listReposStarredByUser
List Repos Watched By UserRead-only
List repositories watched by a user. Lists repositories a user is watching. GitHub App permission: watching (read).
activity.listReposWatchedByUser
List Watched Repos For Authenticated UserRead-only
List repositories watched by the authenticated user. Lists repositories the authenticated user is watching. GitHub App permission: watching (read).
activity.listWatchedReposForAuthenticatedUser
List Watchers For RepoRead-only
List watchers. Lists the people watching the specified repository. GitHub App permission: contents (write).
activity.listWatchersForRepo
Mark Notifications As ReadWrite
Mark notifications as read. Marks all notifications as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." Not available to GitHub App user tokens: needs a personal access token.
activity.markNotificationsAsRead
Mark Repo Notifications As ReadWrite
Mark repository notifications as read. Marks all notifications in a repository as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." Not available to GitHub App user tokens: needs a personal access token.
activity.markRepoNotificationsAsRead
Mark Thread As DoneDestructive
Mark a thread as done. Marks a thread as "done." Marking a thread as "done" is equivalent to marking a notification in your notification inbox on GitHub as done: https://github.com/notifications. Not available to GitHub App user tokens: needs a personal access token.
activity.markThreadAsDone
Mark Thread As ReadWrite
Mark a thread as read. Marks a thread as "read." Marking a thread as "read" is equivalent to clicking a notification in your notification inbox on GitHub: https://github.com/notifications. Not available to GitHub App user tokens: needs a personal access token.
activity.markThreadAsRead
Set Repo SubscriptionWrite
Set a repository subscription. If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://docs.github.com/rest/activity/watching#delete-a-repository-subscription) completely. Not available to GitHub App user tokens: needs a personal access token.
activity.setRepoSubscription
Set Thread SubscriptionWrite
Set a thread subscription. If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an **@mention**. Not available to GitHub App user tokens: needs a personal access token.
activity.setThreadSubscription
Code Security
Attach ConfigurationWrite
Attach a configuration to repositories. Attach a code security configuration to a set of repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration. GitHub App permission: organization_administration (write).
codeSecurity.attachConfiguration
Attach Enterprise ConfigurationWrite
Attach an enterprise configuration to repositories. Attaches an enterprise code security configuration to repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration. Not available to GitHub App user tokens: needs a personal access token.
codeSecurity.attachEnterpriseConfiguration
Create ConfigurationWrite
Create a code security configuration. Creates a code security configuration in an organization. GitHub App permission: organization_administration (write).
codeSecurity.createConfiguration
Create Configuration For EnterpriseWrite
Create a code security configuration for an enterprise. Creates a code security configuration in an enterprise. Not available to GitHub App user tokens: needs a personal access token.
codeSecurity.createConfigurationForEnterprise
Delete ConfigurationDestructive
Delete a code security configuration. Deletes the desired code security configuration from an organization. Repositories attached to the configuration will retain their settings but will no longer be associated with the configuration. GitHub App permission: organization_administration (write).
codeSecurity.deleteConfiguration
Delete Configuration For EnterpriseDestructive
Delete a code security configuration for an enterprise. Deletes a code security configuration from an enterprise. Repositories attached to the configuration will retain their settings but will no longer be associated with the configuration. Not available to GitHub App user tokens: needs a personal access token.
codeSecurity.deleteConfigurationForEnterprise
Detach ConfigurationDestructive
Detach configurations from repositories. Detach code security configuration(s) from a set of repositories. Repositories will retain their settings but will no longer be associated with the configuration. GitHub App permission: organization_administration (write).
codeSecurity.detachConfiguration
Get ConfigurationRead-only
Get a code security configuration. Gets a code security configuration available in an organization. GitHub App permission: organization_administration (read).
codeSecurity.getConfiguration
Get Configuration For RepositoryRead-only
Get the code security configuration associated with a repository. Get the code security configuration that manages a repository's code security settings. GitHub App permission: administration (read).
codeSecurity.getConfigurationForRepository
Get Configurations For EnterpriseRead-only
Get code security configurations for an enterprise. Lists all code security configurations available in an enterprise. Not available to GitHub App user tokens: needs a personal access token.
codeSecurity.getConfigurationsForEnterprise
Get Configurations For OrgRead-only
Get code security configurations for an organization. Lists all code security configurations available in an organization. GitHub App permission: organization_administration (read).
codeSecurity.getConfigurationsForOrg
Get Default ConfigurationsRead-only
Get default code security configurations. Lists the default code security configurations for an organization. GitHub App permission: organization_administration (read).
codeSecurity.getDefaultConfigurations
Get Default Configurations For EnterpriseRead-only
Get default code security configurations for an enterprise. Lists the default code security configurations for an enterprise. Not available to GitHub App user tokens: needs a personal access token.
Get repositories associated with a code security configuration. Lists the repositories associated with a code security configuration in an organization. GitHub App permission: organization_administration (read).
codeSecurity.getRepositoriesForConfiguration
Get Repositories For Enterprise ConfigurationRead-only
Get repositories associated with an enterprise code security configuration. Lists the repositories associated with an enterprise code security configuration in an organization. Not available to GitHub App user tokens: needs a personal access token.
Retrieve a code security configuration of an enterprise. Gets a code security configuration available in an enterprise. Not available to GitHub App user tokens: needs a personal access token.
codeSecurity.getSingleConfigurationForEnterprise
Set Configuration As DefaultWrite
Set a code security configuration as a default for an organization. Sets a code security configuration as a default to be applied to new repositories in your organization. GitHub App permission: organization_administration (write).
codeSecurity.setConfigurationAsDefault
Set Configuration As Default For EnterpriseWrite
Set a code security configuration as a default for an enterprise. Sets a code security configuration as a default to be applied to new repositories in your enterprise. Not available to GitHub App user tokens: needs a personal access token.
Update a code security configuration. Updates a code security configuration in an organization. GitHub App permission: organization_administration (write).
codeSecurity.updateConfiguration
Update Enterprise ConfigurationWrite
Update a custom code security configuration for an enterprise. Updates a code security configuration in an enterprise. Not available to GitHub App user tokens: needs a personal access token.
codeSecurity.updateEnterpriseConfiguration
Gists
Check Is StarredRead-only
Check if a gist is starred.
gists.checkIsStarred
CreateWrite
Create a gist. Allows you to add a new gist with one or more files. GitHub App permission: gists (write).
gists.create
Create CommentWrite
Create a gist comment. Creates a comment on a gist. GitHub App permission: gists (write).
gists.createComment
DeleteDestructive
Delete a gist. GitHub App permission: gists (write).
gists.delete
Delete CommentDestructive
Delete a gist comment. GitHub App permission: gists (write).
gists.deleteComment
ForkWrite
Fork a gist. GitHub App permission: gists (write).
gists.fork
GetRead-only
Get a gist. Gets a specified gist.
gists.get
Get CommentRead-only
Get a gist comment. Gets a comment on a gist.
gists.getComment
Get RevisionRead-only
Get a gist revision. Gets a specified gist revision.
gists.getRevision
ListRead-only
List gists for the authenticated user. Lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists:
gists.list
List CommentsRead-only
List gist comments. Lists the comments on a gist.
gists.listComments
List CommitsRead-only
List gist commits.
gists.listCommits
List For UserRead-only
List gists for a user. Lists public gists for the specified user:
gists.listForUser
List ForksRead-only
List gist forks.
gists.listForks
List PublicRead-only
List public gists. List public gists sorted by most recently updated to least recently updated.
gists.listPublic
List StarredRead-only
List starred gists. List the authenticated user's starred gists:
gists.listStarred
StarWrite
Star a gist. Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." GitHub App permission: gists (write).
gists.star
UnstarDestructive
Unstar a gist. GitHub App permission: gists (write).
gists.unstar
UpdateWrite
Update a gist. Allows you to update a gist's description and to update, delete, or rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged. GitHub App permission: gists (write).
gists.update
Update CommentWrite
Update a gist comment. Updates a comment on a gist. GitHub App permission: gists (write).
gists.updateComment
Agent Automations
Attach Automation TagWrite
Attach an automation tag. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.attachAutomationTag
Create Repo AutomationWrite
Create an automation for a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.createRepoAutomation
Create Repo Automation TagWrite
Create an automation tag in a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.createRepoAutomationTag
Create Repo Automation TaskWrite
Run an automation. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.createRepoAutomationTask
Delete Repo AutomationDestructive
Delete an automation. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.deleteRepoAutomation
Delete Repo Automation TagDestructive
Delete an automation tag in a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.deleteRepoAutomationTag
Detach Automation TagDestructive
Detach an automation tag. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.detachAutomationTag
Edit Repo AutomationWrite
Update an automation. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.editRepoAutomation
Get Automation RevisionRead-only
Get an automation revision. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.getAutomationRevision
Get Repo AutomationRead-only
Get an automation. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.getRepoAutomation
Get Repo Automation TagRead-only
Get an automation tag in a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.getRepoAutomationTag
List Automation RevisionsRead-only
List revisions for an automation. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.listAutomationRevisions
List AutomationsRead-only
List automations for user. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.listAutomations
List Available Repo Automation ToolsRead-only
List available automation tools for a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.listAvailableRepoAutomationTools
List Available Repo Automation TriggersRead-only
List available automation triggers for a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
List automation tags in a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.listRepoAutomationTags
List Repo Automation TasksRead-only
List tasks for an automation in a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.listRepoAutomationTasks
List Repo AutomationsRead-only
List automations for a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.listRepoAutomations
Update Repo Automation TagWrite
Update an automation tag in a repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentAutomations.updateRepoAutomationTag
Secret Scanning
Bulk Create Org Custom PatternsWrite
Bulk create organization custom patterns. Bulk creates secret scanning custom patterns for an organization. GitHub App permission: organization_administration (write).
secretScanning.bulkCreateOrgCustomPatterns
Bulk Create Repo Custom PatternsWrite
Bulk create repository custom patterns. Bulk creates secret scanning custom patterns for a repository. GitHub App permission: administration (write).
secretScanning.bulkCreateRepoCustomPatterns
Bulk Delete Org Custom PatternsDestructive
Bulk delete organization custom patterns. Bulk deletes secret scanning custom patterns for an organization. GitHub App permission: organization_administration (write).
secretScanning.bulkDeleteOrgCustomPatterns
Bulk Delete Repo Custom PatternsDestructive
Bulk delete repository custom patterns. Bulk deletes secret scanning custom patterns for a repository. GitHub App permission: administration (write).
secretScanning.bulkDeleteRepoCustomPatterns
Create Push Protection BypassWrite
Create a push protection bypass. Creates a bypass for a previously push protected secret. GitHub App permission: contents (write).
secretScanning.createPushProtectionBypass
Get AlertRead-only
Get a secret scanning alert. Gets a single secret scanning alert detected in an eligible repository. GitHub App permission: secret_scanning_alerts (read).
secretScanning.getAlert
Get Scan HistoryRead-only
Get secret scanning scan history for a repository. Lists the latest default incremental and backfill scans by type for a repository. GitHub App permission: secret_scanning_alerts (read).
secretScanning.getScanHistory
List Alerts For OrgRead-only
List secret scanning alerts for an organization. Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest. GitHub App permission: secret_scanning_alerts (read).
secretScanning.listAlertsForOrg
List Alerts For RepoRead-only
List secret scanning alerts for a repository. Lists secret scanning alerts for an eligible repository, from newest to oldest. GitHub App permission: secret_scanning_alerts (read).
secretScanning.listAlertsForRepo
List Locations For AlertRead-only
List locations for a secret scanning alert. Lists all locations for a given secret scanning alert for an eligible repository. GitHub App permission: secret_scanning_alerts (read).
secretScanning.listLocationsForAlert
List Org Custom PatternsRead-only
List organization custom patterns. Lists secret scanning custom patterns for an organization. GitHub App permission: organization_administration (read).
secretScanning.listOrgCustomPatterns
List Org Pattern ConfigsRead-only
List organization pattern configurations. Lists the secret scanning pattern configurations for an organization. GitHub App permission: organization_administration (read).
secretScanning.listOrgPatternConfigs
List Repo Custom PatternsRead-only
List repository custom patterns. Lists secret scanning custom patterns for a repository. GitHub App permission: administration (write).
secretScanning.listRepoCustomPatterns
Update AlertWrite
Update a secret scanning alert. Updates the status of a secret scanning alert in an eligible repository. GitHub App permission: secret_scanning_alerts (write).
secretScanning.updateAlert
Update Org Custom PatternWrite
Update an organization custom pattern. Updates a secret scanning custom pattern for an organization. GitHub App permission: organization_administration (write).
secretScanning.updateOrgCustomPattern
Update Org Pattern ConfigsWrite
Update organization pattern configurations. Updates the secret scanning pattern configurations for an organization. GitHub App permission: organization_administration (write).
secretScanning.updateOrgPatternConfigs
Update Repo Custom PatternWrite
Update a repository custom pattern. Updates a secret scanning custom pattern for a repository. GitHub App permission: administration (write).
secretScanning.updateRepoCustomPattern
Interactions
Get Pull Request Bypass List For RepoRead-only
Get pull request creation cap bypass list for a repository. Lists the users that are on the pull request creation cap bypass list for a repository. Users on this list can create pull requests regardless of any configured pull request creation cap. GitHub App permission: administration (write).
interactions.getPullRequestBypassListForRepo
Get Pull Request Creation Cap For OrgRead-only
Get pull request creation cap for an org. Gets the pull request creation cap configuration for an organization. The cap limits the total number of open pull requests a user can have across all public repositories in the organization at one time. GitHub App permission: organization_administration (write).
interactions.getPullRequestCreationCapForOrg
Get Pull Request Creation Cap For RepoRead-only
Get pull request creation cap for a repository. Gets the pull request creation cap configuration for a repository. The cap limits the number of open pull requests a user can have at one time. GitHub App permission: administration (write).
interactions.getPullRequestCreationCapForRepo
Get Restrictions For Authenticated UserRead-only
Get interaction restrictions for your public repositories. Shows which type of GitHub user can interact with your public repositories and when the restriction expires. GitHub App permission: interaction_limits (read).
interactions.getRestrictionsForAuthenticatedUser
Get Restrictions For OrgRead-only
Get interaction restrictions for an organization. Shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response. GitHub App permission: organization_administration (read).
interactions.getRestrictionsForOrg
Get Restrictions For RepoRead-only
Get interaction restrictions for a repository. Shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response. GitHub App permission: administration (read).
interactions.getRestrictionsForRepo
Remove Pull Request Bypass List For RepoDestructive
Remove users from the pull request creation cap bypass list for a repository. Removes users from the pull request creation cap bypass list for a repository. Removed users will be subject to any configured pull request creation cap. GitHub App permission: administration (write).
interactions.removePullRequestBypassListForRepo
Remove Restrictions For Authenticated UserDestructive
Remove interaction restrictions from your public repositories. Removes any interaction restrictions from your public repositories. GitHub App permission: interaction_limits (write).
Remove interaction restrictions for an organization. Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions. GitHub App permission: organization_administration (write).
interactions.removeRestrictionsForOrg
Remove Restrictions For RepoDestructive
Remove interaction restrictions for a repository. Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. GitHub App permission: administration (write).
interactions.removeRestrictionsForRepo
Set Pull Request Bypass List For RepoWrite
Add users to the pull request creation cap bypass list for a repository. Adds users to the pull request creation cap bypass list for a repository. Users on this list can create pull requests regardless of any configured pull request creation cap. GitHub App permission: administration (write).
interactions.setPullRequestBypassListForRepo
Set Restrictions For Authenticated UserWrite
Set interaction restrictions for your public repositories. Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user. GitHub App permission: interaction_limits (write).
interactions.setRestrictionsForAuthenticatedUser
Set Restrictions For OrgWrite
Set interaction restrictions for an organization. Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization. GitHub App permission: organization_administration (write).
interactions.setRestrictionsForOrg
Set Restrictions For RepoWrite
Set interaction restrictions for a repository. Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. GitHub App permission: administration (write).
interactions.setRestrictionsForRepo
Update Pull Request Creation Cap For OrgWrite
Update pull request creation cap for an org. Updates the pull request creation cap for an organization. The cap limits the total number of open pull requests a user can have across all public repositories in the organization at one time. GitHub App permission: organization_administration (write).
interactions.updatePullRequestCreationCapForOrg
Update Pull Request Creation Cap For RepoWrite
Update pull request creation cap for a repository. Updates the pull request creation cap for a repository. The cap limits the number of open pull requests a user can have at one time. GitHub App permission: administration (write).
interactions.updatePullRequestCreationCapForRepo
Teams
Add Or Update Membership For User In OrgWrite
Add or update team membership for a user. Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. GitHub App permission: members (write).
teams.addOrUpdateMembershipForUserInOrg
Add Or Update Repo Permissions In OrgWrite
Add or update team repository permissions. To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. GitHub App permission: members (read), administration (write).
teams.addOrUpdateRepoPermissionsInOrg
Check Permissions For Repo In OrgRead-only
Check team permissions for a repository. Checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked. GitHub App permission: members (read).
teams.checkPermissionsForRepoInOrg
CreateWrite
Create a team. To create a team, the authenticated user must be a member or owner of `{org}`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see "[Setting team creation permissions](https://docs.github.com/articles/setting-team-creation-permissions-in-your-organization)." GitHub App permission: members (write).
teams.create
Delete In OrgDestructive
Delete a team. To delete a team, the authenticated user must be an organization owner or team maintainer. GitHub App permission: members (write).
teams.deleteInOrg
Get By NameRead-only
Get a team by name. Gets a team using the team's `slug`. To create the `slug`, GitHub replaces special characters in the `name` string, changes all words to lowercase, and replaces spaces with a `-` separator. For example, `"My TEam Näme"` would become `my-team-name`. GitHub App permission: members (read).
teams.getByName
Get Membership For User In OrgRead-only
Get team membership for a user. Team members will include the members of child teams. GitHub App permission: members (read).
teams.getMembershipForUserInOrg
ListRead-only
List teams. Lists all teams in an organization that are visible to the authenticated user. GitHub App permission: members (read).
teams.list
List Child In OrgRead-only
List child teams. Lists the child teams of the team specified by `{team_slug}`. GitHub App permission: members (read).
teams.listChildInOrg
List For Authenticated UserRead-only
List teams for the authenticated user. List all of the teams across all of the organizations to which the authenticated user belongs.
teams.listForAuthenticatedUser
List Members In OrgRead-only
List team members. Team members will include the members of child teams. GitHub App permission: members (read).
teams.listMembersInOrg
List Pending Invitations In OrgRead-only
List pending team invitations. The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. GitHub App permission: members (read).
teams.listPendingInvitationsInOrg
List Repos In OrgRead-only
List team repositories. Lists a team's repositories visible to the authenticated user. GitHub App permission: members (read).
teams.listReposInOrg
Remove Membership For User In OrgDestructive
Remove team membership for a user. To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. GitHub App permission: members (write).
teams.removeMembershipForUserInOrg
Remove Repo In OrgDestructive
Remove a repository from a team. If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team. GitHub App permission: members (read), administration (write).
teams.removeRepoInOrg
Update In OrgWrite
Update a team. To edit a team, the authenticated user must either be an organization owner or a team maintainer. GitHub App permission: members (write).
teams.updateInOrg
Reactions
Create For Commit CommentWrite
Create reaction for a commit comment. Create a reaction to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment). A response with an HTTP `200` status means that you already added the reaction type to this commit comment. GitHub App permission: contents (write).
reactions.createForCommitComment
Create For IssueWrite
Create reaction for an issue. Create a reaction to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue). A response with an HTTP `200` status means that you already added the reaction type to this issue. GitHub App permission: issues (write).
reactions.createForIssue
Create For Issue CommentWrite
Create reaction for an issue comment. Create a reaction to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment). A response with an HTTP `200` status means that you already added the reaction type to this issue comment. GitHub App permission: issues (write).
reactions.createForIssueComment
Create For Pull Request Review CommentWrite
Create reaction for a pull request review comment. Create a reaction to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request). A response with an HTTP `200` status means that you already added the reaction type to this pull request review comment. GitHub App permission: pull_requests (write).
reactions.createForPullRequestReviewComment
Create For ReleaseWrite
Create reaction for a release. Create a reaction to a [release](https://docs.github.com/rest/releases/releases#get-a-release). A response with a `Status: 200 OK` means that you already added the reaction type to this release.
reactions.createForRelease
Delete For Commit CommentDestructive
Delete a commit comment reaction. > [!NOTE] > You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id`. GitHub App permission: contents (write).
reactions.deleteForCommitComment
Delete For IssueDestructive
Delete an issue reaction. > [!NOTE] > You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id`. GitHub App permission: issues (write).
reactions.deleteForIssue
Delete For Issue CommentDestructive
Delete an issue comment reaction. > [!NOTE] > You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id`. GitHub App permission: issues (write).
reactions.deleteForIssueComment
Delete For Pull Request CommentDestructive
Delete a pull request comment reaction. > [!NOTE] > You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.` GitHub App permission: pull_requests (write).
reactions.deleteForPullRequestComment
Delete For ReleaseDestructive
Delete a release reaction. > [!NOTE] > You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/releases/:release_id/reactions/:reaction_id`.
reactions.deleteForRelease
List For Commit CommentRead-only
List reactions for a commit comment. List the reactions to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment). GitHub App permission: metadata (read).
reactions.listForCommitComment
List For IssueRead-only
List reactions for an issue. List the reactions to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue). GitHub App permission: issues (read).
reactions.listForIssue
List For Issue CommentRead-only
List reactions for an issue comment. List the reactions to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment). GitHub App permission: issues (read).
reactions.listForIssueComment
List For Pull Request Review CommentRead-only
List reactions for a pull request review comment. List the reactions to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request). GitHub App permission: pull_requests (read).
reactions.listForPullRequestReviewComment
List For ReleaseRead-only
List reactions for a release. List the reactions to a [release](https://docs.github.com/rest/releases/releases#get-a-release).
reactions.listForRelease
Migrations
Delete Archive For Authenticated UserDestructive
Delete a user migration archive. Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Not available to GitHub App user tokens: needs a personal access token.
migrations.deleteArchiveForAuthenticatedUser
Delete Archive For OrgDestructive
Delete an organization migration archive. Deletes a previous migration archive. Migration archives are automatically deleted after seven days. Not available to GitHub App user tokens: needs a personal access token.
migrations.deleteArchiveForOrg
Download Archive For OrgRead-only
Download an organization migration archive. Fetches the URL to a migration archive. Not available to GitHub App user tokens: needs a personal access token.
migrations.downloadArchiveForOrg
Get Archive For Authenticated UserRead-only
Download a user migration archive. Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects: Not available to GitHub App user tokens: needs a personal access token.
migrations.getArchiveForAuthenticatedUser
Get Status For Authenticated UserRead-only
Get a user migration status. Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values: Not available to GitHub App user tokens: needs a personal access token.
migrations.getStatusForAuthenticatedUser
Get Status For OrgRead-only
Get an organization migration status. Fetches the status of a migration. Not available to GitHub App user tokens: needs a personal access token.
migrations.getStatusForOrg
List For Authenticated UserRead-only
List user migrations. Lists all migrations a user has started. Not available to GitHub App user tokens: needs a personal access token.
migrations.listForAuthenticatedUser
List For OrgRead-only
List organization migrations. Lists the most recent migrations, including both exports (which can be started through the REST API) and imports (which cannot be started using the REST API). Not available to GitHub App user tokens: needs a personal access token.
migrations.listForOrg
List Repos For Authenticated UserRead-only
List repositories for a user migration. Lists all the repositories for this user migration. Not available to GitHub App user tokens: needs a personal access token.
migrations.listReposForAuthenticatedUser
List Repos For OrgRead-only
List repositories in an organization migration. List all the repositories for this organization migration. Not available to GitHub App user tokens: needs a personal access token.
migrations.listReposForOrg
Start For Authenticated UserDestructive
Start a user migration. Initiates the generation of a user migration archive. Not available to GitHub App user tokens: needs a personal access token.
migrations.startForAuthenticatedUser
Start For OrgDestructive
Start an organization migration. Initiates the generation of a migration archive. Not available to GitHub App user tokens: needs a personal access token.
migrations.startForOrg
Unlock Repo For Authenticated UserDestructive
Unlock a user repository. Unlocks a repository. You can lock repositories when you [start a user migration](https://docs.github.com/rest/migrations/users#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://docs.github.com/rest/repos/repos#delete-a-repository) if you no longer need the source data. Not available to GitHub App user tokens: needs a personal access token.
migrations.unlockRepoForAuthenticatedUser
Unlock Repo For OrgDestructive
Unlock an organization repository. Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://docs.github.com/rest/repos/repos#delete-a-repository) when the migration is complete and you no longer need the source data. Not available to GitHub App user tokens: needs a personal access token.
migrations.unlockRepoForOrg
Security Advisories
Create ForkWrite
Create a temporary private fork. Create a temporary private fork to collaborate on fixing a security vulnerability in a repository. GitHub App permission: administration (write), repository_advisories (read).
securityAdvisories.createFork
Create Private Vulnerability ReportWrite
Privately report a security vulnerability. Report a security vulnerability to the maintainers of the repository. See "[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)" for more information about private vulnerability reporting. GitHub App permission: repository_advisories (write).
Request a CVE for a repository security advisory. If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. GitHub App permission: repository_advisories (write).
Get a global security advisory. Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
securityAdvisories.getGlobalAdvisory
Get Repository AdvisoryRead-only
Get a repository security advisory. Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier. GitHub App permission: repository_advisories (read).
securityAdvisories.getRepositoryAdvisory
Get Repository Advisory CommentRead-only
Get a repository advisory comment. Get a comment on a repository security advisory using the comment's ID. GitHub App permission: repository_advisories (read).
securityAdvisories.getRepositoryAdvisoryComment
List Global AdvisoriesRead-only
List global security advisories. Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
securityAdvisories.listGlobalAdvisories
List Org Repository AdvisoriesRead-only
List repository security advisories for an organization. Lists repository security advisories for an organization. GitHub App permission: repository_advisories (write).
securityAdvisories.listOrgRepositoryAdvisories
List Repository AdvisoriesRead-only
List repository security advisories. Lists security advisories in a repository. GitHub App permission: repository_advisories (read).
securityAdvisories.listRepositoryAdvisories
List Repository Advisory CommentsRead-only
List repository security advisory comments. Lists comments on a repository security advisory. GitHub App permission: repository_advisories (read).
securityAdvisories.listRepositoryAdvisoryComments
Update Repository AdvisoryWrite
Update a repository security advisory. Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier. GitHub App permission: repository_advisories (write).
securityAdvisories.updateRepositoryAdvisory
Update Repository Advisory CommentWrite
Update a repository advisory comment. Update the body of a comment on a repository security advisory using the comment's ID. GitHub App permission: repository_advisories (write).
Create a budget for an organization. Creates a new budget for an organization. The authenticated user must be an organization admin or billing manager. GitHub App permission: organization_administration (write).
billing.createOrganizationBudget
Delete Budget OrgDestructive
Delete a budget for an organization. Deletes a budget by ID for an organization. The authenticated user must be an organization admin or billing manager. GitHub App permission: organization_administration (write).
billing.deleteBudgetOrg
Get All Budgets OrgRead-only
Get all budgets for an organization. Gets all budgets for an organization. The authenticated user must be an organization admin or billing manager. Each page returns up to 100 budgets. GitHub App permission: organization_administration (read).
billing.getAllBudgetsOrg
Get Budget OrgRead-only
Get a budget by ID for an organization. Gets a budget by ID. The authenticated user must be an organization admin or billing manager. GitHub App permission: organization_administration (read).
billing.getBudgetOrg
Get Github Billing Ai Credit Usage Report OrgRead-only
Get billing AI credit usage report for an organization. Gets a report of AI credit usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. GitHub App permission: organization_administration (read).
billing.getGithubBillingAiCreditUsageReportOrg
Get Github Billing Ai Credit Usage Report UserRead-only
Get billing AI credit usage report for a user. Gets a report of AI credit usage for a user. GitHub App permission: plan (read).
billing.getGithubBillingAiCreditUsageReportUser
Get Github Billing Premium Request Usage Report OrgRead-only
Get billing premium request usage report for an organization. Gets a report of premium request usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. GitHub App permission: organization_administration (read).
Get billing usage report for an organization. Gets a report of the total usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. GitHub App permission: organization_administration (read).
billing.getGithubBillingUsageReportOrg
Get Github Billing Usage Report UserRead-only
Get billing usage report for a user. Gets a report of the total usage for a user. GitHub App permission: plan (read).
billing.getGithubBillingUsageReportUser
Get Github Billing Usage Summary Report OrgRead-only
Get billing usage summary for an organization. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: organization_administration (read).
billing.getGithubBillingUsageSummaryReportOrg
Get Github Billing Usage Summary Report UserRead-only
Get billing usage summary for a user. > [!NOTE] > This endpoint is in public preview and is subject to change. GitHub App permission: plan (read).
billing.getGithubBillingUsageSummaryReportUser
Update Budget OrgWrite
Update a budget for an organization. Updates an existing budget for an organization. The authenticated user must be an organization admin or billing manager. GitHub App permission: organization_administration (write).
billing.updateBudgetOrg
Git
Create BlobWrite
Create a blob. GitHub App permission: contents (write).
git.createBlob
Create CommitWrite
Create a commit. Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). GitHub App permission: contents (write).
git.createCommit
Create RefWrite
Create a reference. Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit object ID used exists. Empty repositories are repositories without branches. GitHub App permission: contents (write), workflows (write).
git.createRef
Create TagWrite
Create a tag object. Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. GitHub App permission: contents (write).
git.createTag
Create TreeWrite
Create a tree. The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure. GitHub App permission: contents (write).
git.createTree
Delete RefDestructive
Delete a reference. Deletes the provided reference. GitHub App permission: contents (write).
git.deleteRef
Get BlobRead-only
Get a blob. The `content` in the response will always be Base64 encoded. GitHub App permission: contents (read).
git.getBlob
Get CommitRead-only
Get a commit object. Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). GitHub App permission: contents (read).
git.getCommit
Get RefRead-only
Get a reference. Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned. GitHub App permission: contents (read).
git.getRef
Get TagRead-only
Get a tag. **Signature verification object** GitHub App permission: contents (read).
git.getTag
Get TreeRead-only
Get a tree. Returns a single tree using the SHA1 value or ref name for that tree. GitHub App permission: contents (read).
git.getTree
List Matching RefsRead-only
List matching references. Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array. GitHub App permission: contents (read).
git.listMatchingRefs
Update RefDestructive
Update a reference. Updates the provided reference to point to a new SHA. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. GitHub App permission: contents (write), workflows (write).
git.updateRef
Checks
CreateWrite
Create a check run. Creates a new check run for a specific commit in a repository. GitHub App permission: checks (write).
checks.create
Create SuiteWrite
Create a check suite. Creates a check suite manually. By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). GitHub App permission: checks (write).
checks.createSuite
GetRead-only
Get a check run. Gets a single check run using its `id`. GitHub App permission: checks (read).
checks.get
Get SuiteRead-only
Get a check suite. Gets a single check suite using its `id`. GitHub App permission: checks (read).
checks.getSuite
List AnnotationsRead-only
List check run annotations. Lists annotations for a check run using the annotation `id`. GitHub App permission: checks (read).
checks.listAnnotations
List For RefRead-only
List check runs for a Git reference. Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub App permission: checks (read).
checks.listForRef
List For SuiteRead-only
List check runs in a check suite. Lists check runs for a check suite using its `id`. GitHub App permission: checks (read).
checks.listForSuite
List Suites For RefRead-only
List check suites for a Git reference. Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub App permission: checks (read).
checks.listSuitesForRef
Rerequest RunWrite
Rerequest a check run. Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, the `status` of the check suite it belongs to is reset to `queued` and the `conclusion` is cleared. GitHub App permission: checks (write).
checks.rerequestRun
Rerequest SuiteWrite
Rerequest a check suite. Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. GitHub App permission: checks (write).
checks.rerequestSuite
Set Suites PreferencesWrite
Update repository preferences for check suites. Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite). GitHub App permission: checks (write).
checks.setSuitesPreferences
UpdateWrite
Update a check run. Updates a check run for a specific commit in a repository. GitHub App permission: checks (write).
checks.update
Api Insights
Get Route Stats By ActorRead-only
Get route stats by actor. Get API request count statistics for an actor broken down by route within a specified time frame. GitHub App permission: organization_api_insights (read).
apiInsights.getRouteStatsByActor
Get Subject StatsRead-only
Get subject stats. Get API request statistics for all subjects within an organization within a specified time frame. Subjects can be users or GitHub Apps. GitHub App permission: organization_api_insights (read).
apiInsights.getSubjectStats
Get Summary StatsRead-only
Get summary stats. Get overall statistics of API requests made within an organization by all users and apps within a specified time frame. GitHub App permission: organization_api_insights (read).
apiInsights.getSummaryStats
Get Summary Stats By ActorRead-only
Get summary stats by actor. Get overall statistics of API requests within the organization made by a specific actor. Actors can be GitHub App installations, OAuth apps or other tokens on behalf of a user. GitHub App permission: organization_api_insights (read).
apiInsights.getSummaryStatsByActor
Get Summary Stats By UserRead-only
Get summary stats by user. Get overall statistics of API requests within the organization for a user. GitHub App permission: organization_api_insights (read).
apiInsights.getSummaryStatsByUser
Get Time StatsRead-only
Get time stats. Get the number of API requests and rate-limited requests made within an organization over a specified time period. GitHub App permission: organization_api_insights (read).
apiInsights.getTimeStats
Get Time Stats By ActorRead-only
Get time stats by actor. Get the number of API requests and rate-limited requests made within an organization by a specific actor within a specified time period. GitHub App permission: organization_api_insights (read).
apiInsights.getTimeStatsByActor
Get Time Stats By UserRead-only
Get time stats by user. Get the number of API requests and rate-limited requests made within an organization by a specific user over a specified time period. GitHub App permission: organization_api_insights (read).
apiInsights.getTimeStatsByUser
Get User StatsRead-only
Get user stats. Get API usage statistics within an organization for a user broken down by the type of access. GitHub App permission: organization_api_insights (read).
apiInsights.getUserStats
Events
ListRead-only
List public GitHub events
events.list
List For NetworkRead-only
List public events for a repository network
events.listForNetwork
List For OrgRead-only
List public events for an organization
events.listForOrg
List For RepositoryRead-only
List events for a repository
events.listForRepository
List For UserRead-only
List events for a user
events.listForUser
List For User OrgRead-only
List organization events for a user
events.listForUserOrg
List Public For UserRead-only
List public events for a user
events.listPublicForUser
List Public Received For UserRead-only
List public events received by a user
events.listPublicReceivedForUser
List Received For UserRead-only
List events received by a user
events.listReceivedForUser
Oidc
Create Oidc Custom Property Inclusion For EnterpriseWrite
Create an OIDC custom property inclusion for an enterprise. Adds a repository custom property to be included in the OIDC token for repository actions in an enterprise. Not available to GitHub App user tokens: needs a personal access token.
Create Oidc Custom Property Inclusion For OrgWrite
Create an OIDC custom property inclusion for an organization. Adds a repository custom property to be included in the OIDC token for repository actions in an organization. GitHub App permission: organization_administration (write).
oidc.createOidcCustomPropertyInclusionForOrg
Delete Oidc Custom Property Inclusion For EnterpriseDestructive
Delete an OIDC custom property inclusion for an enterprise. Removes a repository custom property from being included in the OIDC token for repository actions in an enterprise. Not available to GitHub App user tokens: needs a personal access token.
Delete Oidc Custom Property Inclusion For OrgDestructive
Delete an OIDC custom property inclusion for an organization. Removes a repository custom property from being included in the OIDC token for repository actions in an organization. GitHub App permission: organization_administration (write).
oidc.deleteOidcCustomPropertyInclusionForOrg
Get Oidc Custom Sub Template For OrgRead-only
Get the customization template for an OIDC subject claim for an organization. Gets the customization template for an OpenID Connect (OIDC) subject claim. GitHub App permission: organization_administration (read).
oidc.getOidcCustomSubTemplateForOrg
List Oidc Custom Property Inclusions For EnterpriseRead-only
List OIDC custom property inclusions for an enterprise. Lists the repository custom properties that are included in the OIDC token for repository actions in an enterprise. Not available to GitHub App user tokens: needs a personal access token.
List Oidc Custom Property Inclusions For OrgRead-only
List OIDC custom property inclusions for an organization. Lists the repository custom properties that are included in the OIDC token for repository actions in an organization. GitHub App permission: organization_administration (read).
oidc.listOidcCustomPropertyInclusionsForOrg
Update Oidc Custom Sub Template For OrgWrite
Set the customization template for an OIDC subject claim for an organization. Creates or updates the customization template for an OpenID Connect (OIDC) subject claim. GitHub App permission: organization_administration (write).
oidc.updateOidcCustomSubTemplateForOrg
Search
CodeRead-only
Search code. Searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
search.code
CommitsRead-only
Search commits. Find commits via various criteria on the default branch (usually `main`). This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
search.commits
IssuesRead-only
Search issues and pull requests with structured fields (keywords, type, state, author, assignee, label, repo, org, created, updated, ...) or a raw q of GitHub qualifiers; no qualifier syntax needed. users.getAuthenticated gives your own login.
search.issues
LabelsRead-only
Search labels. Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). GitHub App permission: metadata (read).
search.labels
RepositoriesRead-only
Search GitHub repositories
search.repositories
TopicsRead-only
Search topics. Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). See "[Searching topics](https://docs.github.com/articles/searching-topics/)" for a detailed list of qualifiers.
search.topics
UsersRead-only
Search GitHub users and organizations
search.users
Hosted Compute
Create Network Configuration For OrgWrite
Create a hosted compute network configuration for an organization. Creates a hosted compute network configuration for an organization. GitHub App permission: organization_network_configurations (write).
hostedCompute.createNetworkConfigurationForOrg
Delete Network Configuration From OrgDestructive
Delete a hosted compute network configuration from an organization. Deletes a hosted compute network configuration from an organization. GitHub App permission: organization_network_configurations (write).
hostedCompute.deleteNetworkConfigurationFromOrg
Get Network Configuration For OrgRead-only
Get a hosted compute network configuration for an organization. Gets a hosted compute network configuration configured in an organization. GitHub App permission: organization_network_configurations (read).
hostedCompute.getNetworkConfigurationForOrg
Get Network Settings For OrgRead-only
Get a hosted compute network settings resource for an organization. Gets a hosted compute network settings resource configured for an organization. GitHub App permission: organization_network_configurations (read).
hostedCompute.getNetworkSettingsForOrg
List Network Configurations For OrgRead-only
List hosted compute network configurations for an organization. Lists all hosted compute network configurations configured in an organization. GitHub App permission: organization_network_configurations (read).
hostedCompute.listNetworkConfigurationsForOrg
Update Network Configuration For OrgWrite
Update a hosted compute network configuration for an organization. Updates a hosted compute network configuration for an organization. GitHub App permission: organization_network_configurations (write).
hostedCompute.updateNetworkConfigurationForOrg
Private Registries
Create Org Private RegistryWrite
Create a private registry for an organization. Creates a private registry configuration with an encrypted value for an organization. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: organization_private_registries (write).
privateRegistries.createOrgPrivateRegistry
Delete Org Private RegistryDestructive
Delete a private registry for an organization. Delete a private registry configuration at the organization-level. GitHub App permission: organization_private_registries (write).
privateRegistries.deleteOrgPrivateRegistry
Get Org Private RegistryRead-only
Get a private registry for an organization. Get the configuration of a single private registry defined for an organization, omitting its encrypted value. GitHub App permission: organization_private_registries (read).
privateRegistries.getOrgPrivateRegistry
Get Org Public KeyRead-only
Get private registries public key for an organization. Gets the org public key, which is needed to encrypt private registry secrets. You need to encrypt a secret before you can create or update secrets. GitHub App permission: organization_private_registries (read).
privateRegistries.getOrgPublicKey
List Org Private RegistriesRead-only
List private registries for an organization. Lists all private registry configurations available at the organization-level without revealing their encrypted values. GitHub App permission: organization_private_registries (read).
privateRegistries.listOrgPrivateRegistries
Update Org Private RegistryWrite
Update a private registry for an organization. Updates a private registry configuration with an encrypted value for an organization. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." GitHub App permission: organization_private_registries (write).
privateRegistries.updateOrgPrivateRegistry
Agent Tasks
Create Task In RepoWrite
Start a task. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentTasks.createTaskInRepo
Get Task By IdRead-only
Get a task by ID. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentTasks.getTaskById
Get Task By Repo And IdRead-only
Get a task by repo. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentTasks.getTaskByRepoAndId
List TasksRead-only
List tasks. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentTasks.listTasks
List Tasks For RepoRead-only
List tasks for repository. > [!NOTE] > This endpoint is in public preview and is subject to change. Not available to GitHub App user tokens: needs a personal access token.
agentTasks.listTasksForRepo
Campaigns
Create CampaignWrite
Create a campaign for an organization. GitHub App permission: organization_campaigns (write).
campaigns.createCampaign
Delete CampaignDestructive
Delete a campaign for an organization. Deletes a campaign in an organization. GitHub App permission: organization_campaigns (write).
campaigns.deleteCampaign
Get Campaign SummaryRead-only
Get a campaign for an organization. Gets a campaign for an organization. GitHub App permission: organization_campaigns (read).
campaigns.getCampaignSummary
List Org CampaignsRead-only
List campaigns for an organization. Lists campaigns in an organization. GitHub App permission: organization_campaigns (read).
campaigns.listOrgCampaigns
Update CampaignWrite
Update a campaign. Updates a campaign in an organization. GitHub App permission: organization_campaigns (write).
campaigns.updateCampaign
Comments
DeleteWrite
Delete a comment
comments.delete
GetRead-only
Get a specific comment
comments.get
ListRead-only
Issue and pull request conversation comments across one repo, not inline code-review comments. For one issue or PR use comments.listForIssue.
comments.list
List For IssueRead-only
List comments on a specific issue or pull request
comments.listForIssue
UpdateWrite
Update a comment
comments.update
Meta
GetRead-only
Get GitHub meta information. Returns meta information about GitHub, including a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://docs.github.com/articles/about-github-s-ip-addresses/)."
meta.get
Get All VersionsRead-only
Get all API versions. Get all supported GitHub API versions.
meta.getAllVersions
Get OctocatRead-only
Get Octocat. Get the octocat as ASCII art
meta.getOctocat
Get ZenRead-only
Get the Zen of GitHub. Get a random sentence from the Zen of GitHub
meta.getZen
RootRead-only
GitHub API Root. Get Hypermedia links to resources accessible in GitHub's REST API
meta.root
Pull Request Stacks
AddWrite
Add pull requests to a pull request stack. Appends an ordered list of pull request numbers onto the top of an existing stack. Provide only the pull requests you want to add, from the current top of the stack upward. The first new pull request's base ref must match the current top pull request's head ref. GitHub App permission: pull_requests (write).
pullRequestStacks.add
CreateWrite
Create a pull request stack. Creates a stack from an ordered list of pull request numbers. Provide the pull request numbers from the bottom of the stack to the top. Each pull request's base ref must match the previous pull request's head ref. GitHub App permission: pull_requests (write).
pullRequestStacks.create
GetRead-only
Get a pull request stack. Gets a pull request stack by providing its stack number. GitHub App permission: pull_requests (read).
pullRequestStacks.get
ListRead-only
List pull request stacks. Lists pull request stacks in a repository. GitHub App permission: pull_requests (read).
pullRequestStacks.list
UnstackWrite
Remove pull requests from a pull request stack. Removes the unmerged pull requests from a stack. Pull requests that cannot be unstacked (for example, those that are queued for merge) are left in place. When pull requests remain in the stack, the updated stack is returned with a `200`. When no pull requests remain, the stack is dissolved and a `204` is returned. GitHub App permission: pull_requests (write).
pullRequestStacks.unstack
Code Quality
Get FindingRead-only
Get a code quality finding. Gets a single code quality finding. GitHub App permission: code_quality (read).
codeQuality.getFinding
Get SetupRead-only
Get a code quality setup configuration. Gets a code quality setup configuration. GitHub App permission: administration (write).
codeQuality.getSetup
List Findings For RepoRead-only
List code quality findings for a repository. Lists code quality findings for a repository. GitHub App permission: code_quality (read).
codeQuality.listFindingsForRepo
Update SetupWrite
Update a code quality setup configuration. Updates a code quality setup configuration. GitHub App permission: administration (write).
codeQuality.updateSetup
Dependency Graph
Create Repository SnapshotWrite
Create a snapshot of dependencies for a repository. Create a new snapshot of a repository's dependencies. GitHub App permission: contents (write).
dependencyGraph.createRepositorySnapshot
Diff RangeRead-only
Get a diff of the dependencies between commits. Gets the diff of the dependency changes between two commits of a repository, based on the changes to the dependency manifests made in those commits. GitHub App permission: contents (read).
dependencyGraph.diffRange
Fetch Sbom ReportRead-only
Fetch a software bill of materials (SBOM) for a repository. Fetches a previously generated software bill of materials (SBOM) for a repository. When the SBOM is ready, the response is a 302 redirect to a temporary download URL for the SBOM in SPDX JSON format. The generated SBOM report may be retained for up to one week from the original request. GitHub App permission: contents (read).
dependencyGraph.fetchSbomReport
Generate Sbom ReportRead-only
Request generation of a software bill of materials (SBOM) for a repository. Triggers a job to generate a software bill of materials (SBOM) for a repository in SPDX JSON format. GitHub App permission: contents (read).
dependencyGraph.generateSbomReport
Releases
CreateWrite
Create a new release
releases.create
GetRead-only
Get a specific release
releases.get
ListRead-only
List releases in a repository
releases.list
UpdateWrite
Update an existing release
releases.update
Agent Merge
Delete Agent Merge EnrollmentDestructive
Disable Agent Merge for a pull request. Disables Agent Merge for a pull request. Not available to GitHub App user tokens: needs a personal access token.
agentMerge.deleteAgentMergeEnrollment
Get Agent Merge EnrollmentRead-only
Get Agent Merge configuration for a pull request. Gets the Agent Merge configuration for a pull request. Not available to GitHub App user tokens: needs a personal access token.
agentMerge.getAgentMergeEnrollment
Put Agent Merge EnrollmentWrite
Update Agent Merge configuration for a pull request. Updates the Agent Merge configuration for a pull request, enabling Agent Merge or changing the allowed actions that Copilot is allowed to take on the pull request. Not available to GitHub App user tokens: needs a personal access token.
agentMerge.putAgentMergeEnrollment
Licenses
GetRead-only
Get a license. Gets information about a specific license. For more information, see "[Licensing a repository ](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)."
licenses.get
Get All Commonly UsedRead-only
Get all commonly used licenses. Lists the most commonly used licenses on GitHub. For more information, see "[Licensing a repository ](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)."
licenses.getAllCommonlyUsed
Get For RepoRead-only
Get the license for a repository. This method returns the contents of the repository's license file, if one is detected. GitHub App permission: metadata (read).
licenses.getForRepo
Workflows
GetRead-only
Get a specific workflow
workflows.get
ListRead-only
List workflows in a repository
workflows.list
List RunsRead-only
List workflow runs
workflows.listRuns
Codes Of Conduct
Get All Codes Of ConductRead-only
Get all codes of conduct. Returns array of all GitHub's codes of conduct.
codesOfConduct.getAllCodesOfConduct
Get Conduct CodeRead-only
Get a code of conduct. Returns information about the specified GitHub code of conduct.
codesOfConduct.getConductCode
Discussions
GetRead-only
Get a specific discussion
discussions.get
ListRead-only
List discussions in a repository
discussions.list
Forks
CreateWrite
Create a fork of a repository
forks.create
ListRead-only
List forks of a repository
forks.list
Gitignore
Get All TemplatesRead-only
Get all gitignore templates. List all templates available to pass as an option when [creating a repository](https://docs.github.com/rest/repos/repos#create-a-repository-for-the-authenticated-user).
gitignore.getAllTemplates
Get TemplateRead-only
Get a gitignore template. Get the content of a gitignore template.
gitignore.getTemplate
Markdown
RenderRead-only
Render a Markdown document. Depending on what is rendered in the Markdown, you may need to provide additional token scopes for labels, such as `issues:read` or `pull_requests:read`. GitHub App permission: contents (read).
markdown.render
Render RawRead-only
Render a Markdown document in raw mode. You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.
markdown.renderRaw
Credentials
RevokeWrite
Revoke a list of credentials. Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation. Not available to GitHub App user tokens: needs a personal access token.
credentials.revoke
Emojis
GetRead-only
Get emojis. Lists all the emojis available to use on GitHub.
emojis.get
Rate Limit
GetRead-only
Get rate limit status for the authenticated user. > [!NOTE] > Accessing this endpoint does not count against your REST API rate limit.
rateLimit.get
Connect GitHub to Claude, ChatGPT or Cursor
1
Connect GitHub in Corsair
Add your GitHub API key or sign in with OAuth once in Corsair. Corsair stores the credential encrypted and makes the GitHub API calls for your agent, so it never goes into a prompt or a config file. Connect GitHub
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs GitHub. On a ChatGPT personal plan, connect GitHub here first.
2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcp
Open Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.
Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.
Add to Cursor / Grok BuildOr add this to ~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.
Run this, then run /mcp in Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcp
Codex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, GitHub's read and write operations run right away and its 211 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
Install corsair and @corsair-dev/github, add the GitHub plugin, and connect with an API key or OAuth. Then call methods like corsair.github.api.actions.addCustomLabelsToSelfHostedRunnerForOrg() from your app. Corsair verifies webhooks, stores tokens, and syncs data per tenant.
Yes. GitHub supports an API key or OAuth. Use credentials or OAuth scopes that match what you automate. Create them in the GitHub developer console, then paste into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit GitHub, GitHub, Notion, Stripe, and the rest. Trigger GitHub from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for code hosting platform for repositories, issues, pull requests, and developer workflows. Common builds include sync jobs, admin tooling, and agents that call GitHub APIs from your backend. Webhook handlers react to GitHub events and fan out to Slack, email, or other plugins in the same tenant. Local DB entities let you query synced GitHub records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per GitHub API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/github in the open repo. When GitHub ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your GitHub data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store GitHub data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put GitHub on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 211 destructive GitHub operations. You can change a link's mode at hub.corsair.dev/me.