---
title: "Revoke a personal access token"
method: DELETE
path: "/api-tokens/{id}"
tags: ["developer"]
---

# Revoke a personal access token

`DELETE /api-tokens/{id}`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/api-tokens/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Soft-revokes the token (sets `revokedAt`). The token immediately stops working.

## Path parameters

- `id` string, required

## Response `200`

Token revoked

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `403`: Forbidden - insufficient role
- `404`: Token not found
- `409`: Token already revoked

---

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