Skip to main content
POST
Create Agent memory

Authorizations

Authorization
string
header
required

Bearer JWT token or API Key (sk-*).

Body

application/json
kind
enum<string>
required

Durable memory kind.

Available options:
digest,
preference,
fact,
episode
Example:

"digest"

name
string
required

Short stable memory name for labels and ref tokens.

Required string length: 1 - 64
Example:

"Billing source"

summary
string
required

Canonical Markdown memory digest. It is durable learned context, not transcript archival.

Minimum string length: 1
Example:

"The billing reconciliation workspace uses Stripe as the payment source of truth."

ownerType
enum<string>
default:AGENT

Memory owner. USER is private, AGENT belongs to one agent, and WORKSPACE is bound to an attached workspace root.

Available options:
USER,
AGENT,
WORKSPACE
Example:

"AGENT"

ownerId
string<uuid>

Owner id. Required for USER, AGENT, and WORKSPACE memory.

Example:

"11111111-1111-4111-8111-111111111111"

refTokens
string[]

Explicit additional exact source or resource tokens that support the memory. The API also extracts REFTYPE/id [blocked] tokens from summary.

Example:
tags
string[]

Compact topical tags used for recall.

Example:

Response

201