Skip to content

Create an installation access token for an app

POST
/app/installations/{installation_id}/access_tokens

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. By default the installation token has access to all repositories that the installation can access.

[!NOTE] Starting April 27, 2026, GitHub began a staged rollout of a stateless format (ghs_APPID_JWT) to all newly minted GitHub App installation tokens, making them more performant and improving the reliability of our API surface. If your application expects or relies on installation tokens being exactly 40 characters long, it may not handle this new token format correctly. You can now validate your apps and workflows using a temporary request header that lets you enable the token format on demand. For more information about the temporary header, see the GitHub blog.

Optionally, you can use the repositories or repository_ids body parameters to specify individual repositories that the installation access token can access. If you don’t use repositories or repository_ids to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.

Optionally, use the permissions body parameter to specify the permissions that the installation access token should have. If permissions is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.

You must use a JWT to access this endpoint.

API method documentation

installation_id
required
integer

The unique identifier of the installation.

Examples
Example default
1
Media type application/json
object
repositories

List of repository names that the token should have access to

Array<string>
repository_ids

List of repository IDs that the token should have access to

Array<integer>
permissions
App Permissions

The permissions granted to the fine-grained access token.

object
actions

The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.

string
Allowed values: read write
administration

The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.

string
Allowed values: read write
artifact_metadata

The level of permission to grant the access token to create and retrieve build artifact metadata records.

string
Allowed values: read write
attestations

The level of permission to create and retrieve the access token for repository attestations.

string
Allowed values: read write
checks

The level of permission to grant the access token for checks on code.

string
Allowed values: read write
code_quality

The level of permission to grant the access token to view and manage code quality data.

string
Allowed values: read write
codespaces

The level of permission to grant the access token to create, edit, delete, and list Codespaces.

string
Allowed values: read write
contents

The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.

string
Allowed values: read write
dependabot_secrets

The level of permission to grant the access token to manage Dependabot secrets.

string
Allowed values: read write
deployments

The level of permission to grant the access token for deployments and deployment statuses.

string
Allowed values: read write
discussions

The level of permission to grant the access token for discussions and related comments and labels.

string
Allowed values: read write
environments

The level of permission to grant the access token for managing repository environments.

string
Allowed values: read write
issues

The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.

string
Allowed values: read write
merge_queues

The level of permission to grant the access token to manage the merge queues for a repository.

string
Allowed values: read write
metadata

The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.

string
Allowed values: read write
packages

The level of permission to grant the access token for packages published to GitHub Packages.

string
Allowed values: read write
pages

The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.

string
Allowed values: read write
pull_requests

The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.

string
Allowed values: read write
repository_custom_properties

The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property.

string
Allowed values: read write
repository_hooks

The level of permission to grant the access token to manage the post-receive hooks for a repository.

string
Allowed values: read write
repository_projects

The level of permission to grant the access token to manage repository projects, columns, and cards.

string
Allowed values: read write admin
secret_scanning_alerts

The level of permission to grant the access token to view and manage secret scanning alerts.

string
Allowed values: read write
secrets

The level of permission to grant the access token to manage repository secrets.

string
Allowed values: read write
security_events

The level of permission to grant the access token to view and manage security events like code scanning alerts.

string
Allowed values: read write
single_file

The level of permission to grant the access token to manage just a single file.

string
Allowed values: read write
statuses

The level of permission to grant the access token for commit statuses.

string
Allowed values: read write
vulnerability_alerts

The level of permission to grant the access token to manage Dependabot alerts.

string
Allowed values: read write
workflows

The level of permission to grant the access token to update GitHub Actions workflow files.

string
Allowed values: write
custom_properties_for_organizations

The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property.

string
Allowed values: read write
members

The level of permission to grant the access token for organization teams and members.

string
Allowed values: read write
organization_administration

The level of permission to grant the access token to manage access to an organization.

string
Allowed values: read write
organization_custom_roles

The level of permission to grant the access token for custom repository roles management.

string
Allowed values: read write
organization_custom_org_roles

The level of permission to grant the access token for custom organization roles management.

string
Allowed values: read write
organization_custom_properties

The level of permission to grant the access token for repository custom properties management at the organization level.

string
Allowed values: read write admin
organization_copilot_seat_management

