Skip to main content
Session memory persists key-value pairs as context fragments using pgvector. Write memory with a POST request, then retrieve relevant items later with a semantic GET search.

Write Memory

Endpoint

Authentication

Pass one of Authorization: Bearer <api-key> or Authorization: ApiKey <key>.

Path Parameters

string
required
The agent session identifier.

Request Body

string
required
Unique key for the memory item.
string
required
The text value to store.
object
Optional arbitrary metadata object.

Response

string
The stored key.
string
The stored value.
object
Stored metadata.

Search Memory

Endpoint

Query Parameters

string
required
Semantic search query.
integer
Maximum number of results to return.
string
Optional metadata filter expression.

Response

array
Array of matching memory items.
string
Item key.
string
Item value.
number
Semantic similarity score.
object
Item metadata.