---
title: "Revoke a specified API token associated to the authenticated user."
method: DELETE
path: "/auth/apitokens/{name}"
tags: ["auth"]
---

# Revoke a specified API token associated to the authenticated user.

`DELETE /auth/apitokens/{name}`

## Path parameters

- `name` string, required

## Response `200`

OK

## Other responses

- `401` — User is not authenticated
- `404` — User or API token not found

---

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