Skip to main content
GET
Get ledger

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required
Pattern: ^crp_[a-zA-Z0-9]+$

Query Parameters

from
string<date-time>
required

Start of the requested window (inclusive). Required — this endpoint has no full-lifetime view.

to
string<date-time>
required

End of the requested window. Must be strictly after from. The window is capped at a maximum supported span; a wider request is rejected.

entryType
enum<string>

Restrict the response to a single entry type: increment (grant funding, including recurrence refills), decrement (usage drawdown), void (early grant termination), or expiration (unused balance lapsing at a grant's expiry). When granularity is also set, this filter scopes which entries feed each bucket's net fields and entryCount, but never the reported balances.

Available options:
increment,
decrement,
void,
expiration
granularity
enum<string>

Roll the ledger up into calendar-aligned buckets (UTC) instead of itemized entries. Calendar periods with no activity are omitted from the response. To see the individual entries behind a bucket, request the itemized ledger (omit granularity) with the same entryType filter and from/to narrowed to that bucket's period.

Available options:
hour,
day,
month
limit
integer
default:50

Maximum number of entries (or buckets, when granularity is set) to return.

Required range: 1 <= x <= 100
offset
integer
default:0

Zero-based offset for pagination.

Required range: x >= 0

Response

Pool ledger for the requested window. The shape depends on whether granularity was set: unset returns itemized entries, set returns rolled-up buckets.

startingBalance
number
required

Pool's total balance at the requested window's from.

endingBalance
number
required

Pool's total balance at the requested window's to.

entries
object[]
required

Ledger entries within the requested window, ordered oldest first.

pagination
object
required

Offset-based pagination response.