Search your stored memories by meaning, like mem0's search
search_memoriesSearch your stored memories by meaning, like mem0's search: embeds the query and returns the closest memories with a relevance score from 0 to 1. Only memories stored under the same memory_key (your secret string; required) are searched. filters must name at least one of user_id, agent_id, app_id, run_id. Returns {results:[{id, memory, score, metadata, ...}]}. Price: $0.004 a call (3 free calls a day without an API key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What to look for, in natural language (up to 500 characters) | |
| top_k | No | How many memories to return, 1-100 (default 10) | |
| filters | Yes | mem0 filters: at least one of user_id, agent_id, app_id, run_id, each a string, "*" or {"in": [up to 20 strings]}; AND lists of those. OR and NOT are not supported. | |
| threshold | No | Minimum relevance score, 0-1 (default 0.1; 0 disables) | |
| memory_key | Yes | Your secret: a random string of 16-256 characters that you generate once and keep (also accepted as the X-Memory-Key header). Memories are stored and searched only under its hash, so nobody who lacks it can read them, whatever user_id they send. Lose it and the memories are unreachable. | |
| show_expired | No | Include memories whose expiration_date has passed (default false) |