---
title: "Get Active Sessions"
method: GET
path: "/v1/auth/sessions"
tags: ["Auth"]
---

# Get Active Sessions

`GET /v1/auth/sessions`

Returns all active login sessions for a user, enriched with device details.

## Query parameters

- `userId` string, required
- `currentHashedToken` string

## Response `200`

Default Response

- object
  - `sessions` object[], required
    - `_id` string
    - `device` object
      - `browser` string
      - `browserVersion` string
      - `os` string
      - `osVersion` string
      - `deviceType` string
    - `ip` string
    - `location` object
      - `city` string
      - `region` string
      - `country` string
      - `timezone` string
    - `createdAt` string, date-time
    - `lastActiveAt` string, date-time
    - `loginType` string
    - `current` boolean

## Other responses

- `400` — Default Response
- `403` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/bluehive-health/apis/bluehive-api.md) · [All operations](https://skmtc.net/bluehive-health/apis/bluehive-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bluehive-health/bluehive-api/revisions/ae97a9add0ba/schema)
