---
title: "Revoke a key of a server"
method: DELETE
path: "/v1/servers/{id}/tokens/{tokenId}"
tags: ["Servers"]
---

# Revoke a key of a server

`DELETE /v1/servers/{id}/tokens/{tokenId}`

## Request

- Base URL: `https://api.sendora.se`
- URL: `https://api.sendora.se/v1/servers/{id}/tokens/{tokenId}`
- Auth: HTTP bearer

The key stops working at once. The last live key of a server cannot be revoked, so a server is never locked out; revoking a key that is already revoked is fine.

## Path parameters

- `id` string, uuid, required
- `tokenId` string, uuid, required

## Response `204`

Removed. The body is empty.

## Other responses

- `401`: The key is missing, malformed or revoked.
- `403`: The key is of the other kind, or a connected app may not do this here: it is not for connections, the connection may only read here, or it is for test servers only.
- `404`: No such server of this account, or no such key of the server.
- `409`: This is the only live key of the server; create another before revoking it.

---

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