API reference

Investor shares

Links that share the closed months with an investor, read-only, and when each was last opened.

Guides: Share your books with investors

List the links the books are shared with investors by

GET/v1/investor_shares

client.investorShares.list()

The links these books are shared with investors by, the newest first, each with when it was last opened.

Parameters

NameTypeDescription
statusQuerystring or null

Only live, expired or revoked links.

One of live, expired, revoked
limitQueryinteger

Page size, 1–200.

Default 50
cursorQuerystring or null

The next_cursor of the previous page.

Response

200InvestorSharePage

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
curl "https://api.ledgerit.ai/v1/investor_shares" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Share the books with an investor through a link

POST/v1/investor_shares· Idempotent

client.investorShares.create()

Share these books with an investor through a link. The link opens a read-only page of the closed months — the board packs, the statements, or both — with no account needed, until it expires or is revoked. The answer carries the link's token and address once; nothing is emailed.

Request body

InvestorShareCreate

Response

201InvestorShareCreatedOut

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
curl -X POST "https://api.ledgerit.ai/v1/investor_shares" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"investor_name":"…"}'

Get an investor link and when it was last opened

GET/v1/investor_shares/{share_id}

client.investorShares.get()

One investor link: who it is for, what it shows, and when it was last opened. Its token is not in it: that is shown once, when it is made.

Parameters

NameTypeDescription
share_idPath · Requiredstring

An id that starts with investor_share_.

Response

200InvestorShareOut

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
curl "https://api.ledgerit.ai/v1/investor_shares/{share_id}" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Revoke an investor link

DELETE/v1/investor_shares/{share_id}

client.investorShares.revoke()

Revoke a link: from now on it opens nothing, and files already downloaded keep the watermark naming who they were shared with. A link is revoked, never erased, so the record of who was shown what stays. Revoking a revoked link changes nothing.

Parameters

NameTypeDescription
share_idPath · Requiredstring

An id that starts with investor_share_.

Response

200InvestorShareOut

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
curl -X DELETE "https://api.ledgerit.ai/v1/investor_shares/{share_id}" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Objects

The objects these operations take and return.

InvestorSharePage

NameTypeDescription
dataRequiredarray of InvestorShareOut
has_moreRequiredboolean
next_cursorRequiredstring or null

InvestorShareCreate

NameTypeDescription
expires_atstring (date-time) or null

When the link stops working. Left out, it works until it is revoked.

investor_emailstring or null

Their address, for the founder's own record. LedgerIt sends nothing to it.

investor_firmstring or null

Their firm or fund.

investor_nameRequiredstring

Who the link is for, as the founder knows them.

scopearray of string

What the link shows: board_packs, statements, or both (the default).

One of board_packs, statements

InvestorShareCreatedOut

A link just made, with the one copy of its token there will be.

NameTypeDescription
created_atRequiredstring (date-time)
created_byRequiredstring or null

An id that starts with usr_.

expires_atRequiredstring (date-time) or null

When it stops working; null for a link with no expiry.

idRequiredstring

The link's id. Its token is never shown again after it is made.

investor_emailRequiredstring or null

Their address, when one was given. Nothing is sent to it.

investor_firmRequiredstring or null

Their firm or fund, when one was given.

investor_nameRequiredstring

Who the link is for.

last_viewed_atRequiredstring (date-time) or null

When the investor last opened it; null if never.

revoked_atRequiredstring (date-time) or null

When it was revoked.

revoked_byRequiredstring or null

An id that starts with usr_.

scopeRequiredarray of string

What the link shows of each closed month: board_packs (the pack's figures and commentary), statements (the balance sheet, income statement and cash flow statement), or both. Never transactions, payroll or an open month.

One of board_packs, statements
statusRequiredstring

live while it opens the page, expired once its expiry has passed, revoked once revoked.

One of live, expired, revoked
tokenRequiredstring

The link's secret. Shown once: LedgerIt keeps only its SHA-256, so it cannot be shown again. A retry of the same request with the same Idempotency-Key within a day returns it again.

urlRequiredstring

The investor's page: send them this.

view_countRequiredinteger

How many times it was opened.

InvestorShareOut

A link that shares these books' closed months with one investor.

NameTypeDescription
created_atRequiredstring (date-time)
created_byRequiredstring or null

An id that starts with usr_.

expires_atRequiredstring (date-time) or null

When it stops working; null for a link with no expiry.

idRequiredstring

The link's id. Its token is never shown again after it is made.

investor_emailRequiredstring or null

Their address, when one was given. Nothing is sent to it.

investor_firmRequiredstring or null

Their firm or fund, when one was given.

investor_nameRequiredstring

Who the link is for.

last_viewed_atRequiredstring (date-time) or null

When the investor last opened it; null if never.

revoked_atRequiredstring (date-time) or null

When it was revoked.

revoked_byRequiredstring or null

An id that starts with usr_.

scopeRequiredarray of string

What the link shows of each closed month: board_packs (the pack's figures and commentary), statements (the balance sheet, income statement and cash flow statement), or both. Never transactions, payroll or an open month.

One of board_packs, statements
statusRequiredstring

live while it opens the page, expired once its expiry has passed, revoked once revoked.

One of live, expired, revoked
view_countRequiredinteger

How many times it was opened.