V2 (Preview)
cURL
curl --request POST \ --url https://api.village.do/v2/auth/tokens/revoke \ --header 'Authorization: Bearer <token>'
{ "data": { "message": "Token revoked successfully" }, "metadata": { "request_id": "<string>" } }
Revoke the current Bearer token. After revocation, the token can no longer be used for API requests. The user can obtain a new token by calling POST /v2/auth/tokens.
JWT token obtained from authentication endpoint
Token revoked successfully
Token revocation response
Show child attributes
Success message
"Token revoked successfully"
Was this page helpful?