---
title: "Get Thread"
method: GET
path: "/apps/{app_id}/threads/{number}"
---

# Get Thread

`GET /apps/{app_id}/threads/{number}`

## 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/{number}`
- Auth: none declared

Read one thread of the app, with its notes oldest first.

The order is ``created_at`` ascending with the row id as the tie
break, so the discussion reads top to bottom. Each note carries the
vote counts and the member denominator. An unknown number reads
404.

## Path parameters

- `app_id` string, uuid, required
- `number` integer, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- ThreadDetailResponse
  - `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
  - `notes` NoteWithVotes[], required
    - `id` string, uuid, required
    - `category` string, nullable, required
    - `body` string, required
    - `author_user_id` string, uuid, nullable, required
    - `author_label` string, nullable, required
    - `agent_id` string, nullable, required
    - `created_at` string, date-time, required
    - `votes` VoteSummary, required
      - `up` integer, required
      - `down` integer, required
      - `member_count` integer, 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)
