# Docs search

Source: https://ampost.io/docs/docs-search · Full reference: https://ampost.io/llms-full.txt

## Docs Search

Answer "how do I…" questions without leaving the client. `docs_search` searches these docs with any valid key, and the public docs MCP server needs no key at all. Both read one index of the sections of this document, each linked to its place on `https://ampost.io/docs`, so they match the docs of the running version.

### Search the docs

`GET /api/docs/search` · MCP tool `docs_search` · scope none (any key) · rate limit `apiRead` · success `200`

Search the Ampost docs (`/docs`, `/docs/mcp` and `/llms-full.txt`) for a question such as "schedule a post to instagram". Returns the best matching sections, each with its title, a short excerpt and its URL. Any valid key may call it, and it is not counted toward the plan's 30-day API requests.

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `query` | query | string | yes | What you want to know, in plain words, e.g. "schedule a post to instagram". |
| `limit` | query | integer | no | Number of sections, 1-20. Default 5. |

Example response:

```json
{
  "data": [
    {
      "id": "posts/posts_create",
      "title": "Create, schedule or publish a post (posts_create)",
      "url": "https://ampost.io/docs/api/posts-create",
      "excerpt": "| `useQueue` | body | boolean | no | Schedule the post in the next free slot of its platform set's queue (see queue_get) instead of at `scheduledFor`."
    },
    {
      "id": "platforms/instagram",
      "title": "Instagram",
      "url": "https://ampost.io/docs/platforms",
      "excerpt": "- To post to Instagram, name `instagram` in `targets[].platforms`; its settings go in `options.instagram`."
    }
  ]
}
```

### Public Docs MCP Server

Streamable HTTP at `https://api.ampost.io/mcp/docs`, without auth, for clients and agents that have no Ampost key yet. Add it like the main server (for example `claude mcp add --transport http ampost-docs https://api.ampost.io/mcp/docs`), with no `Authorization` header. Tools:

- `search`: `query`, optional `limit` (1-20, default 5); the same results as `docs_search`.
- `list_pages`: every section with its `id`, `title` and `url`.
- `get_page`: `id` from `search` or `list_pages`; the whole section in Markdown, with its subsections.
