ApiAuth
Revoke all other sessions
DELETE
bearerX-API-Version?stringAPI version for header-based versioning
Default
"1"Value in
"1""2"application/json- body
currentSessionId?stringCurrent session ID to keep active (optional)
Other sessions revoked successfully
response?unknownapplication/jsoncurl -X DELETE 'http://localhost:3001/api/v1/auth/sessions/revoke-others' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "status": "success", "statusCode": 200, "message": "All other sessions revoked successfully", "data": { "revoked_count": 3 }, "timestamp": "2026-01-31T10:00:00.000Z", "path": "/api/v1/auth/sessions/revoke-others"}