---
title: "Search memories for records matching a given search query"
method: POST
path: "/memory/search"
tags: ["Memory"]
---

# Search memories for records matching a given search query

`POST /memory/search`

## Request

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

## Request body

- object
  - `search` string, required: The keyword/phrase to search for
  - `contactId` string: The ID of the contact to filter memories by
  - `botId` string: The ID of the bot to filter memories by

## Response `200`

The search was successful

- object
  - `items` object[], required: An array of memories matching the search query
    - `id` string, required
    - `text` string, required
    - `meta` object

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
