authorization_id parameter
Get a single authorization
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
Response
application/json
Response
Response
Authorization
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
Show Child Parameters
Show Child Parameters
Path Parameters
Update an existing authorization
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.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see “Working with two-factor authentication.”
You can only send one of these scope keys at a time.
Path Parameters
authorization_id parameter
Body
application/json
Body
A list of scopes that this authorization is in.
Example:["public_repo","user"]
A list of scopes to add to this authorization.
A list of scopes to remove from this authorization.
A note to remind you what the OAuth token is for.
Example:Update all gems
A URL to remind you what app the OAuth token is for.
A unique string to distinguish an authorization from others created for the same client ID and user.
Response
application/json
Response
Response
Authorization
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
Show Child Parameters
Show Child Parameters
Path Parameters
Body
Delete an authorization
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
authorization_id parameter
Response
Response
Response
Path Parameters
List organizations
Lists all organizations, in the order that they were created on GitHub Enterprise Server.
Note: Pagination is powered exclusively by the since
parameter. Use the Link header to get the URL for the next page of organizations.
Query Parameters
An organization ID. Only return organizations with an ID greater than this ID.
Results per page (max 100)
Default:30
Response
application/json
Response
Response
Organization Simple
Example:github
Example:1
Example:MDEyOk9yZ2FuaXphdGlvbjE=
Example:https://api.github.com/orgs/github
Example:https://api.github.com/orgs/github/repos
Example:https://api.github.com/orgs/github/events
Example:https://api.github.com/orgs/github/hooks
Example:https://api.github.com/orgs/github/issues
Example:https://api.github.com/orgs/github/members{/member}
Example:https://api.github.com/orgs/github/public_members{/member}
Example:https://github.com/images/error/octocat_happy.gif
Example:A great organization
Query Parameters
Get an organization
To see many of the organization response values, you need to be an authenticated organization owner with the admin:org
scope. When the value of two_factor_requirement_enabled
is true
, the organization requires all members, billing managers, and outside collaborators to enable two-factor authentication.
GitHub Apps with the Organization plan
permission can use this endpoint to retrieve information about an organization’s GitHub Enterprise Server plan. See “Authenticating with GitHub Apps” for details. For an example response, see ‘Response with GitHub Enterprise Server plan information’ below."
Path Parameters
Response
application/json
Response
Response
Organization Full
Organization Full
Example:github
Example:1
Example:MDEyOk9yZ2FuaXphdGlvbjE=
Example:https://api.github.com/orgs/github
Example:https://api.github.com/orgs/github/repos
Example:https://api.github.com/orgs/github/events
Example:https://api.github.com/orgs/github/hooks
Example:https://api.github.com/orgs/github/issues
Example:https://api.github.com/orgs/github/members{/member}
Example:https://api.github.com/orgs/github/public_members{/member}
Example:https://github.com/images/error/octocat_happy.gif
Example:A great organization
Example:github
Example:GitHub
Example:https://github.com/blog
Example:San Francisco
Example:octocat@github.com
Example:github
Example:true
Example:true
Example:true
Example:2
Example:1
Example:20
Example:0
Example:https://github.com/octocat
Example:2008-01-14T04:33:35Z
Example:Organization
Example:100
Example:100
Example:81
Example:10000
Example:8
Example:org@example.com
Show Child Parameters
Example:true
Example:true
Example:all
Example:true
Example:true
Example:true
Example:true
Example:true
Example:true
Example:false