Hanzo
OpenapiIam

Returns who is currently signed in to your organization, newest first, and can…

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

POST /v1/iam/sessions/list

Addresshttps://api.hanzo.ai/v1/iam/sessions/list
MethodPOST
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, body application/json (required).

FieldInTypeRequiredDescription
applicationbodystring
namebodystring
ownerbodystringyes

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