---
title: "List chat sessions in the caller's org"
method: GET
path: "/chat/sessions"
tags: ["Chat"]
---

# List chat sessions in the caller's org

`GET /chat/sessions`

## Request

- Base URL: `https://api-docs.jackhamr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.jackhamr.ai/chat/sessions`
- Auth: none declared

List chat sessions in the principal's org, newest first.

Org scope is enforced by joining ``chat_sessions`` → ``agents`` on
the caller's ``organization_id``. The optional ``agent_id`` filter
narrows to a single agent's sessions. Cursor-paginated via
``limit``/``cursor`` (the cursor is decoded lazily by
``build_cursor_from_rows``, same pattern as the tasks/keys routers).

## Query parameters

- `agent_id` string, nullable: Filter to sessions of a specific agent
- `limit` integer
- `cursor` string, nullable

## Response `200`

Successful Response

- PaginatedResponseChatSessionOut
  - `data` ChatSessionOut[]
    - `id` string, required
    - `agent_id` string, required
    - `user_id` string, required
    - `title` string, required
    - `token_used` integer
    - `token_max` integer
    - `tool_call_count` integer
    - `is_favorite` boolean
    - `active_orchestrator_skill_id` string, nullable
    - `preferred_model_id` string, nullable
    - `runtime_id` string, nullable
    - `runtime_model` string, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `next_cursor` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jackhamr/apis/jackhamr-api.md) · [All operations](https://skmtc.dev/jackhamr/apis/jackhamr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jackhamr/apis/jackhamr-api/revisions/f75d221481d8?raw)
