persona.stores — /api/v1/developer/stores.
A Store is a named, scoped mount point you create and assign to Agents via
Agent.storeMounts (settable through agents.create()/agents.update()). It generalizes the
fixed /memories/user///memories/agent/ mounts into arbitrarily-named ones, mounted at
/stores/<name>/ in the Agent’s filesystem. An Agent reads/writes it via its own
read_file/ls/write_file/edit_file tools, on demand — a filesystem-backed alternative to
contextOverride for reference material too large to re-send in the prompt every turn.
Ownership & scoping
- Config CRUD (
create/list/get/update/delete) works with a bare Project credential — a Store’s config isn’t per-user. - File CRUD works the same, except when the Store’s own
scopeis'externalUser': only then does this client needexternalUserIdset, or the call 400s withEXTERNAL_USER_REQUIRED.
Methods
create(input)
name and scope are required. scope cannot be changed after creation.
scope: 'domain'— one shared namespace for the whole Project.scope: 'externalUser'— one namespace per external user, resolved per Agent run (same mechanism as/memories/user/).accessMode: 'readonly'— Agents can read but never write via their own tool calls; content is populated only through this API.readwrite— Agents can alsowrite_file/edit_fileinto it.
list(params?) / get / update / delete
update()can changename/description/accessMode—scopeis not updatable (not even in the type); create a new Store if you need a different scope.delete()also removes the Store from every Agent’sstoreMountsand purges all of its data (every founder’s partition, for anexternalUser-scoped Store).
File operations
StoreFile:{ path, content, mimeType, createdAt, updatedAt }.listFiles()returns a bareStoreFile[](no pagination envelope). For anexternalUser- scoped Store, it lists only the asserted external user’s own partition.writeFile()/deleteFile()are not gated byaccessMode—readonlyonly blocks an Agent’s own tool calls at mount time; this API is how a readonly Store gets populated in the first place.
Mounting a Store on an Agent
/stores/<name>/.