---
title: "Create a new memory"
method: POST
path: "/memory/create"
tags: ["Memory"]
---

# Create a new memory

`POST /memory/create`

## Request

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

Create a new memory with the given parameters.

## Request body

- object: Instance crud properties
  - `name` string: The associated name
  - `description` string: The associated description
  - `meta` Meta: Meta data information
  - `contactId` string: The contact associated with the memory
  - `botId` string: The bot associated with the memory
  - `text` string, required: The text of the memory
  - `expiresAt` integer, nullable: Epoch-ms timestamp at which the memory is automatically deleted; null for no expiry

## Response `200`

The memory was created successfully

- object
  - `id` string, required: The ID of the created memory

## 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)
