25 lines
1.2 KiB
Markdown
25 lines
1.2 KiB
Markdown
---
|
|
title: REST API endpoints for OAuth authorizations
|
|
shortTitle: OAuth authorizations
|
|
allowTitleToDifferFromFilename: true
|
|
intro: >-
|
|
Use the REST API to interact with {% data
|
|
variables.product.prodname_oauth_apps %} and OAuth authorizations of {% data
|
|
variables.product.prodname_github_apps %}
|
|
topics:
|
|
- API
|
|
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
|
|
fpt: '*'
|
|
ghec: '*'
|
|
ghes: '*'
|
|
autogenerated: rest
|
|
---
|
|
|
|
## About {% data variables.product.prodname_oauth_apps %} and OAuth authorizations of {% data variables.product.prodname_github_apps %}
|
|
|
|
You can use these endpoints to manage the OAuth tokens that {% data variables.product.prodname_oauth_apps %} or {% data variables.product.prodname_github_apps %} use to access people's accounts on {% data variables.product.github %}.
|
|
|
|
Tokens for {% data variables.product.prodname_oauth_apps %} have the prefix `gho_`, while OAuth tokens for {% data variables.product.prodname_github_apps %}, used for authenticating on behalf of the user, have the prefix `ghu_`. You can use the following endpoints for both types of OAuth tokens.
|
|
|
|
<!-- Content after this section is automatically generated -->
|