1

Get an API key

Sign up at app.flumes.ai and grab your secret key from the dashboard.
2

Save a memory

curl -X POST https://api.flumes.ai/v1/memories/ \
  -H "Authorization: Bearer $FLUMES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "alex",
    "messages": [
      {"role": "user", "content": "I want to go to Rome in July. give me tips for museums" }
    ]
  }'
3

Retrieve it later

curl -G https://api.flumes.ai/v1/memories \
  --data-urlencode "agent_id=assistant-123" \
  --data-urlencode "prompt=capital" \
  -H "Authorization: Bearer $FLUMES_API_KEY"
You’ll get the most relevant memories back as JSON:
[
  {
    "memory": "Paris is the capital of France",
    "score": 0.94,
    "created_at": "2024-07-01T12:34:56Z"
  }
]
That’s it! You now have a persistent memory layer for your app. Explore the API reference to dive deeper.