Skip to main content
POST
Append commands to the action ledger

Behavior

Every request carries an Idempotency-Key header; resending the same key and body replays each command (idempotent_replay: true) and appends nothing. The append completes in the request and answers 202 with its settled operation inline. actor_principal must name the same person as Nexio-Act-As when that header is sent. The credential must prove that person: the organization’s key is refused with 403 CAPABILITY_DENIED, reason KEY_IDENTITY_REFUSED, and a scoped key with 403 CAPABILITY_DENIED, so a ledger append needs a Nexio-issued application credential. Nothing is written to the system of record. See Writes and the action ledger.

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Nexio-Act-As
string

The member the read is made for (a WorkOS user id). Unset keeps the org-wide posture the key alone grants.

Nexio-Act-As-Email
string

The acting member's verified email, lowercased. Ignored without Nexio-Act-As.

Nexio-Consumer
string

The calling application (workbench).

Nexio-Consumer-Build
string

The calling application's build.

Nexio-Consumer-Vocabulary
string

The access vocabulary hash the calling build was generated against.

Nexio-Request-Id
string

A caller-chosen request id, echoed in the Nexio-Request-Id response header.

Nexio-Timeout
string

The caller's remaining budget for this request, in whole milliseconds (1 to 10 digits, greater than zero), relative to receipt. The engine stops work at the shorter of this and the route's own budget, and answers 504 request_timeout when it expires. A value above the route budget is capped to it; a malformed value is ignored.

Idempotency-Key
string

Required. At most 200 characters; a retry with the same key and body answers the recorded operation and never writes twice. The same key with another body is 422 IDEMPOTENCY_KEY_PAYLOAD_MISMATCH.

Body

application/json
actor_principal
string
required

The member the commands are attributed to. The credential must prove this member: the organization's key proves no member and is refused (403 CAPABILITY_DENIED, reason KEY_IDENTITY_REFUSED). When Nexio-Act-As is sent it must name the same member.

actor_type
enum<string>
required
Available options:
producer,
agent
commands
object[] | null
required

One to 20 commands, appended together or not at all.

Response

OK

A POST /actions answer: a document.reserve reservation or a records action result.

data
object
required
request_id
string
required
Last modified on December 1, 2026