---
title: "Search persisted scoped Telegram messages"
method: POST
path: "/search"
---

# Search persisted scoped Telegram messages

`POST /search`

## Request

- Base URL: `https://gramclaw.com/api/v1`
- URL: `https://gramclaw.com/api/v1/search`
- Auth: HTTP bearer

Search completeness is limited to history already persisted by GramClaw.

## Request body

- object
  - `query` string, required
  - `account_id` string
  - `chat_id` string
  - `limit` integer

## Response `200`

Scoped persisted matches and completeness metadata

## Other responses

- `400`: Invalid query or scope

---

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