Rest
For the complete BrainAPI documentation index, see llms.txt. A markdown version of any docs page is available by appending .md to its URL. Docs MCP: /docs/mcp.
Query Memory
Query a memory. This will return the most relevant context from the memory. You can also specify a conversation_id to get the history of the conversation.
Header Parameters
X-LumenBrain-ApiKey*X-Lumenbrain-Apikey
API Key for authentication
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/memory/query/" \ -H "X-LumenBrain-ApiKey: string" \ -H "Content-Type: application/json" \ -d '{ "text": "string", "memory_uuid": "string" }'{ "status": "ok", "context": [ "string" ]}