Revoke a personal API token
DELETE/api-tokens/:tokenId
Required role: admin. Only an account or token with the admin role can call this operation.
Example request
curl --request DELETE \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/api-tokens/{tokenId}"
Ends this token immediately — the request it would have authenticated next is refused the moment this returns, since every request looks the token up fresh (no caching).
Request
Responses
- 204
- default
Token revoked.
An error response.