Hanzo
OpenapiDeploy

Answers "is this browser signed in, and if not where does it sign in?" — the…

Answers "is this browser signed in, and if not where does it sign in?" — the dashboard SPA's bootstrap question, and the only route on this plane that…

GET /v1/deploy/session/userinfo

Addresshttps://api.hanzo.ai/v1/deploy/session/userinfo
MethodGET
Operationget_deploy_session_userinfo
AuthAuthorization: Bearer $HANZO_API_KEY

Answers "is this browser signed in, and if not where does it sign in?" — the dashboard SPA's bootstrap question, and the only route on this plane that answers for an anonymous caller.

The anonymous answer carries loggedIn:false and a URL and NOTHING else: no username, no org, no groups, no issuer, no hint about who the caller might be or what exists in the cluster. Answering it costs nothing (the caller already knows whether it holds a cookie) and withholding it costs the whole sign-in journey.

The predicate is the platform SuperAdmin fact — the SAME one every other route here gates on, minted from a validated principal whose org is the reserved admin org — so a validated-but-not-SuperAdmin caller is reported as NOT signed in, which is the truth as this console defines it: they cannot use it.

Request

GET /v1/deploy/session/userinfo takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200sessionUserok

200 body — 6 fields.

FieldInTypeAlwaysDescription
groupsbodystring[]Groups is the caller's group list, always empty here: this console authorizes on the platform SuperAdmin fact alone, not on argocd RBAC groups.
issbodystringIss is the token issuer as the SPA expects to see it — the literal "argocd", so the UI never triggers an SSO redirect of its own.
loggedInbodybooleanLoggedIn reports whether this browser holds a session this console accepts.
loginUrlbodystringLoginURL is where an anonymous caller signs in.
logoutUrlbodystringLogoutURL is where a signed-in caller ends the session.
usernamebodystringUsername is the validated principal's user ID — the opaque gateway id, which is what argocd's UI renders as the signed-in user here — or "admin" when the…

Failure carries the platform error shape — see Errors.

Examples

hanzo deploy session userinfo

Deploy API · All Hanzo APIs · Interactive reference

How is this guide?

On this page