Remember a fact
const url = 'http://localhost:11044/api/v1/memory/remember';const options = { method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{"confidence":1,"text":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:11044/api/v1/memory/remember \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "confidence": 1, "text": "example" }'Persists one already-formed statement as an ACTIVE proposition in the caller’s context. If an ACTIVE proposition with the same text (modulo case and surrounding whitespace) already exists, returns that proposition instead of inserting a duplicate.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The fact, in text, stored verbatim after trimming with no LLM extraction; blank or over 2000 characters is a 400. confidence is optional, defaults to 0.9 and is clamped to 0–1; it is ignored when an ACTIVE fact with the same text, ignoring case and surrounding whitespace, already exists and is returned instead
One already-formed fact to store verbatim in the caller’s memory as an ACTIVE proposition, by POST /memory/remember
object
How sure the fact is, from 0 to 1, a value outside clamped to that range; absent or null means 0.9. Unused when the fact matches an existing one
The statement to remember, trimmed; must not be blank, and at most 2,000 characters. When an ACTIVE proposition in the caller’s current context already has this text, ignoring case and surrounding whitespace, that one is returned and nothing is stored
Example generated
{ "confidence": 1, "text": "example"}Responses
Section titled “Responses”The fact stored, or the existing one it duplicates
The fact as remembered: the proposition just stored, or the existing one whose text it matched
object
The proposition’s id
The proposition’s text. For a duplicate, the EXISTING text, which may differ from the request in case and surrounding whitespace
Example generated
{ "id": "example", "text": "example"}The text is blank or longer than the limit
A refused fact. Carries only the reason
object
Why the fact was refused: blank, or longer than the limit
Example generated
{ "error": "example"}
