ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiAuth

Logout user

POST
/api/v1/auth/logout

Blacklists the current access token and revokes all refresh tokens

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

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

Response Body

Logout successful

response?unknownapplication/json
Example Request
curl -X POST 'http://localhost:3001/api/v1/auth/logout'
Example Response
{  "status": "success",  "statusCode": 200,  "message": "Logout successful",  "data": null,  "meta": {    "user_id": "123e4567-e89b-12d3-a456-426614174000",    "logged_out_at": "2026-01-31T10:00:00.000Z"  },  "timestamp": "2026-01-31T10:00:00.000Z",  "path": "/api/v1/auth/logout"}