Memories
List or search memories
Section titled “List or search memories”GET /v1/memoriesParameters
Section titled “Parameters”| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
end_user_id |
query | string | yes | min length 1; max length 255 |
query |
query | string | null | no | max length 1000 |
include_superseded |
query | boolean | no | default false |
limit |
query | integer | no | ≥ 1; ≤ 100; default 20 |
Response 200
Section titled “Response 200”Errors
Section titled “Errors”401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 413 Request Entity Too Large · 422 Unprocessable Entity · 429 Too Many Requests
Every error has the same body: see Limits and errors.
Remember facts about an end user
Section titled “Remember facts about an end user”POST /v1/memoriesSend messages and facts are extracted in the background with your LLM key
(202), or send one fact to store it directly (201). Near-duplicates update the
existing fact; a fact that contradicts an older one supersedes it.
Request body (application/json)
Section titled “Request body (application/json)”| Field | Type | Required | Notes |
|---|---|---|---|
end_user_id |
string | yes | min length 1; max length 255 |
messages |
array of ConversationMessage | null | no | at least 1 items; at most 50 items |
fact |
string | null | no | min length 1; max length 500 |
category |
"goal" | "preference" | "condition" | "history" | "other" |
no | default "other" |
Response 201
Section titled “Response 201”Memory | MemoryExtractionQueued
Response 202
Section titled “Response 202”Errors
Section titled “Errors”401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 413 Request Entity Too Large · 422 Unprocessable Entity · 429 Too Many Requests
Every error has the same body: see Limits and errors.
Delete one memory
Section titled “Delete one memory”DELETE /v1/memories/{memory_id}Parameters
Section titled “Parameters”| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
memory_id |
path | string (uuid) | yes |
Response 204
Section titled “Response 204”no body
Errors
Section titled “Errors”401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 413 Request Entity Too Large · 422 Unprocessable Entity · 429 Too Many Requests
Every error has the same body: see Limits and errors.