Apply several writes atomically
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.
AuthorizationBearer <token>Your space key (om_...). Get one with POST /v1/connect.
application/json- body
Applied in one transaction: all ops succeed or none do.
ops*array<||||||||||||>1 <= items <= 50One result per op, in order
application/json- response
results*array<unknown>curl -X POST 'https://api.memlane.sh/v1/batch' \ -H 'Content-Type: application/json' \ -d '{ "ops": [ { "op": "memory.remember", "input": { "text": "string" } } ]}'{ "results": [ null ]}Poll for the agent's key POST
Returns 400 with error.code authorization_pending until the person approves (slow_down if you poll faster than `interval`), 403 access_denied if they decline, 400 expired_token when the code expired or was used. Once approved, the first poll returns your key, once.
Everything an agent needs at the start of a run, in one call GET
Core profile (bounded), due and open records, pending actions, recent journal days, the latest weekly digest, and selected KV namespaces.