/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
Consent and manage endpoints
The consent/manage app uses these user-scoped endpoints:| Endpoint | Purpose |
|---|---|
POST /v1/uui/register | Create a Memory Passport account and send OTP |
POST /v1/uui/otp/send | Send a login code |
POST /v1/uui/otp/verify | Verify OTP and return session token |
GET /v1/uui/me | Resolve current Memory Passport session |
GET /v1/uui/me/grants | List active grants |
POST /v1/uui/me/grants | Create or update a grant |
DELETE /v1/uui/me/grants/{grant_id} | Revoke a grant |
GET /v1/uui/organisations | List public connector directory entries |
GET /v1/uui/me/connections | List the user’s connected services |
DELETE /v1/uui/me/connections/{connection_id} | Disconnect a service |
DELETE /v1/uui/me | Delete Memory Passport data |