cURL
curl --request POST \ --url https://api.example.com/api/v2/auth/logout \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "refresh_token": "<string>" } '
Invalidate the current refresh token
Authorization: Bearer nb_YOUR_ACCESS_TOKEN
curl -X POST https://neuralbox.top/api/v2/auth/logout \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{ "message": "Logged out successfully" }