Rensei docs

Durably ingest normalized runtime events for one owned session.

Accepts a bounded, versioned batch from the worker runtime that owns the session. The server verifies deterministic event identity and strict monotonic structured sequence, injects authenticated org/project/subject scope, validates each active topic payload, commits idempotent outbox rows atomically, and only then attempts the execution-ledger drain. Redis remains a post-append wake hint.

POST
/api/daemon/sessions/{id}/execution-events

Authorization

workerJwt
headerAuthorizationBearer <JWT>

Short-lived worker runtime JWT minted by the platform. Claims bind the worker, project, organization, registration, and scopes.

Path Parameters

id*string

Canonical platform session id.

Length1 <= length <= 256

Request Body

application/json
  1. body
version*string
sessionId*string
Length1 <= length <= 256
records*array<>
Items1 <= items <= 100

Response Body

The normalized source facts are durably accepted.

application/json
  1. response
ok*boolean
version*string
sessionId*string
accepted*integer
Range0 <= value <= 9007199254740991
idempotentReplays*integer
Range0 <= value <= 9007199254740991
drain*
Example Request
curl -X POST 'https://app.rensei.ai/api/daemon/sessions/string/execution-events' \  -H 'Content-Type: application/json' \  -d '{  "version": "donmai.execution-event-source-batch/v1alpha1",  "sessionId": "string",  "records": [    {      "version": "donmai.execution-event-source/v1alpha1",      "eventId": "string",      "structuredSeq": 1,      "observedAt": "2019-08-24T14:15:22Z",      "eventType": "string",      "persistencePolicy": "durable",      "evidence": {        "kind": "native"      },      "payload": {        "property1": null,        "property2": null      }    }  ]}'
Example Response
{  "ok": true,  "version": "donmai.execution-event-source-batch/v1alpha1",  "sessionId": "string",  "accepted": 0,  "idempotentReplays": 0,  "drain": {    "claimed": 0,    "delivered": 0,    "retried": 0,    "failed": 0  }}