API reference

API reference · API

A space's memories, newest first

GET/v1/memoriesAPI key

Parameters

Path and query parameters
FieldTypeWhat it is
space_id (query)string
user (query)string
limit (query)integer
after (query)string
order (query)stringOne of "asc", "desc".

Answer 200

The memories.

Fields of the 200 answer
FieldTypeWhat it is
object"list"
dataarray of object
data[].idstringmem_ and 24 hex digits.
data[].object"memory"
data[].space_idstring
data[].memorystringThe remembered text.
data[].userstring or nullYour end user it is about.
data[].metadataobject
data[].sourcestringOne of "explicit", "extracted", "chat", "agent".
data[].confidencenumber or null0 to 1, as the extraction gave it; null for a text written as is.
data[].scorenumberOn a search: cosine similarity, 0 to 1.
data[].created_atinteger
data[].updated_atinteger
first_idstring or null
last_idstring or null
has_moreboolean

Errors

  • 401OpenAI shaped error.
  • 404OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter