G

GitHub REST API

REST discovered

Details
URL
https://api.github.com
Docs
https://docs.github.com/en/rest
Authentication
GitHub personal access token bearer discovered Get token ↗
Authorization: Bearer <credential>

Create a personal access token from your GitHub account settings as described in Managing your personal access tokens. Choose fine-grained permissions or classic scopes that match the API operations you need; GitHub notes that fine-grained PATs include read access to public repositories.

GitHub App installation access token bearer discovered Get token ↗
Authorization: Bearer <credential>

First register a GitHub App. Install it on the target account or organization, then generate an installation access token as described in Authenticating as a GitHub App installation. GitHub states this token works with both the REST API and the GraphQL API.

GitHub App JWT jwt discovered Get key ↗
Authorization: Bearer <credential>

Register a GitHub App using Register a GitHub App, then generate a private key for the app and create a JWT as described under GitHub App authentication in About authentication with a GitHub App. Use this when an endpoint specifically requires authenticating as the app itself.

GitHub OAuth app access token oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential>

Create an OAuth app following Creating an OAuth app, configure its callback URL, then send users through the OAuth flow described in Authorizing OAuth apps to obtain access tokens for API calls.