Skip to Content
dropshelf
REST API

Revoke a token

Requires a session. A token that belongs to someone else is a 404.

DELETE
/api/v1/tokens/{id}

Requires a session. A token that belongs to someone else is a 404.

Authorization

session
cookie__Host-dropshelf_session<token>

The dashboard session cookie. Its name has no __Host- prefix on an instance served over plain http, because browsers refuse prefixed cookies there. Unsafe methods must also send an Origin header equal to the control plane's origin; a request that sends no Origin at all passes instead on Sec-Fetch-Site: same-origin. POST, PUT and PATCH must declare Content-Type: application/json, application/zip, application/x-ndjson, application/octet-stream (one file of a plan) or, for an avatar, a PNG, JPEG or WebP image, on top of that, whether or not they carry a body; DELETE is held to the Origin rule alone.

Path Parameters

id*string

The token id.

Response Body

Revoked.

Example Request
curl -X DELETE 'https://drop.example.com/api/v1/tokens/string'
Example Response
Empty

Generated from dropshelf core at 6a548b2, 26 Nov 2026.