---
title: "Query Session Streams"
method: POST
path: "/sessions/streams/query"
tags: ["Sessions", "Sessions"]
---

# Query Session Streams

`POST /sessions/streams/query`

## Request body

- SessionStreamQueryRequest
  - `session_id` string, nullable
  - `is_alive` boolean, nullable
  - `is_running` boolean, nullable

## Response `200`

Successful Response

- SessionStreamsResponse
  - `count` integer, required
  - `streams` SessionStream[], required
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `id` string, uuid, nullable
    - `project_id` string, uuid, required
    - `session_id` string, required
    - `flags` SessionStreamFlags — The nest as primitive bools (alive ⊇ running ⊇ attached). resumable (alive & !running) and reattachable (running & !attached) are derived client-side, never stored.
      - `is_alive` boolean
      - `is_running` boolean
      - `is_attached` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `turn_id` string, nullable
    - `archived_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-03** `fc532d6dc820` — 2 breaking, 3 info
  - the response property `streams/items/id` became optional for the status `200`
  - response property `streams/items/id` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - added the optional property `streams/items/archived_at` to the response with the `200` status
  - added the optional property `streams/items/description` to the response with the `200` status
  - …1 more
- **2026-07-25** `5a14788d939f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/sessions/streams/query/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/139f8db295da/schema)
