EndpointsAuthentication
Logout User
Logout user With a refresh_token in the body, ends only that session (one browser or one CLI profile). Without one, ends every session the user has.
POST
Logout user
With a refresh_token in the body, ends only that session (one browser or one CLI profile). Without one, ends every session the user has.
HTTPBearerheader
AuthorizationBearer <token>application/json- body
Logout request; refresh_token limits the logout to that one session
refresh_token?string|nullSuccessful Response
application/json- response
Logout response
message?MessageDefault
"Logged out successfully"curl -X POST "https://example.com/api/logout" \ -H "Content-Type: application/json" \ -d '{}'{ "message": "Logged out successfully"}