openmemory
Docs
Context

Apply several writes atomically

POST
/v1/batch

All ops succeed or none do. Version and status checks abort the whole batch with 409, and error.details.op_index says which op failed when that can be told. Ops that read first (record.update, journal merge, action.propose) see the state from before the batch.

Authorization

headerAuthorizationBearer <token>

Your space key (om_...). Create one with POST /v1/spaces.

Request Body

application/json
  1. body

Applied in one transaction: all ops succeed or none do.

ops*array<||||||||||||>
Items1 <= items <= 50

Response Body

One result per op, in order

application/json
  1. response
results*array<unknown>
Example Request
curl -X POST 'https://api.openmemory.sh/v1/batch' \  -H 'Content-Type: application/json' \  -d '{  "ops": [    {      "op": "memory.remember",      "input": {        "text": "string"      }    }  ]}'
Example Response
{  "results": [    null  ]}