Herald
OpenapiUsers

List a user's active sessions

List active browser-token sessions for a specific user. Requires `users.manage` permission.

GET
/api/users/{userId}/sessions

List active browser-token sessions for a specific user. Requires users.manage permission.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

userId*string

User ID

Formatuuid

Response Body

Active sessions for the user

application/json
  1. response
[index: integer]?

A single active session for a user, surfaced for Realm Admin session management. Time fields are RFC3339 / ISO8601 strings. Fields derived from the optional session metadata index are null for legacy families created before the index existed.

Example Request
curl -X GET 'https://example.com/api/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/sessions'
Example Response
[
  {
    "absoluteExpiresAt": "string",
    "clientAppId": "d386372c-64d9-49da-bb8b-4b5eda60f56c",
    "clientAppName": "string",
    "clientIp": "string",
    "createdAt": "string",
    "credentialClass": "string",
    "familyId": "44b97bbb-267f-4989-8ce2-585694b2e454",
    "userAgent": "string"
  }
]