API setup

Connect your app.

Use the dashboard to generate a tenant API key, then exchange it for a JWT.

1. Exchange API key for JWT

curl -s -X POST "https://api.pi900.com/auth/exchange" \
  -H "X-Api-Key: YOUR_TENANT_API_KEY"

2. Save memory

curl -s -X POST "https://api.pi900.com/nm/remember" \
  -H "Authorization: Bearer YOUR_JWT" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Important memory note",
    "memory_type": "user_note",
    "project": "pi900",
    "tags": ["api"],
    "subject_type": "app",
    "subject_key": "quickstart",
    "fact_key": "quickstart_2026-06-12",
    "date_index": "2026-06-12"
  }'

3. Flash recall

curl -s -X POST "https://api.pi900.com/nm/flash_recall" \
  -H "Authorization: Bearer YOUR_JWT" \
  -H "Content-Type: application/json" \
  -d '{"query":"Important memory note","limit":5}'