---
title: "GetSessions"
method: GET
path: "/api/access/sessions"
tags: ["Access"]
---

# GetSessions

`GET /api/access/sessions`

## Query parameters

- `createdBefore` string, date-time, nullable
- `createdAfter` string, date-time, nullable
- `currentPage` integer
- `pageSize` integer
- `orderBy` string, nullable
- `sortOrder` 'asc' | 'desc' | 'null', nullable

## Response `200`

Request fulfilled, document follows

- object
  - `items` ActiveSession[]
    - `createdAt` string, date-time, required
    - `deviceInfo` string, nullable
    - `expiresAt` string, date-time, required
    - `id` string, uuid, required
    - `isCurrent` boolean
  - `limit` integer — Maximal number of items to send.
  - `offset` integer — Offset from the beginning of the query.
  - `total` integer — Total number of items.

## Other responses

- `400` — Bad request syntax or unsupported method

---

[API](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template.md) · [All operations](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/litestar-org/litestar-fullstack-template/revisions/e5e7606282ec/schema)
