How Membase works
How documents become memory, how search behaves, and how models and access settings affect API calls.
This page describes the behavior an integration needs to handle: learning from documents, searching memory, choosing a model and checking access.
Accounts and Memories
Section titled “Accounts and Memories”Each account owns its Memories, sources and access settings. No API request names a Memory:
a credential reads every Memory the owner let it reach, and writes land in its write target
(the Memory chosen under Writes go to, or the only text Memory it reaches). Answers name the Memory they came from (memory_name). Use the account owner’s
credentials; do not use Memories as isolation boundaries between different users.
Multi-user isolation.
Material becomes memory in a learning turn
Section titled “Material becomes memory in a learning turn”A Memory has an instruction describing what to retain and sources containing material to process. Adding a source in the app starts learning right away, but added is not learned: the Memory knows the material only once a learning run has read it.
Select Learn now on the Memory’s page or add a schedule to process sources. The API’s
add_document also starts learning and returns 202; this acknowledges acceptance, not
completed learning. Wait until the document’s learning status reads succeeded before
searching for the new content.
If learning fails, resolve the reported issue and select Learn now again.
Memory operations.
A search is a turn
Section titled “A search is a turn”search_memories retrieves relevant passages from every Memory the credential reaches. Each
result names its Memory (memory_name). ask_memory returns one answer the memory engine
writes from the Memories in reach, with no agent and no tools; an agent exposure’s credential
holds it; a developer key, an AI app or a marketplace credential does not.
- Allow time for startup and retrieval. A request after inactivity can take longer. The SDKs default to a 90-second timeout; some requests may need longer.
- Check partial failures. An HTTP
200can still name Memories inpartial. Do not report an empty search as “nothing found” until you have checked them. - Check what the limit left out. A Memory in
partialwithreason: "truncated"had passages that did not fitlimit; its silence is about the budget, not about what it knows. Raiselimitto hear it. - Use the supported search fields. Search accepts
q, alimitand amode(fullorfast). Metadata filters are not supported, and an unknown field is refused; include relevant constraints in the query.
See API troubleshooting for timeouts and unavailable Memories.
The profile
Section titled “The profile”The profile holds standing statements about the user (pf_…: name, role, lasting
preferences) separately from topic-specific Memories. Each says where it came from
(source_kind: user_stated, imported or model_generated). List it with
list_profile_facts when the credential grants profile access; a key whose level allows
writes may also keep a statement (add_profile_fact) and, at Full, forget one
(forget_profile_fact, with confirm=true). There is no editing: a correction is a new
statement and the old one forgotten.
Models
Section titled “Models”Learning and assistant replies use AI: the plan’s AI credits, or the account’s own AI. The account owner connects an API key, or a Claude or ChatGPT account, in AI Setup, and picks what Memories learn on there (Your AI or Membase model).
When a model is unavailable, stored memory remains, but learning or search may fail. A turn
can return 422 with code: capability_unavailable; search may instead name each affected
Memory in partial with reason: "error". A document can remain unread until the issue
is resolved and learning completes. When the AI credits are used up, what was learned stays
searchable, and learning pauses: a write is kept, and its receipt says
reason: "credits_used_up" with a message for the person. An account whose paid plan has
ended answers 422 · capability_unavailable with details.reason: "dormant" (in a search,
reason: "dormant" in partial) until its owner renews. Follow the returned recovery
guidance.
Access and confirmation
Section titled “Access and confirmation”Developer keys and AI apps connected over MCP have an access level, selected Memories and an expiry. The consent screen is the same form as creating a key; an app that asked for read access alone (or named no scope) gets Read. Your profile is a separate tick. Changes to permissions apply to subsequent requests using the credential.
forget_memory, delete_document, delete_media and forget_profile_fact require the
Full level and confirm=true from a developer key; without it nothing changes and the
answer is 428 confirmation_required. From an AI app (which connects over MCP) it is always
a tool error saying it can only request a removal; nothing changes, and the person removes the
item in the Membase app. Obtain the owner’s confirmation before submitting one. Revoking a credential prevents
future access through it; it does not erase results already received by an external client.
Authentication describes the permission rules.
Where to go next
Section titled “Where to go next”| Task | Guide |
|---|---|
| Make a first call | Quickstart |
| Add, retrieve or remove content | Memory operations |
| Look up an operation | API reference |
| Map the app to API concepts | Platform overview |
| Connect an AI app | Connect your AI |
| Review engine evaluation results | Benchmarks |