Skip to main content
POST
Ingest
Price: $0.01 USDC Ingest is the easiest way to add memories. Dump a conversation or raw text and MemoClaw will extract facts, deduplicate against existing memories, and optionally create relations between them — all in one call.

Request Body

array
Array of conversation messages ({role, content}). Provide either messages or text.
string
Raw text to extract facts from. Provide either messages or text.
string
Namespace for extracted memories. Default: "default".
string
Session identifier for multi-agent scoping.
string
Agent identifier for multi-agent scoping.
boolean
Automatically create relations between extracted facts. Default: false.

Response (201 Created)

array
Array of UUIDs for the stored memories.
number
Total facts extracted from the input.
number
Facts that were stored (after deduplication).
number
Facts that were skipped because they already existed.
number
Number of relations created between facts (when auto_relate is true).
number
Tokens consumed by the LLM extraction.

Example

Response
Ingest combines extract, dedup, and relate into a single call. If you only need extraction without dedup/relations, use the Extract endpoint instead.