Note: New endpoints using OAuth tokens as input parameters instead of path parameters are available for developers to preview in the OAuth Applications API. To access these endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.doctor-strange-preview+json
Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact your GitHub Enterprise site administrator.
OAuth application owners can revoke a single token for an OAuth application. You must use Basic Authentication when accessing this endpoint, using the OAuth application's client_id and client_secret as the username and password.
DELETE /applications/:client_id/token
| Name | Type | Description |
|---|---|---|
access_token |
string |
The OAuth access token used to authenticate to the GitHub API. |
{
"access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a"
}
Status: 204 No Content