---
title: "List Threads"
method: GET
path: "/apps/{app_id}/threads"
---

# List Threads

`GET /apps/{app_id}/threads`

## Request

- Base URL: `https://api.xhostd.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xhostd.com/apps/{app_id}/threads`
- Auth: none declared

List the threads of the app, last activity first.

The order is the last note time descending, with the thread's own
``created_at`` for a thread with no notes and the number as the
tie break. The filters are exact matches; ``query`` is a
case-insensitive contains match on the subject. Each row carries
``note_count`` and ``last_note_at``.

## Path parameters

- `app_id` string, uuid, required

## Query parameters

- `query` string, nullable
- `category` string, nullable
- `channel_id` string, uuid, nullable
- `branch` string, nullable
- `limit` integer

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- ThreadListResponse
  - `threads` ThreadSummary[], required
    - `id` string, uuid, required
    - `number` integer, required
    - `subject` string, required
    - `category` string, nullable, required
    - `channel_id` string, uuid, nullable, required
    - `branch` string, nullable, required
    - `sha` string, nullable, required
    - `created_at` string, date-time, required
    - `note_count` integer, required
    - `last_note_at` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

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