ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiAuth

Revoke all other sessions

DELETE
/api/v1/auth/sessions/revoke-others

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Request Body

application/json
  1. body
currentSessionId?string

Current session ID to keep active (optional)

Response Body

Other sessions revoked successfully

response?unknownapplication/json
Example Request
curl -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"}