---
title: "Search Memories"
method: POST
path: "/v1/search"
tags: ["agent-protocol"]
---

# Search Memories

`POST /v1/search`

## Request

- Base URL: `https://api.app.membase.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.app.membase.ai/v1/search`
- Auth: none declared

Passages the containers hold on a question, most relevant first, each naming its
container. Retrieval, not an answer — `POST /v1/ask` is the agent's answer.

## Request body

- SearchRequest
  - `q` string, required: The question, in natural language.
  - `container` string, nullable: One container id; omit to search every container in reach.
  - `limit` integer, nullable: How many passages to return in all, not per container. A fan-out over five containers with limit 5 answers with five passages, taking each container's best before any container's second. Unset covers every container in reach (at least 8), so none is left unheard; a container that had passages but lost them all to the budget comes back with `truncated: true`.

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error
- `default`: Error envelope (ADR 0027)

---

[API](https://skmtc.dev/membase/apis/membase-hosted-api.md) · [All operations](https://skmtc.dev/membase/apis/membase-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/membase/apis/membase-hosted-api/revisions/e0ac58cdb320?raw)
