Skip to main content

Recollections API

Recollections are collections of memories that can be associated with neurons for context and knowledge retrieval.

List Recollections

Get a list of recollections.
Brain scope required. Include the X-Brain-Id header or configure getBrainId in the public client.
GET /v1/recollections

Headers

HeaderTypeDescription
X-Brain-Idstring (UUID)Required. Brain ID for scoping

Query Parameters

ParameterTypeDescription
limitnumberMaximum number of results (default: 20)
offsetnumberOffset for pagination

Get Recollection

Get a single recollection by ID.
GET /v1/recollections/:id

Path Parameters

ParameterTypeDescription
idstringRecollection UUID

Get Recollection Stats

Get memory count, chunk count, and grep_cortex document count for a recollection (RAG scope exploration).
GET /v1/recollections/:id/stats

Path Parameters

ParameterTypeDescription
idstringRecollection UUID

Response

FieldTypeDescription
memory_countnumberNumber of memories in the recollection
chunk_countnumberTotal chunks across those memories
grep_doc_countnumberDocuments in grep_cortex for keyword search

Search Recollections

Search within recollections by owner. Supports semantic (vector), keyword (fulltext), or hybrid strategy.
Brain scope required. Include the X-Brain-Id header or brain_id in the request body.
POST /v1/recollections/search

Headers

HeaderTypeDescription
X-Brain-Idstring (UUID)Required. Brain ID for scoping

Request Body

FieldTypeRequiredDescription
querystringYesSearch query
owner_typestringYesOwner type (e.g. neuron, trace)
owner_idsstring[]YesOwner UUIDs to scope search
limitnumberNoMax results (default: 10, max: 100)
thresholdnumberNoScore threshold for vector strategy (default: 0.7)
strategystringNoqdrant (default), fulltext, or hybrid. fulltext uses keyword search (grep_cortex); hybrid merges vector and keyword with RRF.
contextstringNoFilter recollections by context (project or context metadata).
neuron_idstringNoFilter recollections by neuron UUID.
projectstringNoFilter recollections by project metadata.
trace_idstringNoScope search to a trace’s recollection (owner_type= trace when owner_ids empty).
tagsstring[]NoFilter recollections by tags (must match all).

Create Recollection

Create a new recollection.
POST /v1/recollections

Request Body

FieldTypeRequiredDescription
namestringYesRecollection name
descriptionstringNoRecollection description

Update Recollection

Update an existing recollection.
PUT /v1/recollections/:id

Delete Recollection

Delete a recollection.
DELETE /v1/recollections/:id
  • Neurons API - Use recollections in neuron configurations
  • Memories API - Add memories to recollections
  • Grep - Search memories, artifacts, resources