Response
Get the Zen of GitHub
Get a random sentence from the Zen of GitHub
Response
200 text/plain
Response
List your grants
DEPRECATEDDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return ["repo", "user"]
.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
The client ID of your GitHub app.
Response
application/json
Response
Response
The authorization associated with an OAuth Access.
Example:1
Example:https://api.github.com/applications/grants/1
Show Child Parameters
Example:2011-09-06T17:26:27Z
Example:2011-09-06T20:39:23Z
Example:["public_repo"]
Simple User
Show Child Parameters
Query Parameters
Get a single grant
DEPRECATEDDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
Path Parameters
grant_id parameter
Response
application/json
Response
Response
Application Grant
The authorization associated with an OAuth Access.
Example:1
Example:https://api.github.com/applications/grants/1
Show Child Parameters
Example:2011-09-06T17:26:27Z
Example:2011-09-06T20:39:23Z
Example:["public_repo"]
Simple User
Show Child Parameters
Path Parameters
Delete a grant
DEPRECATEDDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
Deleting an OAuth application’s grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
Path Parameters
grant_id parameter
Response
Response
Response
Path Parameters
List your authorizations
DEPRECATEDDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
The client ID of your GitHub app.
Response
application/json
Response
Response
The authorization for an OAuth app, GitHub App, or a Personal Access Token.
A list of scopes that this authorization is in.
Show Child Parameters
Simple User