Sample - GitHub REST API
DELETE/applications/{client_id}/token

Delete an app token

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

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 1 body field
client_idstringrequired
The client ID of the GitHub app.
access_tokenstringrequired
The OAuth access token used to authenticate to the GitHub API.

2 status codes
204Response
422Validation failed, or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional

Error handling

A 422 is returned: Validation failed, or the endpoint has been spammed.