Skip to main content
POST
Create a memory
Adds a new memory under a unique key. Use it to seed an agent with context, such as team conventions, before it starts work. Related guide: How it works: the gateway injects credentials. Keys are lowercase words separated by single hyphens and are unique per agent. Content is capped at 100,000 characters.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

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