Hanzo AI
OpenapiIam

List sessions

Returns who is currently signed in to your organization, newest first, and can be narrowed to one person or one application.

GET /v1/iam/sessions

Addresshttps://api.hanzo.ai/v1/iam/sessions
MethodGET
OperationlistSessions
AuthAuthorization: Bearer $HANZO_API_KEY

Returns who is currently signed in to your organization, newest first, and can be narrowed to one person or one application. It is what you read before signing someone out.

Request

3 fields.

FieldInTypeRequiredDescription
ownerquerystringyes
namequerystring
applicationquerystring

Response

StatusBodyMeaning
200iam.ListSessionsOutok

200 body — 11 fields.

FieldInTypeAlwaysDescription
sessionsbodyiam.Session[]
sessions[].applicationbodystring
sessions[].createdAtbodystring (date-time)
sessions[].createdTimebodystring
sessions[].deletedbodyboolean
sessions[].exclusiveSigninbodybooleanExclusiveSignin is a transient control flag (v1 xorm:"-"): a caller sets it on a create to collapse SessionId down to the single incoming cookie instead of…
sessions[].idbodystring
sessions[].namebodystring
sessions[].ownerbodystring
sessions[].sessionIdbodystring[]
sessions[].updatedAtbodystring (date-time)

Failure carries the platform error shape — see Errors.

Examples

hanzo iam sessions list --owner <owner>

IAM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page