---
title: "Semantic search"
method: POST
path: "/v1/agents/{agent_id}/memory/search"
tags: ["Agent Memory"]
---

# Semantic search

`POST /v1/agents/{agent_id}/memory/search`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/agents/{agent_id}/memory/search`
- Auth: HTTP bearer

## Path parameters

- `agent_id` string, uuid, required

## Request body

- MemorySearchRequest
  - `namespace` string, required
  - `query` string, required
  - `top_k` integer

## Response `200`

Search results

- MemorySearchResponse
  - `results` object[], required
    - `key` string
    - `value` string
    - `score` number
    - `namespace` string

## Other responses

- `400`: Invalid request
- `401`: Authentication required or invalid
- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
