Skip to main content
POST
Create a Memory Store

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta
Idempotency-Key
string

Optional idempotency key. Reusing the same key with the same request target, API version, and body replays the first response for 24 hours. Reusing it with a different target, API version, or body, or while the first request is still being processed, returns 409.

Body

application/json

Name for the new Memory Store and an optional description.

Request body for creating a Memory Store.

name
string
required

Name used for the Session mount directory. Unique within the project across active and archived stores. It must start with a Unicode letter or digit. Later characters may also use _ or -.

Required string length: 1 - 64
Pattern: ^[\p{L}\p{N}][\p{L}\p{N}_-]{0,63}$
Example:

"team-memory"

description
string

Description shown to the Agent.

Maximum string length: 4096
Example:

"Shared project notes"

Response

The new Memory Store.

A project-scoped file store mounted into Sessions.

Sessions read or update the store through a mount. Every file mutation is recorded as an immutable Memory Version.

id
string
required

Memory Store ID.

Example:

"mstr_01h455vb4pex5vsknk084sn02q"

name
string
required

Name shown to the Agent and used for the Session mount directory. Unique within the project across active and archived stores.

Example:

"team-memory"

created_at
string<date-time>
required

Time when the Memory Store was created.

Example:

"2026-01-01T00:00:00Z"

updated_at
string<date-time>
required

Time when the Memory Store metadata was last updated.

Example:

"2026-01-01T00:00:00Z"

description
string

Description shown to the Agent.

Example:

"Shared project notes"

archived_at
string<date-time>

Time when the Memory Store was archived. Absent while active.

Example:

"2026-01-03T00:00:00Z"