# List all sessions

Returns all sessions for the authenticated account, sorted by most recently used. Session state is synchronized with Redis to reflect real-time activity. Sessions not found in Redis are marked as EXPIRED. Requires authentication.

Endpoint: GET /api/v1/sessions/list
Version: 1.0
Security: header

## Response 200 fields (application/json):

  - `sessionKey` (string, required)

  - `state` (string, required)
    Enum: "ACTIVE", "EXPIRED"

  - `accountId` (string, required)
    UUID with type prefix
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `userId` (string, required)
    UUID with type prefix
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `loginType` (string, required)
    Enum: "EMAIL", "USERNAME", "PHONE", "PASSKEY", "IMPERSONATE", "FEDERATION"

  - `ip` (object, required)

  - `ip.multicastAddress` (boolean)

  - `ip.anyLocalAddress` (boolean)

  - `ip.loopbackAddress` (boolean)

  - `ip.linkLocalAddress` (boolean)

  - `ip.siteLocalAddress` (boolean)

  - `ip.MCGlobal` (boolean)

  - `ip.MCNodeLocal` (boolean)

  - `ip.MCLinkLocal` (boolean)

  - `ip.MCSiteLocal` (boolean)

  - `ip.MCOrgLocal` (boolean)

  - `ip.hostName` (string)

  - `ip.address` (string)

  - `ip.hostAddress` (string)

  - `createdAt` (string, required)
    Example: "2022-03-10T16:15:50Z"

  - `countryCode` (string,null, required)

  - `countryName` (string,null, required)

  - `subdivision` (string,null, required)

  - `city` (string,null, required)

  - `extra` (object, required)

  - `extra.userAgent` (string,null)

  - `extra.os` (string,null)

  - `lastUsed` (string,null)
    Example: "2022-03-10T16:15:50Z"

## Response 401 fields (application/json):

  - `errorCode` (string, required)
    Error code

  - `message` (string, required)
    Error message

  - `docUrl` (string)
    Link to documentation


