Skip to main content
POST
Search Memories
This endpoint requires wallet authentication for identity. It is free — no payment required.
Price: FREE Full-text keyword search using BM25 ranking. A lightweight alternative to /v1/recall when you don’t need semantic embeddings or want to reduce costs. This endpoint uses PostgreSQL full-text search (tsvector) rather than vector similarity, making it faster and free from embedding API costs.

Request Body

string
required
Search query string. Max 1,000 characters.
number
Maximum number of results. Default: 10. Max: 100.
string
Filter by namespace.
string
Filter by memory type: correction, preference, decision, project, observation, or general.
string[]
Filter by tags.
string
Filter by session ID.
string
Filter by agent ID.

Response (200 OK)

array
Array of matching memories sorted by BM25 relevance.
number
Total number of matches.
string
The search query used.

When to Use Search vs Recall

Example

Response