Skip to main content
POST
Create a memory

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

agentId
string
required

Body

application/json
key
string
required
Maximum string length: 64
Example:

"deploy-notes"

content
string
required
Maximum string length: 100000
title
string

One line.

description
string

One line.

Response

Created

One memory without its content (the index projection).

id
string
agentId
string
key
string

The agent's own handle for the memory and its file name (memory/<key>.md). Immutable.

title
string | null
description
string | null
lastRevisionSeq
integer
createdAt
string<date-time>
updatedAt
string<date-time>
content
string