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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”client_id
required
string
The client ID of the GitHub app.
Examples
Exampledefault
Iv1.8a61f9b3a7aba766Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
access_token
required
The OAuth access token used to authenticate to the GitHub API.
string
Examples
Exampledefault
{ "access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a"}Responses
Section titled “Responses”Response
Validation failed, or the endpoint has been spammed.
Media typeapplication/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
integer
Array<string>
Examplegenerated
{ "message": "example", "documentation_url": "example", "errors": [ { "resource": "example", "field": "example", "message": "example", "code": "example", "index": 1, "value": [ "example" ] } ]}