FishMem

API Reference

Endpoints, request/response shapes, auth, and credits for the FishMem REST API.

The FishMem REST API is mem0-compatible. If you already use a mem0 client, see Migrate from mem0 — you can usually point it at FishMem and keep your existing code.

Base URL

https://fishmem.com

Authentication

Every request requires a Bearer token in the Authorization header. Keys look like fm_... — keep them server-side.

Authorization: Bearer fm_...

A missing or invalid key returns 401:

{ "code": 401, "message": "Invalid API key", "error": "INVALID_API_KEY" }

The <memory> object

Reads and searches return memory objects with this shape:

{
  "id": "mem_…",
  "memory": "Prefers dark mode",
  "memory_type": "fact",
  "importance": 0.7,
  "user_id": "alex",
  "agent_id": null,
  "run_id": null,
  "metadata": null,
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "event_date": null,
  "valid_from": null,
  "valid_to": null
}

Search results include an additional score field.

Errors

Any failure returns JSON with the same shape:

{ "code": 404, "message": "Memory not found", "error": "NOT_FOUND" }
FieldDescription
codeHTTP status code
messageHuman-readable text
errorMachine-readable error code

Credits

OperationCredits
Add (inferred, infer: true)2
Add (raw, infer: false)1
Search1
List, Get, HistoryFree
Update, Delete, Delete allFree

Endpoints

EndpointMethod & pathDescription
Add memoriesPOST /v1/memoriesExtract and store memories from messages
List memoriesGET /v1/memoriesList memories in a scope
Search memoriesPOST /v1/memories/searchSemantic search within a scope
Get a memoryGET /v1/memories/{id}Fetch a single memory
Update a memoryPUT /v1/memories/{id}Edit a memory's text or metadata
Delete a memoryDELETE /v1/memories/{id}Delete a single memory
Delete memories by scopeDELETE /v1/memoriesDelete all memories in a scope
Memory historyGET /v1/memories/{id}/historyAudit trail for a memory

On this page