users
tokens
Revoke a token
Changed onDEPRECATED: User API tokens have been deprecated in favor of user API keys. This endpoint remains available to manage existing API tokens. Create a user API key instead.
Revoke an API token for a user. Revocation is terminal: a revoked token can no longer authenticate any request, and the revocation cannot be undone (for security — a leaked JWT must not become valid again). Only the authenticated user themselves and server admins have access to this endpoint.
delete/v0/users/{user}/tokens/{token}
Request
- The document declares no server URL.
- Authnone declared
Path parameters
tokenstring uuid required
The UUID for a token.
userstring required
The slug or UUID for a user.
Response
successful deletion
Changes
- info
endpoint deprecated
- info
- info
endpoint added
- info