Skip to main content

REST API

Direct HTTP access to the Tensorheart Memory API.

Base URL

https://memoryapi.tensorheart.com/v1

Authentication

curl https://memoryapi.tensorheart.com/v1/memories \
-H "Authorization: Bearer mem_live_your_api_key"

Create Memory

curl -X POST https://memoryapi.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://memoryapi.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://memoryapi.tensorheart.com/openapi.json -o openapi.json

Use with any OpenAPI-compatible tool.