Skip to main content
POST
Create a memory

Authorizations

Authorization
string
header
required

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

Path Parameters

memory_store_id
string<uuid>
required

Memory store id (UUID) as returned by createMemoryStore or listMemoryStores.

Body

application/json

Fields for creating one memory. Path, content and summary are all required; omitting any of them is a 400.

content
string
required

Full text of the memory. Capped at 100 kB; memory works better as many small focused documents.

path
string
required

Address within the store, e.g. /conventions/testing.md.

summary
string
required

One line describing what this memory says, shown in search results and the console.

Response

One path-addressed document in a memory store. The path hierarchy is the routing structure an agent browses, so it carries the meaning a per-memory prompt description otherwise would.

One path-addressed document in a memory store. The path hierarchy is the routing structure an agent browses, so it carries the meaning a per-memory prompt description otherwise would.

byte_size
integer<int64>
required

Size of the content in bytes.

created_at
string<date-time>
required

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

memory_id
string
required

Server-assigned id of the memory.

memory_store_id
string
required

Store this memory belongs to.

organization_id
string
required

Organization that owns this record. Resolved from the API key; never accepted from the caller.

path
string
required

Address of the memory within its store, e.g. /conventions/testing.md. The path hierarchy is the routing structure an agent browses, so it carries the meaning a per-memory prompt description otherwise would.

status
enum<string>
required

active memories are offered to sessions; retired and superseded memories are kept for history, so later learning runs can see what was already tried.

Available options:
active,
retired,
superseded
updated_at
string<date-time>
required

Server-assigned RFC 3339 timestamp of the most recent change.

content
string

Full text of the memory. Returned when reading one memory, omitted from listings.

content_sha256
string

SHA-256 of the content. Pass it back as an update precondition to avoid clobbering a concurrent write.

deleted_at
string<date-time>

Set when the memory was deleted. A deleted path may be recreated.

head_version_id
string

Version id of the current content.

reflection_id
string

Reflection run that wrote this memory. Empty for a memory a human seeded.

summary
string

One-line description, shown in search results and the console. Not disclosed in the system prompt.

superseded_by_memory_id
string

Memory that replaced this one, when a learning run superseded it.