Get your free beta license ↗
API operation · auth group
DELETE

/tokens/{id}

First published 3 Oct 20260.1.0Unchanged since publication

Revoke one of the caller's tokens

Who may call it
AdministratorResellerCustomer
Token scope, any of
all
Answers200 OK

Revoking the token also closes any customer sessions it opened and revokes any plugin tokens tied directly to it.

As a command

Run as root on the server

Parameters

idpath ·integer, 1 or moreRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/tokens/1" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
The response body is the file itself.

Errors

5 errors, each a status and a sentence
400Invalid id
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
404Token <id> not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-tokens-id/