The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.

string
Allowed values: read write
organization_copilot_agent_settings

The level of permission to grant the access token to view and manage Copilot cloud agent settings for an organization.

string
Allowed values: read write
organization_announcement_banners

The level of permission to grant the access token to view and manage announcement banners for an organization.

string
Allowed values: read write
organization_events

The level of permission to grant the access token to view events triggered by an activity in an organization.

string
Allowed values: read
organization_hooks

The level of permission to grant the access token to manage the post-receive hooks for an organization.

string
Allowed values: read write
organization_personal_access_tokens

The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization.

string
Allowed values: read write
organization_personal_access_token_requests

The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization.

string
Allowed values: read write
organization_plan

The level of permission to grant the access token for viewing an organization’s plan.

string
Allowed values: read
organization_projects

The level of permission to grant the access token to manage organization projects and projects public preview (where available).

string
Allowed values: read write admin
organization_packages

The level of permission to grant the access token for organization packages published to GitHub Packages.

string
Allowed values: read write
organization_secrets

The level of permission to grant the access token to manage organization secrets.

string
Allowed values: read write
organization_self_hosted_runners

The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.

string
Allowed values: read write
organization_user_blocking

The level of permission to grant the access token to view and manage users blocked by the organization.

string
Allowed values: read write
email_addresses

The level of permission to grant the access token to manage the email addresses belonging to a user.

string
Allowed values: read write
followers

The level of permission to grant the access token to manage the followers belonging to a user.

string
Allowed values: read write
git_ssh_keys

The level of permission to grant the access token to manage git SSH keys.

string
Allowed values: read write
gpg_keys

The level of permission to grant the access token to view and manage GPG keys belonging to a user.

string
Allowed values: read write
interaction_limits

The level of permission to grant the access token to view and manage interaction limits on a repository.

string
Allowed values: read write
profile

The level of permission to grant the access token to manage the profile settings belonging to a user.

string
Allowed values: write
starring

The level of permission to grant the access token to list and manage repositories a user is starring.

string
Allowed values: read write
enterprise_custom_properties_for_organizations

The level of permission to grant the access token for organization custom properties management at the enterprise level.

string
Allowed values: read write admin
Examples
Example default
{
"repositories": [
"Hello-World"
],
"permissions": {
"issues": "write",
"contents": "read"
}
}

Response

Media type application/json
Installation Token

Authentication token for a GitHub App installed on a user or org.

object
token
required
string
expires_at
required
string
permissions
App Permissions

The permissions granted to the fine-grained access token.

object
actions

The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.

string
Allowed values: read write
administration

The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.

string
Allowed values: read write
artifact_metadata

The level of permission to grant the access token to create and retrieve build artifact metadata records.

string
Allowed values: read write
attestations

The level of permission to create and retrieve the access token for repository attestations.

string
Allowed values: read write
checks

The level of permission to grant the access token for checks on code.

string
Allowed values: read write
code_quality

The level of permission to grant the access token to view and manage code quality data.

string
Allowed values: read write
codespaces

The level of permission to grant the access token to create, edit, delete, and list Codespaces.

string
Allowed values: read write
contents

The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.

string
Allowed values: read write
dependabot_secrets

The level of permission to grant the access token to manage Dependabot secrets.

string
Allowed values: read write
deployments

The level of permission to grant the access token for deployments and deployment statuses.

string
Allowed values: read write
discussions

The level of permission to grant the access token for discussions and related comments and labels.

string
Allowed values: read write
environments

The level of permission to grant the access token for managing repository environments.

string
Allowed values: read write
issues

The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.

string
Allowed values: read write
merge_queues

The level of permission to grant the access token to manage the merge queues for a repository.

string
Allowed values: read write
metadata

The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.

string
Allowed values: read write
packages

The level of permission to grant the access token for packages published to GitHub Packages.

string
Allowed values: read write
pages

The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.

string
Allowed values: read write
pull_requests

The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.

string
Allowed values: read write
repository_custom_properties

The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property.

string
Allowed values: read write
repository_hooks

The level of permission to grant the access token to manage the post-receive hooks for a repository.

string
Allowed values: read write
repository_projects

The level of permission to grant the access token to manage repository projects, columns, and cards.

