---
title: "Revoke an OAuth token"
method: POST
path: "/api/oauth/revoke"
tags: ["OAuth"]
---

# Revoke an OAuth token

`POST /api/oauth/revoke`

## Request

- Base URL: `https://git.cafe`
- URL: `https://git.cafe/api/oauth/revoke`
- Auth: none required

Revokes the submitted access or refresh token without disclosing whether it was active.

## Request body `application/x-www-form-urlencoded`

- object
  - `token` string, required
  - `client_id` string

## Response `200`

Response for status 200

## Other responses

- `400`: Response for status 400
- `429`: A rate limit is exhausted. Wait Retry-After seconds; the value is a hint, so back off on a repeat 429.

---

[API](https://skmtc.dev/gitcafe/apis/git-cafe-api.md) - [All operations](https://skmtc.dev/gitcafe/apis/git-cafe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitcafe/apis/git-cafe-api/revisions/9fa233d2986d?raw)
