curl -X POST https://api.gosentrix.io/api/v1/auth/logout \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"message": "Logged out successfully"
}
Authentication API
Log Out
Invalidate current session tokens
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
string
required
Bearer token (access token)
Response
string
Success message
Errors
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