/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:Create a global agent
Creates an agent identity that can request Memory Passport access.raw_agent_api_key immediately. It is shown once.
Notes
- tenants create global agents; end users do not
idis the publicagent_idused in consent and connector URLsraw>_agent_api_keyis the backend-onlyagent_sk_...default_categories_requestedonly 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_memoriesvector collection - never writes to the tenant-scoped
memoriestable
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_memoriescollection - never exposes other agents’ grants
- returns an empty result when no grant exists
Public agent profile
The consent app and tenant apps can fetch a public global-agent profile before consent:Secure-link connector token
Creates a one-time connector token for a signed-in app user.- 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