Apps

Information for integrations and installations.

Operations

MethodEndpointDescription
GET/appGet the authenticated app
POST/app-manifests/{code}/conversionsCreate a GitHub App from a manifest
GET/app/hook/configGet a webhook configuration for an app
PATCH/app/hook/configUpdate a webhook configuration for an app
GET/app/hook/deliveriesList deliveries for an app webhook
GET/app/hook/deliveries/{delivery_id}Get a delivery for an app webhook
POST/app/hook/deliveries/{delivery_id}/attemptsRedeliver a delivery for an app webhook
GET/app/installation-requestsList installation requests for the authenticated app
GET/app/installationsList installations for the authenticated app
GET/app/installations/{installation_id}Get an installation for the authenticated app
DELETE/app/installations/{installation_id}Delete an installation for the authenticated app
POST/app/installations/{installation_id}/access_tokensCreate an installation access token for an app
PUT/app/installations/{installation_id}/suspendedSuspend an app installation
DELETE/app/installations/{installation_id}/suspendedUnsuspend an app installation
DELETE/applications/{client_id}/grantDelete an app authorization
POST/applications/{client_id}/tokenCheck a token
PATCH/applications/{client_id}/tokenReset a token
DELETE/applications/{client_id}/tokenDelete an app token
POST/applications/{client_id}/token/scopedCreate a scoped access token
GET/apps/{app_slug}Get an app
GET/installation/repositoriesList repositories accessible to the app installation
DELETE/installation/tokenRevoke an installation access token
GET/marketplace_listing/accounts/{account_id}Get a subscription plan for an account
GET/marketplace_listing/plansList plans
GET/marketplace_listing/plans/{plan_id}/accountsList accounts for a plan
GET/marketplace_listing/stubbed/accounts/{account_id}Get a subscription plan for an account (stubbed)
GET/marketplace_listing/stubbed/plansList plans (stubbed)
GET/marketplace_listing/stubbed/plans/{plan_id}/accountsList accounts for a plan (stubbed)
GET/orgs/{org}/installationGet an organization installation for the authenticated app
GET/repos/{owner}/{repo}/installationGet a repository installation for the authenticated app
GET/user/installationsList app installations accessible to the user access token
GET/user/installations/{installation_id}/repositoriesList repositories accessible to the user access token
PUT/user/installations/{installation_id}/repositories/{repository_id}Add a repository to an app installation
DELETE/user/installations/{installation_id}/repositories/{repository_id}Remove a repository from an app installation
GET/user/marketplace_purchasesList subscriptions for the authenticated user
GET/user/marketplace_purchases/stubbedList subscriptions for the authenticated user (stubbed)
GET/users/{username}/installationGet a user installation for the authenticated app

Example

Get the authenticated app, with the TypeScript SDK:

ts
import { GitHubV3REST } from "github";

const client = new GitHubV3REST({
  baseUrl: "https://api.github.com",
});

const result = await client.apps.getAuthenticated();
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.