Memories
Create a memory
Writes a fact to the specified memory store through the standard write algorithm: the content is embedded (or matched to text the store already holds), compared against the most similar currently-valid memory, and resolved to exactly one of three outcomes — skipped at or above duplicate_threshold, superseded at or above supersede_threshold, created below it. supersedes overrides that comparison entirely, retiring the memory it names. Every call records one assertion, whatever the outcome.
post/v1/projects/{project_id}/memories
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/memories
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Request body
Example request
{
"memory_store_id": "mstore_V1StGXR8Z5jdHi6B",
"content": "The customer prefers email communication over phone calls",
"source_type": "manual",
"source_id": "conv_V1StGXR8Z5jdHi6B",
"tags": {
"team": "finance",
"env": "prod"
},
"metadata": {
"author": "John",
"revision": 2
},
"supersedes": "mem_V1StGXR8Z5jdHi6B",
"duplicate_threshold": 0.95,
"supersede_threshold": 0.9
}Response
The write resolved against an existing memory — action is skipped (the fact was already known) or superseded (the fact had changed, and the returned memory is the replacement).
Example response
{
"id": "mem_V1StGXR8Z5jdHi6B",
"memory_store_id": "mstore_V1StGXR8Z5jdHi6B",
"content": "The customer prefers email communication over phone calls",
"source_type": "manual",
"source_id": "conv_V1StGXR8Z5jdHi6B",
"tags": {
"team": "finance",
"env": "prod"
},
"metadata": {
"author": "John",
"revision": 2
},
"superseded_by_memory_id": "mem_V1StGXR8Z5jdHi6B",
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.