---
title: "Get all sessions"
method: GET
path: "/api/v2/sessions"
tags: ["Sessions"]
---

# Get all sessions

`GET /api/v2/sessions`

List all active sessions.

## Query parameters

- `filter` union — Filter schema for `session` list endpoints — pass a single condition or a logical group.
  - FilterSession — Filter parameters for OAuth sessions.
    - `read_only` union — Filter to include only read-only sessions.
      - ReadOnly — unresolved $ref
      - object — Filter using explicit operator syntax.
        - `not_contain` ReadOnly — unresolved $ref
        - `contains` ReadOnly — unresolved $ref
        - `eq` ReadOnly — unresolved $ref
        - `not_eq` ReadOnly — unresolved $ref
    - `machine` union — Filter to include only machine (non-human) sessions.
      - Machine — unresolved $ref
      - object — Filter using explicit operator syntax.
        - `eq` Machine — unresolved $ref
        - `not_eq` Machine — unresolved $ref
        - `not_contain` Machine — unresolved $ref
        - `contains` Machine — unresolved $ref
    - `creator_id` union — Filter by the person who created the session.
      - CreatorId — unresolved $ref
      - object — Filter using explicit operator syntax.
        - `eq` CreatorId — unresolved $ref
        - `not_contain` CreatorId — unresolved $ref
        - `not_eq` CreatorId — unresolved $ref
        - `contains` CreatorId — unresolved $ref
  - object — A logical filter group — combine multiple conditions with the `$op` operator.
    - `$op` 'or' | 'and', required — Logical operator combining conditions in this group. `or` matches records satisfying any condition; `and` requires all conditions to match.
- `sort` string[]

## Headers

- `X-Organization-Id` string, required

## Response `200`

Collection session

---

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