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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
entity_id | query | -- | string, optional | -- |
entity_type | query | -- | string, optional | -- |
event_type | query | -- | string, optional | -- |
resolve | query | -- | boolean | -- |
limit | query | -- | integer | -- |
offset | query | -- | integer | -- |
Responses
| Status | Description | Body |
|---|---|---|
200 | Successful Response | object |
422 | Validation Error | HTTPValidationError |
Example
curl -X GET http://localhost:8000/ledger \
-H "Authorization: Bearer $TOKEN"POST /ledger/rebuild
Rebuild
Responses
| Status | Description | Body |
|---|---|---|
200 | Successful Response | object |
Example
curl -X POST http://localhost:8000/ledger/rebuild \
-H "Authorization: Bearer $TOKEN"GET /ledger/{entry_id}
Get Entry
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
entry_id | path | yes | integer | -- |
Responses
| Status | Description | Body |
|---|---|---|
200 | Successful Response | object |
422 | Validation Error | HTTPValidationError |
Example
curl -X GET http://localhost:8000/ledger/:entry_id \
-H "Authorization: Bearer $TOKEN"