Hanzo
OpenapiIam

Tells you who the current caller is — the lightweight check a page makes on…

Tells you who the current caller is — the lightweight check a page makes on load to decide whether to render signed-in or signed-out.

GET /v1/iam/whoami

Addresshttps://api.hanzo.ai/v1/iam/whoami
MethodGET
Operationget_iam_whoami
AuthAuthorization: Bearer $HANZO_API_KEY

Tells you who the current caller is — the lightweight check a page makes on load to decide whether to render signed-in or signed-out.

It answers for a session cookie or a bearer token alike, and says plainly when nobody is signed in rather than failing.

Request

GET /v1/iam/whoami takes no parameters and no body — the credential is the whole request.

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo iam whoami

IAM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page