Use the REST API to interact with GitHub Apps
If you are using your app with GitHub Actions and want to modify workflow files, you must authenticate on behalf of the user with an OAuth token that includes the workflow scope. The user must have admin or write permission to the repository that contains the workflow file. For more information, see Scopes for OAuth apps.
This page lists endpoints that you can access while authenticated as a GitHub App. For more information, see Authenticating as a GitHub App.
See REST API endpoints for GitHub App installations for a list of endpoints that require authentication as a GitHub App installation.
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /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. For more details about your app's installations, see the "List installations for the authenticated app" endpoint.
You must use a JWT to access this endpoint.
Request:
curl -L \
-X GET \
https://api.github.com/app
Response schema (Status: 200):
id: required, integerslug: stringnode_id: required, stringclient_id: stringowner: required, one of:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringdescription: string or nullhtml_url: required, string, format: uriwebsite_url: string or null, format: uriid: required, integernode_id: required, stringname: required, stringslug: required, stringcreated_at: required, string or null, format: date-timeupdated_at: required, string or null, format: date-timeavatar_url: required, string, format: uriname: required, stringdescription: required, string or nullexternal_url: required, string, format: urihtml_url: required, string, format: uricreated_at: required, string, format: date-timeupdated_at: required, string, format: date-timepermissions: required, object, additional properties: string:
issues: stringchecks: stringmetadata: stringcontents: stringdeployments: stringevents: required, array of stringinstallations_count: integerPOST /app-manifests/{code}/conversions
Use this endpoint to complete the handshake necessary when implementing the GitHub App Manifest flow. 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.
accept (string)application/vnd.github+json is recommended.code (string) (required)201 - Created
404 - Resource not found
422 - Validation failed, or the endpoint has been spammed.
Request:
curl -L \
-X POST \
https://api.github.com/app-manifests/CODE/conversions
Response schema (Status: 201):
id: required, integerslug: stringnode_id: required, stringclient_id: stringowner: required, one of:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringdescription: string or nullhtml_url: required, string, format: uriwebsite_url: string or null, format: uriid: required, integernode_id: required, stringname: required, stringslug: required, stringcreated_at: required, string or null, format: date-timeupdated_at: required, string or null, format: date-timeavatar_url: required, string, format: uriname: required, stringdescription: required, string or nullexternal_url: required, string, format: urihtml_url: required, string, format: uricreated_at: required, string, format: date-timeupdated_at: required, string, format: date-timepermissions: required, object, additional properties: string:
issues: stringchecks: stringmetadata: stringcontents: stringdeployments: stringevents: required, array of stringinstallations_count: integerclient_id: required, stringclient_secret: required, stringwebhook_secret: required, string or nullpem: required, stringGET /app/installation-requests
Lists all the pending installation requests for the authenticated GitHub App.
accept (string)application/vnd.github+json is recommended.per_page (integer)
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Default: 30
page (integer)
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Default: 1
200 - List of integration installation requests
304 - Not modified
401 - Requires authentication
Request:
curl -L \
-X GET \
https://api.github.com/app/installation-requests
Response schema (Status: 200):
Array of Integration Installation Request:
id: required, integernode_id: stringaccount: required, any of:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringdescription: string or nullhtml_url: required, string, format: uriwebsite_url: string or null, format: uriid: required, integernode_id: required, stringname: required, stringslug: required, stringcreated_at: required, string or null, format: date-timeupdated_at: required, string or null, format: date-timeavatar_url: required, string, format: urirequester: required, Simple User (see above)created_at: required, string, format: date-timeGET /app/installations
The permissions the installation has are included under the permissions key.
You must use a JWT to access this endpoint.
accept (string)application/vnd.github+json is recommended.per_page (integer)
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Default: 30
page (integer)
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Default: 1
since (string)
Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
outdated (string)
Request:
curl -L \
-X GET \
https://api.github.com/app/installations
Response schema (Status: 200):
Array of Installation:
id: required, integeraccount: required, any of:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringdescription: string or nullhtml_url: required, string, format: uriwebsite_url: string or null, format: uriid: required, integernode_id: required, stringname: required, stringslug: required, stringcreated_at: required, string or null, format: date-timeupdated_at: required, string or null, format: date-timeavatar_url: required, string, format: urirepository_selection: required, string, enum: all, selectedaccess_tokens_url: required, string, format: urirepositories_url: required, string, format: urihtml_url: required, string, format: uriapp_id: required, integerclient_id: stringtarget_id: required, integertarget_type: required, stringpermissions: required, App Permissions:
actions: string, enum: read, writeadministration: string, enum: read, writeartifact_metadata: string, enum: read, writeattestations: string, enum: read, writechecks: string, enum: read, writecode_quality: string, enum: read, writecodespaces: string, enum: read, writecontents: string, enum: read, writedependabot_secrets: string, enum: read, writedeployments: string, enum: read, writediscussions: string, enum: read, writeenvironments: string, enum: read, writeissues: string, enum: read, writemerge_queues: string, enum: read, writemetadata: string, enum: read, writepackages: string, enum: read, writepages: string, enum: read, writepull_requests: string, enum: read, writerepository_custom_properties: string, enum: read, writerepository_hooks: string, enum: read, writerepository_projects: string, enum: read, write, adminsecret_scanning_alerts: string, enum: read, writesecrets: string, enum: read, writesecurity_events: string, enum: read, writesingle_file: string, enum: read, writestatuses: string, enum: read, writevulnerability_alerts: string, enum: read, writeworkflows: string, enum: writecustom_properties_for_organizations: string, enum: read, writemembers: string, enum: read, writeorganization_administration: string, enum: read, writeorganization_custom_roles: string, enum: read, writeorganization_custom_org_roles: string, enum: read, writeorganization_custom_properties: string, enum: read, write, adminorganization_copilot_seat_management: string, enum: read, writeorganization_copilot_agent_settings: string, enum: read, writeorganization_copilot_requests: string, enum: readorganization_external_properties_for_repos: string, enum: read, write, adminorganization_announcement_banners: string, enum: read, writeorganization_events: string, enum: readorganization_hooks: string, enum: read, writeorganization_personal_access_tokens: string, enum: read, writeorganization_personal_access_token_requests: string, enum: read, writeorganization_plan: string, enum: readorganization_projects: string, enum: read, write, adminorganization_packages: string, enum: read, writeorganization_secrets: string, enum: read, writeorganization_self_hosted_runners: string, enum: read, writeorganization_user_blocking: string, enum: read, writeemail_addresses: string, enum: read, writefollowers: string, enum: read, writegit_ssh_keys: string, enum: read, writegpg_keys: string, enum: read, writeinteraction_limits: string, enum: read, writeprofile: string, enum: writestarring: string, enum: read, writeenterprise_custom_properties_for_organizations: string, enum: read, write, adminevents: required, array of stringcreated_at: required, string, format: date-timeupdated_at: required, string, format: date-timesingle_file_name: required, string or nullhas_multiple_single_files: booleansingle_file_paths: array of stringapp_slug: required, stringsuspended_by: required, any of:
suspended_at: required, string or null, format: date-timecontact_email: string or nullGET /app/installations/{installation_id}
Enables an authenticated GitHub App to find an installation's information using the installation id.
You must use a JWT to access this endpoint.
accept (string)application/vnd.github+json is recommended.installation_id (integer) (required)200 - OK
404 - Resource not found
Request:
curl -L \
-X GET \
https://api.github.com/app/installations/1
Response schema (Status: 200):
id: required, integeraccount: required, any of:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringdescription: string or nullhtml_url: required, string, format: uriwebsite_url: string or null, format: uriid: required, integernode_id: required, stringname: required, stringslug: required, stringcreated_at: required, string or null, format: date-timeupdated_at: required, string or null, format: date-timeavatar_url: required, string, format: urirepository_selection: required, string, enum: all, selectedaccess_tokens_url: required, string, format: urirepositories_url: required, string, format: urihtml_url: required, string, format: uriapp_id: required, integerclient_id: stringtarget_id: required, integertarget_type: required, stringpermissions: required, App Permissions:
actions: string, enum: read, writeadministration: string, enum: read, writeartifact_metadata: string, enum: read, writeattestations: string, enum: read, writechecks: string, enum: read, writecode_quality: string, enum: read, writecodespaces: string, enum: read, writecontents: string, enum: read, writedependabot_secrets: string, enum: read, writedeployments: string, enum: read, writediscussions: string, enum: read, writeenvironments: string, enum: read, writeissues: string, enum: read, writemerge_queues: string, enum: read, writemetadata: string, enum: read, writepackages: string, enum: read, writepages: string, enum: read, writepull_requests: string, enum: read, writerepository_custom_properties: string, enum: read, writerepository_hooks: string, enum: read, writerepository_projects: string, enum: read, write, adminsecret_scanning_alerts: string, enum: read, writesecrets: string, enum: read, writesecurity_events: string, enum: read, writesingle_file: string, enum: read, writestatuses: string, enum: read, writevulnerability_alerts: string, enum: read, writeworkflows: string, enum: writecustom_properties_for_organizations: string, enum: read, writemembers: string, enum: read, writeorganization_administration: string, enum: read, writeorganization_custom_roles: string, enum: read, writeorganization_custom_org_roles: string, enum: read, writeorganization_custom_properties: string, enum: read, write, adminorganization_copilot_seat_management: string, enum: read, writeorganization_copilot_agent_settings: string, enum: read, writeorganization_copilot_requests: string, enum: readorganization_external_properties_for_repos: string, enum: read, write, adminorganization_announcement_banners: string, enum: read, writeorganization_events: string, enum: readorganization_hooks: string, enum: read, writeorganization_personal_access_tokens: string, enum: read, writeorganization_personal_access_token_requests: string, enum: read, writeorganization_plan: string, enum: readorganization_projects: string, enum: read, write, adminorganization_packages: string, enum: read, writeorganization_secrets: string, enum: read, writeorganization_self_hosted_runners: string, enum: read, writeorganization_user_blocking: string, enum: read, writeemail_addresses: string, enum: read, writefollowers: string, enum: read, writegit_ssh_keys: string, enum: read, writegpg_keys: string, enum: read, writeinteraction_limits: string, enum: read, writeprofile: string, enum: writestarring: string, enum: read, writeenterprise_custom_properties_for_organizations: string, enum: read, write, adminevents: required, array of stringcreated_at: required, string, format: date-timeupdated_at: required, string, format: date-timesingle_file_name: required, string or nullhas_multiple_single_files: booleansingle_file_paths: array of stringapp_slug: required, stringsuspended_by: required, any of:
suspended_at: required, string or null, format: date-timecontact_email: string or nullDELETE /app/installations/{installation_id}
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" endpoint.
You must use a JWT to access this endpoint.
accept (string)application/vnd.github+json is recommended.installation_id (integer) (required)202 - Accepted
404 - Resource not found
Request:
curl -L \
-X DELETE \
https://api.github.com/app/installations/1
Response schema (Status: 202):
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.
accept (string)application/vnd.github+json is recommended.installation_id (integer) (required)repositories (array of strings)
List of repository names that the token should have access to
repository_ids (array of integers)
List of repository IDs that the token should have access to
permissions (object)
The permissions granted to the fine-grained access token.
actions (string)read, writeadministration (string)read, writeartifact_metadata (string)read, writeattestations (string)read, writechecks (string)read, writecode_quality (string)read, writecodespaces (string)read, writecontents (string)read, writedependabot_secrets (string)read, writedeployments (string)read, writediscussions (string)read, writeenvironments (string)read, writeissues (string)read, writemerge_queues (string)read, writemetadata (string)read, writepackages (string)read, writepages (string)read, writepull_requests (string)read, writerepository_custom_properties (string)read, writerepository_hooks (string)read, writerepository_projects (string)read, write, adminsecret_scanning_alerts (string)read, writesecrets (string)read, writesecurity_events (string)read, writesingle_file (string)read, writestatuses (string)read, writevulnerability_alerts (string)read, writeworkflows (string)writecustom_properties_for_organizations (string)read, writemembers (string)read, writeorganization_administration (string)read, writeorganization_custom_roles (string)read, writeorganization_custom_org_roles (string)read, writeorganization_custom_properties (string)read, write, adminorganization_copilot_seat_management (string)read, writeorganization_copilot_agent_settings (string)read, writeorganization_copilot_requests (string)readorganization_external_properties_for_repos (string)read, write, adminorganization_announcement_banners (string)read, writeorganization_events (string)readorganization_hooks (string)read, writeorganization_personal_access_tokens (string)read, writeorganization_personal_access_token_requests (string)read, writeorganization_plan (string)readorganization_projects (string)read, write, adminorganization_packages (string)read, writeorganization_secrets (string)read, writeorganization_self_hosted_runners (string)read, writeorganization_user_blocking (string)read, writeemail_addresses (string)read, writefollowers (string)read, writegit_ssh_keys (string)read, writegpg_keys (string)read, writeinteraction_limits (string)read, writeprofile (string)writestarring (string)read, writeenterprise_custom_properties_for_organizations (string)read, write, admin201 - Created
401 - Requires authentication
403 - Forbidden
404 - Resource not found
422 - Validation failed, or the endpoint has been spammed.
Request:
curl -L \
-X POST \
https://api.github.com/app/installations/1/access_tokens \
-d '{
"repositories": [
"Hello-World"
],
"permissions": {
"issues": "write",
"contents": "read"
}
}'
Response schema (Status: 201):
token: required, stringexpires_at: required, stringpermissions: App Permissions:
actions: string, enum: read, writeadministration: string, enum: read, writeartifact_metadata: string, enum: read, writeattestations: string, enum: read, writechecks: string, enum: read, writecode_quality: string, enum: read, writecodespaces: string, enum: read, writecontents: string, enum: read, writedependabot_secrets: string, enum: read, writedeployments: string, enum: read, writediscussions: string, enum: read, writeenvironments: string, enum: read, writeissues: string, enum: read, writemerge_queues: string, enum: read, writemetadata: string, enum: read, writepackages: string, enum: read, writepages: string, enum: read, writepull_requests: string, enum: read, writerepository_custom_properties: string, enum: read, writerepository_hooks: string, enum: read, writerepository_projects: string, enum: read, write, adminsecret_scanning_alerts: string, enum: read, writesecrets: string, enum: read, writesecurity_events: string, enum: read, writesingle_file: string, enum: read, writestatuses: string, enum: read, writevulnerability_alerts: string, enum: read, writeworkflows: string, enum: writecustom_properties_for_organizations: string, enum: read, writemembers: string, enum: read, writeorganization_administration: string, enum: read, writeorganization_custom_roles: string, enum: read, writeorganization_custom_org_roles: string, enum: read, writeorganization_custom_properties: string, enum: read, write, adminorganization_copilot_seat_management: string, enum: read, writeorganization_copilot_agent_settings: string, enum: read, writeorganization_copilot_requests: string, enum: readorganization_external_properties_for_repos: string, enum: read, write, adminorganization_announcement_banners: string, enum: read, writeorganization_events: string, enum: readorganization_hooks: string, enum: read, writeorganization_personal_access_tokens: string, enum: read, writeorganization_personal_access_token_requests: string, enum: read, writeorganization_plan: string, enum: readorganization_projects: string, enum: read, write, adminorganization_packages: string, enum: read, writeorganization_secrets: string, enum: read, writeorganization_self_hosted_runners: string, enum: read, writeorganization_user_blocking: string, enum: read, writeemail_addresses: string, enum: read, writefollowers: string, enum: read, writegit_ssh_keys: string, enum: read, writegpg_keys: string, enum: read, writeinteraction_limits: string, enum: read, writeprofile: string, enum: writestarring: string, enum: read, writeenterprise_custom_properties_for_organizations: string, enum: read, write, adminrepository_selection: string, enum: all, selectedrepositories: array of Repository:
id: required, integer, format: int64node_id: required, stringname: required, stringfull_name: required, stringlicense: required, any of:
key: required, stringname: required, stringurl: required, string or null, format: urispdx_id: required, string or nullnode_id: required, stringhtml_url: string, format: uriforks: required, integerpermissions: object:
admin: required, booleanpull: required, booleantriage: booleanpush: required, booleanmaintain: booleanowner: required, Simple User:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringprivate: required, boolean, default: falsehtml_url: required, string, format: uridescription: required, string or nullfork: required, booleanurl: required, string, format: uriarchive_url: required, stringassignees_url: required, stringblobs_url: required, stringbranches_url: required, stringcollaborators_url: required, stringcomments_url: required, stringcommits_url: required, stringcompare_url: required, stringcontents_url: required, stringcontributors_url: required, string, format: urideployments_url: required, string, format: uridownloads_url: required, string, format: urievents_url: required, string, format: uriforks_url: required, string, format: urigit_commits_url: required, stringgit_refs_url: required, stringgit_tags_url: required, stringgit_url: required, stringissue_comment_url: required, stringissue_events_url: required, stringissues_url: required, stringkeys_url: required, stringlabels_url: required, stringlanguages_url: required, string, format: urimerges_url: required, string, format: urimilestones_url: required, stringnotifications_url: required, stringpulls_url: required, stringreleases_url: required, stringssh_url: required, stringstargazers_url: required, string, format: uristatuses_url: required, stringsubscribers_url: required, string, format: urisubscription_url: required, string, format: uritags_url: required, string, format: uriteams_url: required, string, format: uritrees_url: required, stringclone_url: required, stringmirror_url: required, string or null, format: urihooks_url: required, string, format: urisvn_url: required, string, format: urihomepage: required, string or null, format: urilanguage: required, string or nullforks_count: required, integerstargazers_count: required, integerwatchers_count: required, integersize: required, integerdefault_branch: required, stringopen_issues_count: required, integeris_template: boolean, default: falsetopics: array of stringhas_issues: required, boolean, default: truehas_projects: required, boolean, default: truehas_wiki: required, boolean, default: truehas_pages: required, booleanhas_discussions: boolean, default: falsehas_pull_requests: boolean, default: truepull_request_creation_policy: string, enum: all, collaborators_onlyarchived: required, boolean, default: falsedisabled: required, booleanvisibility: string, default: "public"pushed_at: required, string or null, format: date-timecreated_at: required, string or null, format: date-timeupdated_at: required, string or null, format: date-timeallow_rebase_merge: boolean, default: truetemp_clone_token: stringallow_squash_merge: boolean, default: trueallow_auto_merge: boolean, default: falsedelete_branch_on_merge: boolean, default: falseallow_update_branch: boolean, default: falsesquash_merge_commit_title: string, enum: PR_TITLE, COMMIT_OR_PR_TITLEsquash_merge_commit_message: string, enum: PR_BODY, COMMIT_MESSAGES, BLANKmerge_commit_title: string, enum: PR_TITLE, MERGE_MESSAGEmerge_commit_message: string, enum: PR_BODY, PR_TITLE, BLANKallow_merge_commit: boolean, default: trueallow_forking: booleanweb_commit_signoff_required: boolean, default: falseopen_issues: required, integerwatchers: required, integerstarred_at: stringanonymous_access_enabled: booleancode_search_index_status: object:
lexical_search_ok: booleanlexical_commit_sha: stringsingle_file: stringhas_multiple_single_files: booleansingle_file_paths: array of stringPUT /app/installations/{installation_id}/suspended
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.
You must use a JWT to access this endpoint.
accept (string)application/vnd.github+json is recommended.installation_id (integer) (required)204 - No Content
404 - Resource not found
Request:
curl -L \
-X PUT \
https://api.github.com/app/installations/1/suspended
Response schema (Status: 204):
DELETE /app/installations/{installation_id}/suspended
Removes a GitHub App installation suspension.
You must use a JWT to access this endpoint.
accept (string)application/vnd.github+json is recommended.installation_id (integer) (required)204 - No Content
404 - Resource not found
Request:
curl -L \
-X DELETE \
https://api.github.com/app/installations/1/suspended
Response schema (Status: 204):
POST /applications/{client_id}/token/scoped
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.
Invalid tokens will return 404 NOT FOUND.
Note
This endpoint requires Basic authentication. Use the application's client_id as the username and the client_secret as the password. Do not send an Authorization: Bearer header with this request, because it replaces the Basic credentials.
accept (string)application/vnd.github+json is recommended.client_id (string) (required)access_token (string) (required)
The access token used to authenticate to the GitHub API.
target (string)
The name of the user or organization to scope the user access token to. Required unless target_id is specified.
target_id (integer)
The ID of the user or organization to scope the user access token to. Required unless target is specified.
repositories (array of strings)
The list of repository names to scope the user access token to. repositories may not be specified if repository_ids is specified.
repository_ids (array of integers)
The list of repository IDs to scope the user access token to. repository_ids may not be specified if repositories is specified.
permissions (object)
The permissions granted to the fine-grained access token.
actions (string)read, writeadministration (string)read, writeartifact_metadata (string)read, writeattestations (string)read, writechecks (string)read, writecode_quality (string)read, writecodespaces (string)read, writecontents (string)read, writedependabot_secrets (string)read, writedeployments (string)read, writediscussions (string)read, writeenvironments (string)read, writeissues (string)read, writemerge_queues (string)read, writemetadata (string)read, writepackages (string)read, writepages (string)read, writepull_requests (string)read, writerepository_custom_properties (string)read, writerepository_hooks (string)read, writerepository_projects (string)read, write, adminsecret_scanning_alerts (string)read, writesecrets (string)read, writesecurity_events (string)read, writesingle_file (string)read, writestatuses (string)read, writevulnerability_alerts (string)read, writeworkflows (string)writecustom_properties_for_organizations (string)read, writemembers (string)read, writeorganization_administration (string)read, writeorganization_custom_roles (string)read, writeorganization_custom_org_roles (string)read, writeorganization_custom_properties (string)read, write, adminorganization_copilot_seat_management (string)read, writeorganization_copilot_agent_settings (string)read, writeorganization_copilot_requests (string)readorganization_external_properties_for_repos (string)read, write, adminorganization_announcement_banners (string)read, writeorganization_events (string)readorganization_hooks (string)read, writeorganization_personal_access_tokens (string)read, writeorganization_personal_access_token_requests (string)read, writeorganization_plan (string)readorganization_projects (string)read, write, adminorganization_packages (string)read, writeorganization_secrets (string)read, writeorganization_self_hosted_runners (string)read, writeorganization_user_blocking (string)read, writeemail_addresses (string)read, writefollowers (string)read, writegit_ssh_keys (string)read, writegpg_keys (string)read, writeinteraction_limits (string)read, writeprofile (string)writestarring (string)read, writeenterprise_custom_properties_for_organizations (string)read, write, admin200 - OK
401 - Requires authentication
403 - Forbidden
404 - Resource not found
422 - Validation failed, or the endpoint has been spammed.
Request:
curl -L \
-X POST \
https://api.github.com/applications/Iv1.8a61f9b3a7aba766/token/scoped \
-u "<YOUR_CLIENT_ID>:<YOUR_CLIENT_SECRET>" \
-d '{
"access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a",
"target": "octocat",
"permissions": {
"metadata": "read",
"issues": "write",
"contents": "read"
}
}'
Response schema (Status: 200):
id: required, integer, format: int64url: required, string, format: uriscopes: required, array of string or nulltoken: required, stringtoken_last_eight: required, string or nullhashed_token: required, string or nullapp: required, object:
client_id: required, stringname: required, stringurl: required, string, format: urinote: required, string or nullnote_url: required, string or null, format: uriupdated_at: required, string, format: date-timecreated_at: required, string, format: date-timefingerprint: required, string or nulluser: any of:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringinstallation: any of:
permissions: required, App Permissions:
actions: string, enum: read, writeadministration: string, enum: read, writeartifact_metadata: string, enum: read, writeattestations: string, enum: read, writechecks: string, enum: read, writecode_quality: string, enum: read, writecodespaces: string, enum: read, writecontents: string, enum: read, writedependabot_secrets: string, enum: read, writedeployments: string, enum: read, writediscussions: string, enum: read, writeenvironments: string, enum: read, writeissues: string, enum: read, writemerge_queues: string, enum: read, writemetadata: string, enum: read, writepackages: string, enum: read, writepages: string, enum: read, writepull_requests: string, enum: read, writerepository_custom_properties: string, enum: read, writerepository_hooks: string, enum: read, writerepository_projects: string, enum: read, write, adminsecret_scanning_alerts: string, enum: read, writesecrets: string, enum: read, writesecurity_events: string, enum: read, writesingle_file: string, enum: read, writestatuses: string, enum: read, writevulnerability_alerts: string, enum: read, writeworkflows: string, enum: writecustom_properties_for_organizations: string, enum: read, writemembers: string, enum: read, writeorganization_administration: string, enum: read, writeorganization_custom_roles: string, enum: read, writeorganization_custom_org_roles: string, enum: read, writeorganization_custom_properties: string, enum: read, write, adminorganization_copilot_seat_management: string, enum: read, writeorganization_copilot_agent_settings: string, enum: read, writeorganization_copilot_requests: string, enum: readorganization_external_properties_for_repos: string, enum: read, write, adminorganization_announcement_banners: string, enum: read, writeorganization_events: string, enum: readorganization_hooks: string, enum: read, writeorganization_personal_access_tokens: string, enum: read, writeorganization_personal_access_token_requests: string, enum: read, writeorganization_plan: string, enum: readorganization_projects: string, enum: read, write, adminorganization_packages: string, enum: read, writeorganization_secrets: string, enum: read, writeorganization_self_hosted_runners: string, enum: read, writeorganization_user_blocking: string, enum: read, writeemail_addresses: string, enum: read, writefollowers: string, enum: read, writegit_ssh_keys: string, enum: read, writegpg_keys: string, enum: read, writeinteraction_limits: string, enum: read, writeprofile: string, enum: writestarring: string, enum: read, writeenterprise_custom_properties_for_organizations: string, enum: read, write, adminrepository_selection: required, string, enum: all, selectedsingle_file_name: required, string or nullhas_multiple_single_files: booleansingle_file_paths: array of stringrepositories_url: required, string, format: uriaccount: required, Simple User (see above)expires_at: required, string or null, format: date-timeGET /apps/{app_slug}
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).
accept (string)application/vnd.github+json is recommended.app_slug (string) (required)200 - OK
403 - Forbidden
404 - Resource not found
Request:
curl -L \
-X GET \
https://api.github.com/apps/APP_SLUG
Response schema (Status: 200):
Same response schema as Get the authenticated app.
GET /orgs/{org}/installation
Enables an authenticated GitHub App to find the organization's installation information.
You must use a JWT to access this endpoint.
accept (string)application/vnd.github+json is recommended.org (string) (required)Request:
curl -L \
-X GET \
https://api.github.com/orgs/ORG/installation
Response schema (Status: 200):
Same response schema as Get an installation for the authenticated app.
GET /repos/{owner}/{repo}/installation
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.
You must use a JWT to access this endpoint.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
200 - OK
301 - Moved permanently
404 - Resource not found
Request:
curl -L \
-X GET \
https://api.github.com/repos/OWNER/REPO/installation
Response schema (Status: 200):
Same response schema as Get an installation for the authenticated app.
GET /users/{username}/installation
Enables an authenticated GitHub App to find the user’s installation information.
You must use a JWT to access this endpoint.
accept (string)application/vnd.github+json is recommended.username (string) (required)Request:
curl -L \
-X GET \
https://api.github.com/users/USERNAME/installation
Response schema (Status: 200):
Same response schema as Get an installation for the authenticated app.