How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Tokens API

The Tokens API from GitHub — 11 operation(s) for tokens.

GitHub Tokens API is one of 350 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Tokens. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and an API reference.

This API exposes 14 operations across 11 paths, and defines 17 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: {protocol}://{hostname}/api/v3, {protocol}://{hostname}.

14 operations 11 paths 17 schemas 3 DELETE2 GET1 PATCH8 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 1

GitHub Tokens API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerHttpAuthentication).

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 14

Across 11 paths, the API surfaces 14 operations — 3 DELETE, 2 GET, 1 PATCH, 8 POST. Each is listed below with its method, path, parameters, and response codes.

Tokens 14
POST
/app/installations/{installation_id}/access_tokens
GitHub Create an Installation Access Token for an App
createAnInstallationAccessTokenForAnApp 1 param body → 201401403404422
POST
/applications/{client_id}/token
GitHub Checktoken
checktoken 1 param body → 200404422
PATCH
/applications/{client_id}/token
GitHub Reset Token
resetToken 1 param body → 200422
DELETE
/applications/{client_id}/token
GitHub Delete an App Token
deleteAnAppToken 1 param body → 204422
POST
/applications/{client_id}/token/scoped
GitHub Createscoped Access Token
createscopedAccessToken 1 param body → 200401403404422
POST
/admin/users/{username}/authorizations
GitHub Create an Impersonation Oauth Token
createAnImpersonationOauthToken 1 param body → 200201
DELETE
/admin/users/{username}/authorizations
GitHub Delete an Impersonation Oauth Token
deleteAnImpersonationOauthToken 1 param → 204
DELETE
/installation/token
GitHub Revoke an Installation Access Token
revokeAnInstallationAccessToken → 204
GET
/user/installations
GitHub List App Installations Accessible to the User Access Token
listAppInstallationsAccessibleToTheUserAccessToken 2 params → 200304401403
GET
/user/installations/{installation_id}/repositories
GitHub List Repositories Accessible to the User Access Token
listRepositoriesAccessibleToTheUserAccessToken 3 params → 200304403404
POST
/orgs/{org}/actions/runners/registration-token
GitHub Create Registration Token for an Organization
createRegistrationTokenForAnOrganization 1 param → 201
POST
/orgs/{org}/actions/runners/remove-token
GitHub Create Remove Token for an Organization
createRemoveTokenForAnOrganization 1 param → 201
POST
/repos/{owner}/{repo}/actions/runners/registration-token
GitHub Create Registration Token for Repository
createRegistrationTokenForRepository 5 params → 201
POST
/repos/{owner}/{repo}/actions/runners/remove-token
GitHub Create Remove Token for Repository
createRemoveTokenForRepository 5 params → 201

Schemas 17

The contract defines 17 schemas that model the data the API accepts and returns. The most detailed are repository_2 (95 properties), repository (95 properties), app-permissions (45 properties), nullable-simple-user (21 properties). Each schema is shown below with its type and property counts.

installation-token
object
Authentication token for a GitHub App installed on a user or org.
8 properties 2 required
simple-user
object
A GitHub user.
21 properties 18 required
repository
object
A repository on GitHub.
95 properties 73 required
validation-error
object
Validation Error
3 properties 2 required
basic-error
object
Basic Error
4 properties
nullable-scoped-installation
objectnull
7 properties 5 required
authorization
object
The authorization for an OAuth app, GitHub App, or a Personal Access Token.
15 properties 13 required
app-permissions
object
The permissions granted to the user access token.
45 properties
nullable-simple-user
objectnull
A GitHub user.
21 properties 18 required
nullable-license-simple
objectnull
License Simple
6 properties 5 required
installation
object
Installation
20 properties 17 required
enterprise
object
An enterprise on GitHub.
10 properties 8 required
authentication-token
object
Authentication Token
6 properties 2 required
simple-user_2
object
GitHub user.
21 properties 18 required
authentication-token_2
object
Authentication Token
6 properties 2 required
repository_2
object
repository on GitHub.
95 properties 73 required
nullable-license-simple_2
object
License Simple
6 properties 5 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-tokens-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Events API
GitHub Feeds API
GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Notifications API
GitHub Octocat API
GitHub Projects API
GitHub Repos API
GitHub Search API
Where this information came from

This is an independent, third-party profile of GitHub Tokens API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.