---
title: "Revoke an API token."
method: DELETE
path: "/api/v1/tokens/{tokenId}"
tags: ["Tokens"]
---

# Revoke an API token.

`DELETE /api/v1/tokens/{tokenId}`

## Request

- Base URL: `https://commentary.dev`
- URL: `https://commentary.dev/api/v1/tokens/{tokenId}`
- Auth: API key in cookie `commentary_session`

## Path parameters

- `tokenId` string, required

## Response `200`

Successful response.

- object
  - `ok` unknown, required
  - `id` string, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required.
- `403`: The token or session does not have permission for this resource.
- `404`: The resource was not found.
- `429`: The request was rate limited.

---

[API](https://skmtc.dev/commentary/apis/commentary-public-api.md) · [All operations](https://skmtc.dev/commentary/apis/commentary-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/commentary/apis/commentary-public-api/revisions/7aaafc198c52?raw)
