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

# GET /api/v1/users/{user}/sessions

`GET /api/v1/users/{user}/sessions`

ListUserSessions returns a list of active sessions for a user.

## Path parameters

- `user` string, required

## Response `200`

OK

- ListUserSessionsResponse
  - `sessions` UserSession[] — The list of user sessions.
    - `name` string — The resource name of the session. Format: users/{user}/sessions/{session}
    - `sessionId` string — The session ID.
    - `createTime` string, date-time — The timestamp when the session was created.
    - `lastAccessedTime` string, date-time — The timestamp when the session was last accessed. Used for sliding expiration calculation (last_accessed_time + 2 weeks).
    - `clientInfo` UserSessionClientInfo
      - `userAgent` string — User agent string of the client.
      - `ipAddress` string — IP address of the client.
      - `deviceType` string — Optional. Device type (e.g., "mobile", "desktop", "tablet").
      - `os` string — Optional. Operating system (e.g., "iOS 17.0", "Windows 11").
      - `browser` string — Optional. Browser name and version (e.g., "Chrome 119.0").

## Other responses

- `default` — Default error response

## Changes

- **2025-12-15** `d740073f088f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usememos/apis/untitled-api/changes/api/v1/users/:user/sessions/get.md)

---

[API](https://skmtc.dev/usememos/apis/untitled-api.md) · [All operations](https://skmtc.dev/usememos/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usememos/untitled-api/revisions/d740073f088f/schema)
