Skip to content

Delete an app token

DELETE
/applications/{client_id}/token

OAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization.

API method documentation

client_id
required
string

The client ID of the GitHub app.

Examples
Example default
Iv1.8a61f9b3a7aba766
Media type application/json
object
access_token
required

The OAuth access token used to authenticate to the GitHub API.

string
Examples
Example default
{
"access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a"
}

Response

Validation failed, or the endpoint has been spammed.

Media type application/json
Validation Error

Validation Error

object
message
required
string
documentation_url
required
string
errors
Array<object>
object
resource
string
field
string
message
string
code
required
string
index
integer
value
One of:
string
nullable
Example generated
{
"message": "example",
"documentation_url": "example",
"errors": [
{
"resource": "example",
"field": "example",
"message": "example",
"code": "example",
"index": 1,
"value": [
"example"
]
}
]
}