On this page
Command API
Endpoints at a glance
| Method | Path | Purpose |
|---|---|---|
POST | /ledger/v1/transactions | Record a batch of balanced transaction blocks |
POST | /ledger/v1/transactions/{transactionId}/corrections | Record a compensating reversal |
POST | /ledger/v1/events | Submit a business event |
GET | /ledger/v1/events | Inquire submitted events |
POST | /ledger/v1/events/batch | Bulk import events |
GET/POST/DELETE | /ledger/v1/failed-events… | Dead-letter queue |
Live API document: http://localhost:8080/q/openapi · Swagger UI: http://localhost:8080/q/swagger-ui · Health: /q/health · Metrics: /q/metrics.
Common headers
| Header | Required | Notes |
|---|---|---|
X-Tenant-ID | yes | Organization the write applies to |
X-Idempotency-Key | for transactions & corrections | Client-chosen key; replays return 409 |
X-Correlation-ID | no | Optional UUID linking related batches |
Authorization | in production | Bearer token with {orgId}:write:ledger (event inquiry needs only {orgId}:read:ledger) |
Maximum request body size is 10 MB.