curl --request POST \ --url https://api.example.com/api/v1/auth/logout
auth
Logout
End the WorkOS session and clear our cookie. Returns the WorkOS logout URL the web
app should redirect the browser to (completes sign-out on WorkOS’s side too).
POST
/
api
/
v1
/
auth
/
logout
Logout
curl --request POST \ --url https://api.example.com/api/v1/auth/logout