Now AvailableDedicated AI memory with cryptographic proofs. From $3/mo.View pricing →

Atoms API

The atoms endpoints are the core of Parametric Memory. They handle storing and retrieving individual named knowledge units.

Store an atom

POST /atoms
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
  "key": "v1.user.Glen.preference.theme",
  "value": "dark"
}

Response 201:

{
  "key": "v1.user.Glen.preference.theme",
  "version": 1,
  "hash": "a9b2c3d4...",
  "rootHash": "f1e2d3c4...",
  "createdAt": 1743638400000
}

Retrieve an atom

GET /atoms/:key
Authorization: Bearer YOUR_API_KEY

Response 200:

{
  "key": "v1.user.Glen.preference.theme",
  "value": "dark",
  "version": 3,
  "hash": "a9b2c3d4...",
  "proof": {
    "leafHash": "a9b2c3d4...",
    "siblings": ["b1c2d3e4...", "c2d3e4f5..."],
    "rootHash": "f1e2d3c4...",
    "leafIndex": 42,
    "treeSize": 500
  }
}

Batch store

POST /batch-atoms
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
  "atoms": [
    { "key": "v1.user.Glen.preference.theme", "value": "dark" },
    { "key": "v1.user.Glen.preference.language", "value": "TypeScript" }
  ]
}

Batch operations are processed atomically — either all succeed or all fail.

Error responses

StatusCodeMeaning
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENKey lacks full scope (read-only key)
404NOT_FOUNDAtom key does not exist
413PAYLOAD_TOO_LARGEValue exceeds tier limit
422SENSITIVE_CONTENT_REJECTEDValue matched a credential pattern or entropy check — see Atom Safety
429RATE_LIMITEDToo many requests — back off and retry
Atoms API | Parametric Memory