---
title: "Search memories by natural language query"
method: POST
path: "/api/memory/search"
tags: ["Memory"]
---

# Search memories by natural language query

`POST /api/memory/search`

## Request body

- object
  - `query` string, required
  - `intent` string — Why you are searching. Required for agent recall-edge tracking; omit for UI browse/search calls.
  - `limit` integer
  - `scope` 'agent' | 'swarm' | 'all'
  - `source` 'manual' | 'file_index' | 'session_summary' | 'task_completion'

## Response `200`

Search results

## Other responses

- `400` — Missing query or agent ID

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
