Memorys
Fetch Memory
Fetch memory
get
/v1/memory/{memoryId}/fetch
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
memoryIdstring* Required
The ID of the memory to retrieve
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.memory.fetch(
memoryId)
{"name":"string","description":"string","meta":"object","id":"string","createdAt":"number","updatedAt":"number","contactId":"string","botId":"string","text":"string"}The memory was retrieved successfully