# List active sessions for a user

GET

/v1/identity/users/{userId}/sessions

```sh
curl --request GET \
  --url https://example.com/v1/identity/users/example/sessions \
  --header 'Authorization: Bearer <token>'
```

A tenant admin, or the person themselves. Returns the wire-safe `IdentitySessionSummary` shape — provider access-token + refresh-token never cross the wire, even to admins. Unknown user id returns an empty list (call `GET /v1/identity/users/:userId` first to distinguish “no sessions” from “no user”).

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.1.10/reference/api.md#bearerauth)**

## Parameters

### Path Parameters

**userId**

required

string

\>= 1 characters

## Responses

### 200

Page of sessions.

application/json

object

**data**

required

Array\<object>

Wire-safe subset of a session. Excludes provider access-token / refresh-token — those never cross the wire, even to admins.

object

**sessionId**

required

string

**userId**

required

string

**providerId**

required

string

**createdAt**

required

string format: date-time

**expiresAt**

required

string format: date-time

**scopes**

required

Array\<string>

**revokedAt**

string format: date-time

**hasMore**

required

boolean

**nextCursor**

string

##### Examplegenerated

```json
{
  "data": [
    {
      "sessionId": "example",
      "userId": "example",
      "providerId": "example",
      "createdAt": "2026-04-15T12:00:00Z",
      "expiresAt": "2026-04-15T12:00:00Z",
      "scopes": [
        "example"
      ],
      "revokedAt": "2026-04-15T12:00:00Z"
    }
  ],
  "hasMore": true,
  "nextCursor": "example"
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 403

Someone else’s sessions, and not a tenant admin.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

## See also

- [`GET /v1/identity/users`: List users in the tenant](https://docs.kindgi.com/v0.1.10/reference/api/operations/identityuserslist.md)
- [`POST /v1/identity/users`: Add a person](https://docs.kindgi.com/v0.1.10/reference/api/operations/identityuserscreate.md)
- [`GET /v1/identity/users/{userId}`: Get a user by id](https://docs.kindgi.com/v0.1.10/reference/api/operations/identityusersget.md)
- [`POST /v1/identity/users/{userId}/unregister`: Remove a person](https://docs.kindgi.com/v0.1.10/reference/api/operations/identityusersunregister.md)
- [Every error code](https://docs.kindgi.com/v0.1.10/reference/errors.md)
