---
title: "List a user's sign-ins with the visits each opened"
method: GET
path: "/api/activity/connections"
tags: ["Activity"]
---

# List a user's sign-ins with the visits each opened

`GET /api/activity/connections`

## Request

- The document declares no server URL.
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Newest first, revoked and expired sessions included.

## Query parameters

- `userId` string, required
- `limit` integer
- `cursor` string: The previous page's nextCursor.

## Response `200`

Response for status 200

- object
  - `connections` object[], required
    - `type` 'session', required
    - `device` object, required
      - `browser` string
      - `os` string
    - `clientName` string
    - `status` 'active' | 'expired' | 'revoked', required
    - `createdAt` string, date-time, required
    - `lastSeenAt` string, date-time
    - `revokedAt` string, date-time
    - `visits` number, required
    - `latestVisits` object[], required
      - `id` string, required
      - `actor` union, required
        - object
          - `type` 'user', required
          - `userId` string, required
        - object
          - `type` 'share', required
          - `grantId` string, required
          - `definitionId` string
      - `attribution` object, nullable, required
        - `source` string
        - `medium` string
        - `campaign` string
        - `referrer` string
      - `startedAt` string, date-time, required
      - `lastSeenAt` string, date-time, required
      - `pageViews` number, required
      - `interactions` number, required
  - `nextCursor` string

## Other responses

- `400`: Response for status 400
- `403`: Response for status 403

## Changes

- **2026-10-20** `408316254546`: 1 info
  - added the required property `connections/items/latestVisits/items/interactions` to the response with the `200` status
- **2026-10-20** `2529bf887ba6`: 1 breaking
  - removed the required property `connections/items/latestVisits/items/interactions` from the response with the `200` status
- **2026-10-20** `8df745541b3a`: 2 info
  - added the optional property `connections/items/latestVisits/items/actor/anyOf[subschema #2]/definitionId` to the response with the `200` status
  - added the required property `connections/items/latestVisits/items/interactions` to the response with the `200` status
- **2026-10-20** `2f5f2f29a59c`: 1 info
  - endpoint added
- **2026-10-20** `8c53eb806aa9`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/sixb-ai/apis/sixb-api/changes/api/activity/connections/get.md)

---

[API](https://skmtc.dev/sixb-ai/apis/sixb-api.md) - [All operations](https://skmtc.dev/sixb-ai/apis/sixb-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sixb-ai/apis/sixb-api/revisions/a227d682eaa2?raw)
