These endpoints are frozen in private beta and disabled by default. They return 404 memory_passport_not_available unless MemoryOS explicitly enables MEMORY_PASSPORT_ENABLED for an approved deployment. Do not use this API for a standard production integration.
Universal memory APIs are used by global agents after a user grants access through Memory Passport.
These endpoints are separate from tenant-scoped /v1/memories/* APIs.
For the full product flow, use Cross-agent memory sharing. This page is only the API reference.
Authentication
Universal memory calls require two headers:
The agent API key identifies the requesting agent.
The UUI token identifies the Memory Passport user whose grant is being checked.
Create a global agent
Creates an agent identity that can request Memory Passport access.
Request:
Response:
Store raw_agent_api_key immediately. It is shown once.
Notes
- tenants create global agents; end users do not
id is the public agent_id used in consent and connector URLs
raw>_agent_api_key is the backend-only agent_sk_...
default_categories_requested only preselects consent checkboxes; the user makes the final choice
POST /v1/universal/memories/add
Queues a universal memory extraction job.
Request
Behavior
- requires an active grant for the user and agent
- requires
access_type = read_write
- writes to the universal memory table and
universal_memories vector collection
- never writes to the tenant-scoped
memories table
If the grant is read-only, MemoryOS returns:
POST /v1/universal/memories/retrieve
Retrieves universal memories that the user allowed this agent to access.
Request
Behavior
- filters by
user_uui_id
- filters by categories in the active permission grant
- searches only the
universal_memories collection
- never exposes other agents’ grants
- returns an empty result when no grant exists
No-grant response:
Public agent profile
The consent app and tenant apps can fetch a public global-agent profile before consent:
This endpoint does not return tenant ownership or agent API keys.
agent_id must be the UUID returned by agent registration. Malformed IDs
return 422; a valid UUID with no active public agent returns 404.
Example response:
Secure-link connector token
Creates a one-time connector token for a signed-in app user.
Request:
Response:
Build the user redirect URL:
Rules:
- generate the token only after the user is signed in to your app
- the token is single-use
- the token expires automatically
- do not ask the user to type their own app user ID
- do not expose your tenant API key in frontend code
Consent and manage endpoints
The consent/manage app uses these user-scoped endpoints:
Related pages