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

# Revoke an API token.

`DELETE /v1/api_tokens/{token_id}`

## Path parameters

- `token_id` string, required

## Response `204`

Token revocation confirmation

## Other responses

- `401` — Invalid API key
- `404` — API token not found

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
