Contact Memorys
Search Contact Memory
Search memories for a specific contact
post
/v1/contact/{contactId}/memory/search
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
contactIdstring* Required
The ID of the contact to search memories for
Request Body * Required
Request Body Schema: application/json
searchstring
The keyword/phrase to search for
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.contact.memory.search(
contactId,{)}"search":"string"
{"items":[{"id":"string","text":"string","meta":"object"}]}The search was successful