---
title: "Search Notes"
method: GET
path: "/apps/{app_id}/notes"
---

# Search Notes

`GET /apps/{app_id}/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}/notes`
- Auth: none declared

Search the internal notes of the app, newest first.

The order is ``created_at`` descending with the row id as the tie
break. ``query`` is a case-insensitive contains match on the body;
``category`` is an exact match. Each hit carries the vote counts,
the member denominator, and its thread's number and subject.

## Path parameters

- `app_id` string, uuid, required

## Query parameters

- `query` string, nullable
- `category` string, nullable
- `limit` integer

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- NoteSearchResponse
  - `notes` NoteSearchHit[], 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
    - `thread_number` integer, required
    - `thread_subject` string, 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)
