1. Docs
  2. API Reference
  3. Revoke a token

Revoke a token

POST/oauth/revoke

OAuth2 token revocation endpoint (POST /oauth/revoke). Revokes the supplied token, invalidating the associated refresh token. Always responds 204 No Content.

Request body

application/json

tokenstring Required

Responses

204
Request
curl -X POST "https://auth.canopy-io.com/oauth/revoke" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "string"
  }'
Response
HTTP/1.1 204

(empty body)
Related endpoints Was this page helpful?

Tell us how we can improve this guide.