Skip to main content
POST
Save an AI memory

Path Parameters

project_id
string
required

The project's id (not its slug). GET /admin/api/projects lists each project's id and slug.

Body

application/json
title
string
required
Maximum string length: 200
content
string
required
Maximum string length: 32768
tags
string[]
Maximum array length: 20
Maximum string length: 40
memory_key
string
Maximum string length: 200
thread
object
project_id
string

Optional; if sent it must be this project.

visibility
enum<string>
default:private
Available options:
private,
project,
workspace,
team
client
enum<string>
Available options:
claude,
claude-code,
chatgpt,
codex
kind
enum<string>
default:memory
Available options:
memory,
decision,
thread_summary
expires_at
string<date-time> | null

When the memory stops being current (#687): after it, lists, context and search leave it out, and it is deleted once older than the plan's history retention. Up to 10 years ahead; null clears it on a memory_key re-save.

supersedes
string<uuid>[]

Memories this one replaces (#687). Each must be readable by the caller, in the same project, active and current; the response lists any that were not marked in supersede_failed.

Maximum array length: 10

Response

Successful operation

The response is of type object.