Extract Facts
API Reference
Extract Facts
POST /v1/memories/extract — Extract and store facts from conversation via LLM.
POST
Extract Facts
This endpoint requires an x402 payment header.
Request Body
Array of conversation messages. Each message must have
role (string) and content (string). Max 100 messages, 32,768 characters per message.Namespace for extracted memories. Default:
"default".Associate extracted memories with a session.
Associate extracted memories with an agent.
Response (201 Created)
UUIDs of the stored memories (includes both new and deduplicated).
Total facts identified by the LLM.
New facts stored (not duplicates).
Facts that matched existing memories (skipped).
Total tokens consumed (LLM + embeddings).
Example
Response
The LLM automatically assigns importance and memory type based on the content. Corrections and preferences get higher importance; observations get lower. Each fact is deduplicated against existing memories.