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","canonical_id"?}, ...]
mem.delete_store("alice") # delete the store + all its memoriesActual response - create
{ "user_id": "alice", "status": "created" } // "exists" if it already did
// "canonical_id" and "note" appear when the id is stored in a normalized formActual 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 in this API key's workspace. …",
"store": "ghost" } }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. A store id is 1 to 64 ASCII letters, digits, ., _ and -, starting with a letter or digit. Any other id, such as an email address or a name in another script, is refused on create with 400, so key the store on an internal id instead. Ids that differ only by case name one store: Alice.Smith and alice.smith are the same. Ids that differ only in ., _ or - cannot both exist: once alice.smith exists, creating alice-smith is refused with 409 and using it answers 404. When an id is stored in a normalized form, create and list responses add canonical_id. Keep using the id you created the store with.List and delete stores
mem.list_stores() # [{"user_id","created_at","canonical_id"?}, …]
mem.delete_store("alice") # the store and every memory in it