POST
/
api
/
memory
Store a new memory
curl --request POST \
  --url https://www.memoryplugin.com/api/memory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<string>",
  "bucketId": 123,
  "source": "<string>"
}'
{
  "done": "ok"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
text
string
required

The memory to be added. Always prepend with current date in YYYY-MM-DD format in the users timezone if you know it, UTC otherwise.

bucketId
integer

The id of the bucket to add the memory to. If not provided, the memory will be added to the default bucket.

source
string

Client source identifier (e.g., 'chatgpt' for ChatGPT requests)

Response

Memory stored successfully

done
enum<string>
Available options:
ok