Skip to content
Get started

Memory

Retrieve
client.projects.memory.retrieve(stringprojectID, RequestOptionsoptions?): MemoryRetrieveResponse { memory }
GET/projects/{projectId}/memory
Update
client.projects.memory.update(stringprojectID, MemoryUpdateParams { content } body, RequestOptionsoptions?): MemoryUpdateResponse { memory }
PUT/projects/{projectId}/memory
ModelsExpand Collapse
MemoryRetrieveResponse { memory }
memory: Memory { id, content, createdAt, 3 more }

Public JSON shape returned by GET endpoints

id: string

The memory ID — deterministic from scope + parent IDs (example: “mem_team_team_abc”)

content: string

Markdown content of the memory

createdAt: string

ISO 8601 timestamp when the memory was first written

sizeBytes: number

UTF-8 byte length of the content — used for quota enforcement

updatedAt: string

ISO 8601 timestamp when the memory was last updated

updatedBy: string

The userId of the last writer — useful for audit/UI

MemoryUpdateResponse { memory }
memory?: Memory { id, content, createdAt, 3 more }

Public JSON shape returned by GET endpoints

id: string

The memory ID — deterministic from scope + parent IDs (example: “mem_team_team_abc”)

content: string

Markdown content of the memory

createdAt: string

ISO 8601 timestamp when the memory was first written

sizeBytes: number

UTF-8 byte length of the content — used for quota enforcement

updatedAt: string

ISO 8601 timestamp when the memory was last updated

updatedBy: string

The userId of the last writer — useful for audit/UI