FishMem
Memory Operations

Add

Write memories from messages or raw content.

POST /v1/memories

Add a conversation (FishMem extracts facts) or raw content (infer: false).

curl https://fishmem.com/v1/memories \
  -H "Authorization: Bearer fm_..." \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{"role": "user", "content": "I moved to Berlin."}],
    "user_id": "alex"
  }'
FieldNotes
messages or contentconversation messages, or raw text
user_id / agent_id / run_idscope — see Scoping
metadataarbitrary JSON stored with the memory
inferfalse to store raw content without extraction

Credits: an inferred add costs 2, a raw add costs 1.