Hanzo AI
OpenapiDeploy

Logout deploy

Ends the console session on this host. It clears this console's session cookie and answers the signed-out state with the sign-in URL to start again.

POST /v1/deploy/logout

Addresshttps://api.hanzo.ai/v1/deploy/logout
MethodPOST
Operationpost_deploy_logout
AuthAuthorization: Bearer $HANZO_API_KEY

Ends the console session on this host.

It clears this console's session cookie and answers the signed-out state with the sign-in URL to start again. IAM's own session is untouched — this ends the console session only, so signing back in may not prompt for credentials.

It is a POST because it CHANGES STATE. As a GET it was reachable by a cross-site top-level navigation, which a SameSite=Lax cookie still rides, so any page could sign a SuperAdmin out; a POST is not carried cross-site by that cookie. It reads no request body and takes no argument: the session it ends is the one the request already carries.

Request

The document declares no body for POST /v1/deploy/logout. The handler is typed in cloud but its shape is not yet emitted, so the fields are not listed here — ask MCP's describe for post_deploy_logout, which answers from the running route.

Response

StatusBodyMeaning
200sessionEndedok

200 body — 2 fields.

FieldInTypeAlwaysDescription
loggedInbodybooleanLoggedIn is always false — this is the answer to having just signed out, so it states the resulting session state rather than reporting the request's outcome.
loginUrlbodystringLoginURL is where to sign in again.

Failure carries the platform error shape — see Errors.

Examples

hanzo deploy logout

Deploy API · All Hanzo APIs · Interactive reference

How is this guide?

On this page