Company logoTrust Center Documentation

User logout

Invalidate the current user session by destroying the session cookie. For browser-based requests, this will redirect to the login page. For API requests,…

POST
/api/v1/logout

Invalidate the current user session by destroying the session cookie. For browser-based requests, this will redirect to the login page. For API requests, this returns a success response.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/logout"
{
  "success": true,
  "message": "Successfully logged out"
}
Empty
{
  "error": "Method not allowed"
}

How is this guide?