POST
/
v0
/
memories
Store a memory (fact, event, document, note, profile, chunk).
curl --request POST \
  --url https://api.flumes.ai/v0/memories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "namespace": "default",
  "agent_id": "<string>",
  "entity_id": "<string>",
  "type": "fact",
  "text": "<string>",
  "metadata": {},
  "tags": [
    "<string>"
  ],
  "timestamp": "2023-11-07T05:31:56Z",
  "archived": false,
  "sensitivity": "auto",
  "subject": "<string>",
  "predicate": "<string>",
  "object": "<string>",
  "object_type": "literal",
  "unit": "<string>",
  "keys": [
    "<string>"
  ],
  "valid_from": "2023-11-07T05:31:56Z",
  "valid_to": "2023-11-07T05:31:56Z",
  "confidence": 0.5,
  "status": "active",
  "provenance": {}
}'
{
  "memory_id": "<string>",
  "embedding_indexed": true,
  "cost": {
    "input_tokens": 0,
    "embedding": 0,
    "llm_tokens": 0,
    "retrieval_ops": 0
  },
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Flumes-Agent
string

Agent id within the org.

Maximum length: 128
Idempotency-Key
string

Idempotency key for safe retries (unique per org).

Maximum length: 128

Body

application/json

Base memory record (open-world). Write requests ignore org fields; org is taken from header.

Response

200
application/json

Stored

The response is of type object.