string
Allowed values: read write admin
secret_scanning_alerts

The level of permission to grant the access token to view and manage secret scanning alerts.

string
Allowed values: read write
secrets

The level of permission to grant the access token to manage repository secrets.

string
Allowed values: read write
security_events

The level of permission to grant the access token to view and manage security events like code scanning alerts.

string
Allowed values: read write
single_file

The level of permission to grant the access token to manage just a single file.

string
Allowed values: read write
statuses

The level of permission to grant the access token for commit statuses.

string
Allowed values: read write
vulnerability_alerts

The level of permission to grant the access token to manage Dependabot alerts.

string
Allowed values: read write
workflows

The level of permission to grant the access token to update GitHub Actions workflow files.

string
Allowed values: write
custom_properties_for_organizations

The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property.

string
Allowed values: read write
members

The level of permission to grant the access token for organization teams and members.

string
Allowed values: read write
organization_administration

The level of permission to grant the access token to manage access to an organization.

string
Allowed values: read write
organization_custom_roles

The level of permission to grant the access token for custom repository roles management.

string
Allowed values: read write
organization_custom_org_roles

The level of permission to grant the access token for custom organization roles management.

string
Allowed values: read write
organization_custom_properties

The level of permission to grant the access token for repository custom properties management at the organization level.

string
Allowed values: read write admin
organization_copilot_seat_management

The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.

string
Allowed values: read write
organization_copilot_agent_settings

The level of permission to grant the access token to view and manage Copilot cloud agent settings for an organization.

string
Allowed values: read write
organization_announcement_banners

The level of permission to grant the access token to view and manage announcement banners for an organization.

string
Allowed values: read write
organization_events

The level of permission to grant the access token to view events triggered by an activity in an organization.

string
Allowed values: read
organization_hooks

The level of permission to grant the access token to manage the post-receive hooks for an organization.

string
Allowed values: read write
organization_personal_access_tokens

The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization.

string
Allowed values: read write
organization_personal_access_token_requests

The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization.

string
Allowed values: read write
organization_plan

The level of permission to grant the access token for viewing an organization’s plan.

string
Allowed values: read
organization_projects

The level of permission to grant the access token to manage organization projects and projects public preview (where available).

string
Allowed values: read write admin
organization_packages

The level of permission to grant the access token for organization packages published to GitHub Packages.

string
Allowed values: read write
organization_secrets

The level of permission to grant the access token to manage organization secrets.

string
Allowed values: read write
organization_self_hosted_runners

The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.

string
Allowed values: read write
organization_user_blocking

The level of permission to grant the access token to view and manage users blocked by the organization.

string
Allowed values: read write
email_addresses

The level of permission to grant the access token to manage the email addresses belonging to a user.

string
Allowed values: read write
followers

The level of permission to grant the access token to manage the followers belonging to a user.

string
Allowed values: read write
git_ssh_keys

The level of permission to grant the access token to manage git SSH keys.

string
Allowed values: read write
gpg_keys

The level of permission to grant the access token to view and manage GPG keys belonging to a user.

string
Allowed values: read write
interaction_limits

The level of permission to grant the access token to view and manage interaction limits on a repository.

string
Allowed values: read write
profile

The level of permission to grant the access token to manage the profile settings belonging to a user.

string
Allowed values: write
starring

The level of permission to grant the access token to list and manage repositories a user is starring.

string
Allowed values: read write
enterprise_custom_properties_for_organizations

The level of permission to grant the access token for organization custom properties management at the enterprise level.

string
Allowed values: read write admin
repository_selection
string
Allowed values: all selected
repositories
Array<object>
Repository

A repository on GitHub.

object
id
required

Unique identifier of the repository

integer format: int64
node_id
required
string
name
required

The name of the repository.

string
full_name
required
string
license
required
License Simple

License Simple

object
key
required
string
name
required
string
url
required
string format: uri
nullable
spdx_id
required
string
nullable
node_id
required
string
html_url
string format: uri
forks
required
integer
permissions
object
admin
required
boolean
pull
required
boolean
triage
boolean
push
required
boolean
maintain
boolean
owner
required
Simple User

A GitHub user.

