REST API

Ledger API

Work with the event-sourced ledger and its projections.

Generated from the Celerp 2.4.0 OpenAPI schema, 16 September 2026.

GET /ledger

List Entries

Parameters

NameInRequiredTypeDescription
entity_idquery--string, optional--
entity_typequery--string, optional--
event_typequery--string, optional--
resolvequery--boolean--
limitquery--integer--
offsetquery--integer--

Responses

StatusDescriptionBody
200Successful Responseobject
422Validation ErrorHTTPValidationError

Example

curl -X GET http://localhost:8000/ledger \
  -H "Authorization: Bearer $TOKEN"

POST /ledger/rebuild

Rebuild

Responses

StatusDescriptionBody
200Successful Responseobject

Example

curl -X POST http://localhost:8000/ledger/rebuild \
  -H "Authorization: Bearer $TOKEN"

GET /ledger/{entry_id}

Get Entry

Parameters

NameInRequiredTypeDescription
entry_idpathyesinteger--

Responses

StatusDescriptionBody
200Successful Responseobject
422Validation ErrorHTTPValidationError

Example

curl -X GET http://localhost:8000/ledger/:entry_id \
  -H "Authorization: Bearer $TOKEN"