cURL
curl --request POST \ --url https://api.leedab.com/api/v1/memories/remember \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "content": "<string>", "user_id": "<string>", "session_id": "<string>", "metadata": {}, "ttl": 123 } '
Store a memory via API
Documentation IndexFetch the complete documentation index at: https://docs.agent-mind.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.agent-mind.com/llms.txt
Use this file to discover all available pages before exploring further.
import requests url = "https://api.leedab.com/api/v1/memories/remember" headers = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" } data = { "content": "User prefers dark mode and email notifications", "user_id": "user_123", "metadata": { "category": "preferences" } } response = requests.post(url, json=data, headers=headers) print(response.json())
data = { "content": "Customer is interested in premium plan features", "user_id": "customer_456", "session_id": "session_789", "metadata": { "type": "sales_interaction", "priority": "high" }, "ttl": 86400 # Expires in 24 hours } response = requests.post(url, json=data, headers=headers)
{ "error": "Invalid request body" }
{ "error": "Invalid or missing API key" }
{ "error": "Failed to store memory" }