Skip to main content
POST
/
api
/
v1
/
auth
/
logout
curl -X POST https://api.gosentrix.io/api/v1/auth/logout \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "message": "Logged out successfully"
}
Log out and invalidate the current access and refresh tokens.
curl -X POST https://api.gosentrix.io/api/v1/auth/logout \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "message": "Logged out successfully"
}

Headers

Authorization
string
required
Bearer token (access token)

Response

message
string
Success message

Errors

401
object
Invalid or missing token

Notes

  • Invalidates both access and refresh tokens
  • All subsequent requests with these tokens will fail
  • User must log in again to obtain new tokens