Logout

Invalidates a specific refresh token.

Headers
  • Authorization
    Type: string
    required

    JWT Bearer token. Format: Bearer <JWT>

Body·
required
application/json
  • refreshToken
    Type: string
    required
Responses
  • 200

    Refresh token invalidated successfully.

  • application/json
Request Example for post/api/auth/logout
curl https://demo.api.whispchat.com/api/auth/logout \
  --request POST \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9...' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "refreshToken": "dGhpcyBpcyBhIHJlZnJlc2ggdG9rZW4..."
}'
No Body