Search & chat

Chat over your memories

Answers the latest user message from your memories, in the language you asked in. Streams by default (Vercel AI SDK data stream; the thread ID is in the Supermemory-Thread-Uuid header). Set stream: false for one JSON response.

post/chat

Request

  • Base URL: https://api.mymemory.dev/v1
  • URL: https://api.mymemory.dev/v1/chat
  • Auth: HTTP bearer

Request body

threadIdstring

Continue an existing thread (the threadId from an earlier response).

spacesstring[]

Only use memories in these spaces.

streamboolean
beforestring date-time

Only use memories on or before this date.

afterstring date-time

Only use memories on or after this date.

recencyBiasnumber

Response

The answer. JSON when stream is false; a data stream otherwise.

textstring

The answer. Cites memories as [1], [2], …

threadIdstring

Pass back as threadId to continue the conversation.

refusedboolean

True when no memory was relevant enough to answer from.

citationsobject[]

The memories the answer cites.

Changes

No recorded changes to this operation across all 1 revision of this API.