REST API
Use the API directly without an SDK.
Base URL
https://api.memory.tensorheart.com/v1
Authentication
curl https://api.memory.tensorheart.com/v1/memories \
-H "Authorization: Bearer mem_live_your_api_key"
Create Memory
curl -X POST https://api.memory.tensorheart.com/v1/memories \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Memory content", "metadata": {"key": "value"}}'
Query Memories
curl -X POST https://api.memory.tensorheart.com/v1/query \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"context": "Your question here"}'
OpenAPI Spec
Download the OpenAPI specification:
curl https://api.memory.tensorheart.com/openapi.json -o openapi.json
Use with any OpenAPI-compatible tool.