Skip to main content

Quickstart

This flow uses the public developer API shape and avoids admin-only surfaces.

1. Set environment

export UNIFIED_MEMORY_URL="https://edge-api.jithendranara.dev"
export UNIFIED_MEMORY_API_KEY="<scoped key>"
export UNIFIED_MEMORY_CONTAINER="jeethendra"

Use a scoped agent key from the product UI. Do not paste admin keys into shell history when a scoped key is enough.

2. Retain an atomic memory

curl -sS "$UNIFIED_MEMORY_URL/api/v2/containers/$UNIFIED_MEMORY_CONTAINER/retain" \
-H "Authorization: Bearer $UNIFIED_MEMORY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "The owner prefers MiniMax-backed search first for factual/current queries.",
"source": "docs_quickstart",
"memory_plane": "task",
"tags": ["quickstart", "preference"]
}'

3. Recall it

curl -sS "$UNIFIED_MEMORY_URL/api/v2/containers/$UNIFIED_MEMORY_CONTAINER/recall" \
-H "Authorization: Bearer $UNIFIED_MEMORY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What search path should the owner use for factual queries?",
"limit": 5
}'

Good recall includes the result, trust bucket, scope diagnostics, and evidence links when available.

4. Cross-examine important memory

Open the memory in Memory Courtroom before relying on it in a sensitive agent prompt.