Skip to content

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.

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.

Material arrives with a 202 and is not learned yet; a run learns it; then its learning succeeds and search finds 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.

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 200 can still name Memories in partial. Do not report an empty search as “nothing found” until you have checked them.
  • Check what the limit left out. A Memory in partial with reason: "truncated" had passages that did not fit limit; its silence is about the budget, not about what it knows. Raise limit to hear it.
  • Use the supported search fields. Search accepts q, a limit and a mode (full or fast). 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 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.

A turn in the account’s container asks the platform’s inference service for a model; the service holds the provider key or subscription and makes the call; no model credential enters the container

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.

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.

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