Skip to main content
POST
Create a memory store

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Body

application/json

Fields for creating or renaming a curated memory store. An omitted field is left unchanged on update.

agent_id
string

Scope the store to one agent. Omit for a workspace store any session may attach.

description
string

What this store contains. Disclosed to the agent in every session the store is attached to, so write it as what the agent would be looking for.

name
string

Human-readable name. Shown to the agent as part of the store's note.

Response

A collection of path-addressed documents an agent reads across sessions. Attaching a store adds one note to the system prompt naming what it contains; the agent browses, searches, and reads its contents on demand, so store size does not enter the prompt.

A collection of path-addressed documents an agent reads across sessions. Attaching a store adds one note to the system prompt naming what it contains; the agent browses, searches, and reads its contents on demand, so store size does not enter the prompt.

created_at
string<date-time>
required

Server-assigned RFC 3339 timestamp of when the store was created.

memory_count
integer<int64>
required

Number of live memories in the store.

memory_store_id
string
required

Server-assigned id of the store, used when attaching it to a session and in the memory routes.

name
string
required

Human-readable name. Shown to the agent as part of the store's note.

organization_id
string
required

Organization that owns the store. Server-assigned from the caller's credentials; a value sent in a request body is ignored.

origin
enum<string>
required

Who wrote this store: curated for material a person added, reflection for an agent's learned memory. A reflection store is not hand-editable.

Available options:
curated,
reflection
revision
integer<int64>
required

Monotonic revision of the collection, advanced atomically when a learning run changes memories.

slug
string
required

Filesystem-safe form of the name, stable across renames.

status
enum<string>
required

Active collections are available to sessions; archived curated stores cannot be attached.

Available options:
active,
archived
total_bytes
integer<int64>
required

Total bytes of live memory content in the store.

updated_at
string<date-time>
required

Server-assigned RFC 3339 timestamp of the most recent change to the store or its memories.

agent_id
string

Agent this store belongs to. Empty for a workspace store any session may attach.

archived_at
string<date-time>

Set when a curated reference store was archived.

created_by
string

Identifier of the caller or reflection that created the store.

description
string

What this store contains. Disclosed to the agent in every session the store is attached to, so it is the routing signal: write it as what the agent would be looking for.