---
title: "List user sessions"
method: GET
path: "/v1/users/{id}/sessions"
tags: ["users"]
---

# List user sessions

`GET /v1/users/{id}/sessions`

## Request

- Base URL: `https://api.brixsignage.com`
- URL: `https://api.brixsignage.com/v1/users/{id}/sessions`
- Auth: HTTP bearer

Returns a person's currently active sign-in sessions: id, creation time, last used time, expiry, device or browser, IP address, and which session belongs to the caller. Revoked and expired sessions are not included.

**Notes.**
- Needs `user.edit`, not `user.view`: the rows carry IP addresses. Sorted by last use, newest first.

## Path parameters

- `id` string, required

## Response `200`

Success.

- object
  - `data` UserSession[], required
    - `id` string, required: Session id (not the session token, which is never returned).
    - `createdAt` string, required: ISO-8601 timestamp (UTC).
    - `lastUsedAt` string, nullable, required: ISO-8601 timestamp (UTC).
    - `expiresAt` string, required: ISO-8601 timestamp (UTC).
    - `userAgent` string, nullable, required: The browser or device that signed in.
    - `ipAddress` string, nullable, required
    - `current` boolean, required: This is the session making the call (always false for an API key).

## Other responses

- `401`: Missing, expired or revoked bearer token.
- `403`: The person belongs to a location where you do not hold `user.edit`.
- `404`: No such person in this workspace.
- `5XX`: Server error. The body carries a `requestId` to quote to support.

---

[API](https://skmtc.dev/brixsignage/apis/brix-api.md) · [All operations](https://skmtc.dev/brixsignage/apis/brix-api/llms.txt) · [OpenAPI document](https://skmtc.dev/brixsignage/apis/brix-api/revisions/02fd3665dc7d?raw)
