Revoke token - Grasshopper Labs API
Tokens

Revoke token

Invalidate an access or refresh token. Use this when a token is leaked or no longer needed.

POST /api/token/revoke/

Body parameters

token
string Required
The access or refresh token to revoke.

Example

curl -X POST https://{licensee-url}/api/token/revoke/ \
  -H "Content-Type: application/json" \
  -d '{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }'
// HTTP 204 No Content
Revocation is permanent

Once revoked, the token cannot be reactivated. You must request a new token via /api/token/.