API reference
Home
Cash, burn, runway, MRR and ARR, all read from the books at one posting sequence.
- GET
/v1/homeGet cash, burn, runway and MRR at one posting sequence, and cash after known bills - GET
/v1/home/attentionList what needs a person today
Guides: Read your dashboard
Get cash, burn, runway and MRR at one posting sequence, and cash after known bills
GET/v1/home
client.home.get()
Cash, burn, runway, MRR and ARR, every one read from the books at the same posting sequence — so the page never mixes before and after a post, and the same sequence always gives the same figures.
Beside them, cash after known bills: cash less the bills coming due and the payroll expected over the next 90 days. The bills and payroll are read as the books stand, not at the sequence (decision 0167).
Parameters
| Name | Type | Description |
|---|---|---|
through_sequenceQuery | integer or null | Read the books as posted through this sequence. Defaults to the latest. |
as_ofQuery | string (date) or null | Defaults to today. |
Response
200HomeOut
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl "https://api.ledgerit.ai/v1/home" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"List what needs a person today
GET/v1/home/attention
client.home.attention()
What needs a person today: an unhealthy connection (failing, needing a sign-in within a week, or behind its freshness target) or an overdue close first, because the books are wrong or late until someone acts, then the open questions waiting on the caller, transactions to review, receipts to match and the open items waiting on the owner — not the ones with the books' accountant.
A question waits on the member it was asked of. For an owner or admin
(questions.business) it also counts the business's questions: those
asked of an owner or admin, or of nobody who still opens the books, such
as a member who has left — the questions that make the month's Questions
part the owner's.
Response
200AttentionOut
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl "https://api.ledgerit.ai/v1/home/attention" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Objects
The objects these operations take and return.
HomeOut
The books' headline figures, at one posting sequence.
| Name | Type | Description |
|---|---|---|
after_known_bills | KnownOutflowsOut or null | Cash after the bills and payroll due in the next 90 days; null for books not set up yet. |
arrRequired | string | MRR × 12. |
as_ofRequired | string (date) | |
burningRequired | boolean | True when the net burn is above zero. |
cashRequired | string | Cash across every cash account at the end of |
currencyRequired | string | |
gross_burnRequired | string or null | Operating cash that left in the last complete month, as a positive figure. |
mrrRequired | string | Subscription revenue recognized in |
mrr_monthRequired | string (date) | The complete month MRR is for: the first day of it. |
net_burnRequired | string or null | Average net burn of the last complete months (up to three); null with none yet. |
runway_monthsRequired | string or null | Months of cash at the net burn, to one decimal; null when not burning. |
through_sequenceRequired | integer | Every figure counts the book's entries posted up to and including this sequence, and nothing after. Pass it back as |
trailing_monthsRequired | integer | How many complete months |
AttentionOut
What needs a person today, blocking items first; nothing listed when nothing needs anyone.
| Name | Type | Description |
|---|---|---|
itemsRequired | array of AttentionItemOut |
KnownOutflowsOut
Cash less what the books know is due soon (decision 0167).
| Name | Type | Description |
|---|---|---|
billsRequired | string | What is due by |
cash_afterRequired | string |
|
payrollRequired | string | The payroll runs expected by |
payroll_estimatedRequired | boolean | True when |
throughRequired | string (date) | The last day counted: 90 days from |
AttentionItemOut
| Name | Type | Description |
|---|---|---|
blockingRequired | boolean | True for what stops the books being right: an unhealthy connection, an overdue close. |
countRequired | integer | How many: connections (also those that may not read the provider's people), overdue tasks, open questions waiting on the caller ( |
kindRequired | string |
|
period_key | string or null | For |
provider | string or null | For a connection item, the provider of the first such connection, such as |
subject_about | string or null | What kind of record that is: |
subject_id | string or null | An id. Which resource it names is given by the field beside it. |