Documentation · API reference
DELETE
/api/v1/tokens/{id}Revoke a token
This page as Markdown, or in an AI chatMore ways to read this page
Revoke a token: a program sending it is refused from then on.
# Revoke a token
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/delete-tokens-id
`DELETE /api/v1/tokens/{id}`
Revoke a token: a program sending it is refused from then on.
## The answer
204
## Asking
```sh
curl -X DELETE https://tidekeeper.eu/api/v1/tokens/{id} \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
The answer
Status 204
Asking
curl -X DELETE https://tidekeeper.eu/api/v1/tokens/{id} \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/tokens/{id}", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());