# Logout **POST /auth/logout** Revokes the server-side login session bound to the bearer token, immediately invalidating its access and refresh tokens, and clears the UI session gate cookie. ## Servers - https://agentengine.mongodb.com: https://agentengine.mongodb.com () ## Authentication methods - Bearer auth ## Parameters ## Responses ### 204 Session revoked ### 401 Unauthorized #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 503 Service Unavailable #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) [Powered by Bump.sh](https://bump.sh)