Memory

Operations of the Memory API. Paths are relative to your deployment's API host.

GET /api/memory-api/memory/file

Fetch the full markdown body + audit metadata for one memory.

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pathquerystringyesCanonical memory path, e.g. /memories/project/lesson/foo.md
StatusDescriptionBody
200application/json MemoryDetailDtoDataEnvelope

POST /api/memory-api/memory/file

Create a new memory file. Same path grammar + scope rules as the MCP memory_create tool.

Authentication: bearer token (Authorization: Bearer <token>)

Request body: application/json CreateMemoryBodyDto

StatusDescriptionBody
201application/json MemorySummaryDtoDataEnvelope

PATCH /api/memory-api/memory/file

Replace oldStr with newStr in a memory file. The match must be unique within the body.

Authentication: bearer token (Authorization: Bearer <token>)

Request body: application/json StrReplaceBodyDto

StatusDescriptionBody
200application/json MemorySummaryDtoDataEnvelope

DELETE /api/memory-api/memory/file

Delete a memory file.

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pathquerystringyesCanonical memory path, e.g. /memories/project/lesson/foo.md
StatusDescriptionBody
204

POST /api/memory-api/memory/file/append

Append a new ledger entry to an existing memory. The server stamps the ## <ISO-8601> heading.

Authentication: bearer token (Authorization: Bearer <token>)

Request body: application/json AppendEntryBodyDto

StatusDescriptionBody
200application/json MemorySummaryDtoDataEnvelope

POST /api/memory-api/memory/file/rename

Rename a memory slug. Scope + kind segments are immutable; only the slug changes.

Authentication: bearer token (Authorization: Bearer <token>)

Request body: application/json RenameMemoryBodyDto

StatusDescriptionBody
200application/json MemorySummaryDtoDataEnvelope

GET /api/memory-api/memory/list

Flat list of memories visible to the caller (org + active project + own user). Optional filters: scope, kind, tags, projectSlug for cross-project read.

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
kindqueryMemoryKindno
ownerSpaceKindqueryone of "org", "project", "user"no
projectSlugquerystringnoOther-project slug — read-only access if the actor is a member.
tagsqueryarray of stringno
StatusDescriptionBody
200application/json MemoryListResponseDtoDataEnvelope

GET /api/memory-api/memory/projects

List projects the current human actor can read memories from.

Authentication: bearer token (Authorization: Bearer <token>)

StatusDescriptionBody
200application/json MemoryProjectListResponseDtoDataEnvelope

GET /api/memory-api/memory/search

Vector search across memories the caller can read. Returns the same row shape as GET /memory/list.

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
kindqueryMemoryKindno
limitquerynumberno
ownerSpaceKindqueryone of "org", "project", "user"no
queryquerystringyes
tagsqueryarray of stringno
StatusDescriptionBody
200application/json MemorySearchResponseDtoDataEnvelope