/v1/memories/* APIs.
Authentication
Universal memory calls require two headers:Create a global agent
Create a global agent once per app or AI agent that will request Memory Passport access. The tenant creates this agent from their backend or tenant dashboard. End users do not create global agents; they only approve or deny access on the consent page.default_categories_requested sets the default checkboxes when a consent URL does not pass categories. It does not limit what the user can approve. A consent link can preselect a different subset with ?categories=preference,goal, and the final grant stores only the categories the user approves.
Response:
raw_agent_api_key immediately. It is the agent_sk_... value used for universal memory calls and should be treated like a backend secret.
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:Consent and manage endpoints
Human users interact through the consent app:| 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 |
DELETE /v1/uui/me | Delete Memory Passport data |