List your grants
GET {{baseUrl}}/applications/grants?per_page=30&page=1
Deprecation Notice: GitHub 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"]
.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
per_page | number | Results per page (max 100) | |
page | number | Page number of the results to fetch. |
RESPONSES
status: OK
[{"id":1,"url":"https://api.github.com/applications/grants/1","app":{"url":"http://my-github-app.com","name":"my github app","client_id":"abcde12345fghij67890"},"created_at":"2011-09-06T17:26:27Z","updated_at":"2011-09-06T20:39:23Z","scopes":["public_repo"]}]