---
title: "List Sessions"
method: GET
path: "/v1/sessions"
tags: ["BackendService"]
---

# List Sessions

`GET /v1/sessions`

List Sessions.

## Query parameters

- `userId` string
- `pageToken` string

## Response `200`

OK

- ListSessionsResponse
  - `sessions` Session[] — A list of Sessions.
    - `id` string — The Session ID. Starts with `session_...`.
    - `userId` string — The User this Session belongs to.
    - `revoked` boolean — Whether the Session is revoked.
    - `createTime` string, date-time — When the Session was created.
    - `lastActiveTime` string, date-time — When the Session was last active.
    - `expireTime` string, date-time — When the Session expires.
    - `primaryAuthFactor` integer — The primary authentication factor the end user used to log in.
  - `nextPageToken` string — The pagination token for the next page of results. Empty if there is no next page.

## Other responses

- `400` — API Error
- `401` — API Error
- `403` — API Error
- `404` — API Error

---

[API](https://skmtc.net/tesseral-labs/apis/backendservice-api.md) · [All operations](https://skmtc.net/tesseral-labs/apis/backendservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tesseral-labs/backendservice-api/versions/fe83f78ae20a/schema)
