GitHub GraphQL API
- Endpoint
-
https://api.github.com/graphql - Spec
- https://docs.github.com/public/fpt/schema.docs.graphql
- Docs
- https://docs.github.com/en/graphql
Authorization: Bearer <credential> Create a personal access token from your GitHub account settings using Managing your personal access tokens. Choose scopes or fine-grained permissions based on the API or MCP actions you need. GitHub's docs note that fine-grained PATs include read access to public repositories, while classic PATs need scopes such as public_repo for public-repo access.
Authorization: Bearer <credential> Register a GitHub App using Register a GitHub App. After registration, generate the app's private key and use GitHub's app-auth flows to mint the token needed for your use case: an installation access token for app installations or a user access token when acting on behalf of a user, as described under Authenticate as an installation and Authenticate on behalf of users.
Authorization: Bearer <credential> Create an OAuth app using Creating an OAuth app. Configure its callback URL, then send users through GitHub's OAuth authorization flow as documented in Authorizing OAuth apps to obtain a user access token with the scopes your integration needs.