Skip to main content
POST
/
api
/
v1
/
memories
Append a new memory (mirrors the MCP remember tool)
curl --request POST \
  --url https://3ngram-server-production.up.railway.app/api/v1/memories \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "content": "<string>",
  "topic": "<string>",
  "project": "<string>",
  "scope": "personal",
  "tags": []
}
'
{
  "memory": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "project": "<string>",
    "scope": "<string>",
    "topic": "<string>"
  },
  "commitmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
content
string
required
Required string length: 1 - 2000
memoryType
enum<string>
required
Available options:
decision,
commitment,
blocker,
fact,
preference,
pattern,
note,
event
topic
string
required
Required string length: 1 - 256
project
string
Required string length: 1 - 256
scope
string
default:personal
Required string length: 1 - 64
Pattern: ^[a-z0-9][a-z0-9-]*$
tags
string[]
Maximum array length: 32
Required string length: 1 - 64

Response

201 - application/json

Success

embedded
enum<string>
required
Available options:
pending,
done,
failed,
off
memory
object
required
commitmentId
string<uuid>
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$