---
title: "Add Thread Note"
method: POST
path: "/apps/{app_id}/threads/{number}/notes"
---

# Add Thread Note

`POST /apps/{app_id}/threads/{number}/notes`

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

Write one note on an existing thread of the app.

An unknown number reads 404. The route copies the token label into
``author_label`` at write time (NOTES.md). The write journals one
``note.add`` event with the thread number as the target.

## Path parameters

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

## Headers

- `authorization` string, nullable

## Request body

- AddThreadNoteRequest
  - `body` string, required
  - `agent_id` string, nullable

## Response `200`

Successful Response

- NoteResponse
  - `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

## 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)
