nexalwarenexalwaredocs
API ReferenceAuthentication

Revoke a refresh token

POST
/api/v1/auth/logout

Invalidates the given refresh token so it can no longer be exchanged for new sessions. The current access token stays valid until its own 15-minute expiry - this only prevents renewing it.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/auth/logout" \  -H "Content-Type: application/json" \  -d '{}'
{  "ok": true}