object
name
string
nullable
email
string
nullable
login
required
string
id
required
integer format: int64
node_id
required
string
avatar_url
required
string format: uri
gravatar_id
required
string
nullable
url
required
string format: uri
html_url
required
string format: uri
followers_url
required
string format: uri
following_url
required
string
gists_url
required
string
starred_url
required
string
subscriptions_url
required
string format: uri
organizations_url
required
string format: uri
repos_url
required
string format: uri
events_url
required
string
received_events_url
required
string format: uri
type
required
string
site_admin
required
boolean
starred_at
string
user_view_type
string
private
required

Whether the repository is private or public.

boolean
html_url
required
string format: uri
description
required
string
nullable
fork
required
boolean
url
required
string format: uri
archive_url
required
string
assignees_url
required
string
blobs_url
required
string
branches_url
required
string
collaborators_url
required
string
comments_url
required
string
commits_url
required
string
compare_url
required
string
contents_url
required
string
contributors_url
required
string format: uri
deployments_url
required
string format: uri
downloads_url
required
string format: uri
events_url
required
string format: uri
forks_url
required
string format: uri
git_commits_url
required
string
git_refs_url
required
string
git_tags_url
required
string
git_url
required
string
issue_comment_url
required
string
issue_events_url
required
string
issues_url
required
string
keys_url
required
string
labels_url
required
string
languages_url
required
string format: uri
merges_url
required
string format: uri
milestones_url
required
string
notifications_url
required
string
pulls_url
required
string
releases_url
required
string
ssh_url
required
string
stargazers_url
required
string format: uri
statuses_url
required
string
subscribers_url
required
string format: uri
subscription_url
required
string format: uri
tags_url
required
string format: uri
teams_url
required
string format: uri
trees_url
required
string
clone_url
required
string
mirror_url
required
string format: uri
nullable
hooks_url
required
string format: uri
svn_url
required
string format: uri
homepage
required
string format: uri
nullable
language
required
string
nullable
forks_count
required
integer
stargazers_count
required
integer
watchers_count
required
integer
size
required

The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.

integer
default_branch
required

The default branch of the repository.

string
open_issues_count
required
integer
is_template

Whether this repository acts as a template that can be used to generate new repositories.

boolean
topics
Array<string>
has_issues
required

Whether issues are enabled.

boolean
default: true
has_projects
required

Whether projects are enabled.

boolean
default: true
has_wiki
required

Whether the wiki is enabled.

boolean
default: true
has_pages
required
boolean
has_downloads
required

Whether downloads are enabled.

boolean
default: true
has_discussions

Whether discussions are enabled.

boolean
has_pull_requests

Whether pull requests are enabled.

boolean
default: true
pull_request_creation_policy

The policy controlling who can create pull requests: all or collaborators_only.

string
Allowed values: all collaborators_only
archived
required

Whether the repository is archived.

boolean
disabled
required

Returns whether or not this repository disabled.

boolean
visibility

The repository visibility: public, private, or internal.

string
default: public
pushed_at
required
string format: date-time
nullable
created_at
required
string format: date-time
nullable
updated_at
required
string format: date-time
nullable
allow_rebase_merge

Whether to allow rebase merges for pull requests.

boolean
default: true
temp_clone_token
string
allow_squash_merge

Whether to allow squash merges for pull requests.

boolean
default: true
allow_auto_merge

Whether to allow Auto-merge to be used on pull requests.

boolean
delete_branch_on_merge

Whether to delete head branches when pull requests are merged

boolean
allow_update_branch

Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.

boolean
use_squash_pr_title_as_default

Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use squash_merge_commit_title instead.

boolean
squash_merge_commit_title

The default value for a squash merge commit title:

  • PR_TITLE - default to the pull request’s title.
  • COMMIT_OR_PR_TITLE - default to the commit’s title (if only one commit) or the pull request’s title (when more than one commit).
string
Allowed values: PR_TITLE COMMIT_OR_PR_TITLE
squash_merge_commit_message

The default value for a squash merge commit message:

  • PR_BODY - default to the pull request’s body.
  • COMMIT_MESSAGES - default to the branch’s commit messages.
  • BLANK - default to a blank commit message.
string
Allowed values: PR_BODY COMMIT_MESSAGES BLANK
merge_commit_title

