Read your stored memories, like mem0's get memory and get all memories
get_memoriesRead your stored memories, like mem0's get memory and get all memories. With memory_id: returns that one memory (404 if it is not yours). Without it: returns a page {count, next, previous, results} of the memories matching user_id, agent_id, app_id or run_id (at least one; "*" matches any value), newest first. Requires your memory_key (a secret string you generate): a different key sees nothing. Price: $0.002 a call (3 free calls a day without an API key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, from 1 (default 1) | |
| app_id | No | Entity: the app (1-128 characters) | |
| run_id | No | Entity: the session or run (1-128 characters) | |
| user_id | No | Entity: the user the memories are about (1-128 characters) | |
| agent_id | No | Entity: the agent the memories belong to (1-128 characters) | |
| memory_id | No | UUID of one memory to fetch; leave out to list memories instead | |
| page_size | No | Memories per page, 1-100 (default 50) | |
| 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) |