Stores - create, list, delete.
A store is the user_id you read and write under - one isolated memory space per end-user, agent, or topic. Stores are explicit: create one before you store into or recall from it, or the call returns 404. Every account starts with a default store, so you can begin without a create call.
How isolation nests. An account owns workspaces; each workspace isolates its own memory, API keys, and usage (billing is shared at the account). A store lives inside a workspace: keys in the same workspace share its stores, and different workspaces never see each other's memory. account → workspace → store (user_id) → memories.
mem.create_store("alice") # create (idempotent)
mem.list_stores() # [{"user_id","created_at"}, ...]
mem.delete_store("alice") # delete the store + all its memoriesActual response - create
{ "user_id": "alice", "status": "created" } // "exists" if it already didActual response - list
{ "collections": [
{ "user_id": "default", "created_at": "2026-06-26T02:23:14Z" },
{ "user_id": "alice", "created_at": "2026-06-26T02:24:01Z" }
], "count": 2 }Recall on a store that doesn't exist
{ "error": { "type": "not_found_error",
"message": "Store 'ghost' does not exist. Create it first with
POST /api/v1/memory/collection {\"user_id\":\"ghost\"}, then store or recall." } }Use one store per end-user (
"alice", "user_42") to keep each person's memory separate, or a single default store for a personal agent. You can also create and browse stores in the console (Memory ids → Issue) without writing code. Deleting a store is permanent - it drops every memory under it. Store ids are folded before storage - lowercased, with anything outside [a-z0-9_] becoming _ - so Alice.Smith and alice-smith name the same store. Creating a second id that folds onto an existing one is refused with 409 rather than quietly shared. The id must also match [A-Za-z0-9][A-Za-z0-9._-]{0,63}, so an email address or a non-latin name cannot be a store id - key the store on an internal id instead.List and delete stores
mem.list_stores() # [{"user_id","created_at"}, …]
mem.delete_store("alice") # the store and every memory in it