The default value for a merge commit title.

  • PR_TITLE - default to the pull request’s title.
  • MERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
string
Allowed values: PR_TITLE MERGE_MESSAGE
merge_commit_message

The default value for a merge commit message.

  • PR_TITLE - default to the pull request’s title.
  • PR_BODY - default to the pull request’s body.
  • BLANK - default to a blank commit message.
string
Allowed values: PR_BODY PR_TITLE BLANK
allow_merge_commit

Whether to allow merge commits for pull requests.

boolean
default: true
allow_forking

Whether to allow forking this repo

boolean
web_commit_signoff_required

Whether to require contributors to sign off on web-based commits

boolean
open_issues
required
integer
watchers
required
integer
master_branch
string
starred_at
string
anonymous_access_enabled

Whether anonymous git access is enabled for this repository

boolean
code_search_index_status

The status of the code search index for this repository

object
lexical_search_ok
boolean
lexical_commit_sha
string
single_file
string
has_multiple_single_files
boolean
single_file_paths
Array<string>
Examples
Example default
{
"token": "ghs_16C7e42F292c6912E7710c838347Ae178B4a",
"expires_at": "2016-07-11T22:14:10Z",
"permissions": {
"issues": "write",
"contents": "read"
},
"repository_selection": "selected",
"repositories": [
{
"id": 1296269,
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
"name": "Hello-World",
"full_name": "octocat/Hello-World",
"owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"private": false,
"html_url": "https://github.com/octocat/Hello-World",
"description": "This your first repo!",
"fork": false,
"url": "https://api.github.com/repos/octocat/Hello-World",
"archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
"assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
"blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
"branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
"collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
"comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
"commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
"compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
"contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
"contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
"deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
"downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
"events_url": "https://api.github.com/repos/octocat/Hello-World/events",
"forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
"git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
"git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
"git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
"git_url": "git:github.com/octocat/Hello-World.git",
"issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
"issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
"issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
"keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
"labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
"languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
"merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
"milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
"notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
"pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
"releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
"ssh_url": "git@github.com:octocat/Hello-World.git",
"stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
"statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
"subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
"subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
"tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
"teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
"trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
"clone_url": "https://github.com/octocat/Hello-World.git",
"mirror_url": "git:git.example.com/octocat/Hello-World",
"hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
"svn_url": "https://svn.github.com/octocat/Hello-World",
"homepage": "https://github.com",
"language": null,
"forks_count": 9,
"stargazers_count": 80,
"watchers_count": 80,
"size": 108,
"default_branch": "master",
"open_issues_count": 0,
"is_template": true,
"topics": [
"octocat",
"atom",
"electron",
"api"
],
"has_issues": true,
"has_projects": true,
"has_wiki": true,
"has_pages": false,
"has_downloads": true,
"archived": false,
"disabled": false,
"visibility": "public",
"pushed_at": "2011-01-26T19:06:43Z",
"created_at": "2011-01-26T19:01:12Z",
"updated_at": "2011-01-26T19:14:43Z",
"permissions": {
"admin": false,
"push": false,
"pull": true
},
"allow_rebase_merge": true,
"template_repository": null,
"temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
"allow_squash_merge": true,
"allow_auto_merge": false,
"delete_branch_on_merge": true,
"allow_merge_commit": true,
"subscribers_count": 42,
"network_count": 0,
"license": {
"key": "mit",
"name": "MIT License",
"url": "https://api.github.com/licenses/mit",
"spdx_id": "MIT",
"node_id": "MDc6TGljZW5zZW1pdA==",
"html_url": "https://github.com/licenses/mit"
},
"forks": 1,
"open_issues": 1,
"watchers": 1
}
]
}

Requires authentication

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Forbidden

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Resource not found

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Validation failed, or the endpoint has been spammed.

Media type application/json
Validation Error

Validation Error

object
message
required
string
documentation_url
required
string
errors
Array<object>
object
resource
string
field
string
message
string
code
required
string
index
integer
value
One of:
string
nullable
Example generated
{
"message": "example",
"documentation_url": "example",
"errors": [
{
"resource": "example",
"field": "example",
"message": "example",
"code": "example",
"index": 1,
"value": [
"example"
]
}
]
}