API reference

Audit archive

The audit trail's sealed segments, each downloadable for a short time.

Guides: See who changed what

List the archived segments of the audit trail

GET/v1/audit_archive

client.auditArchive.list()

The archived segments of these books' audit trail, newest first — those whose bytes have landed. Each names its hash and the hash of the one before, so the chain can be checked against the files themselves.

Parameters

NameTypeDescription
limitQueryinteger

Page size, 1–200.

Default 50
cursorQuerystring or null

The next_cursor of the previous page.

Response

200AuditArchiveSegmentPage

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/audit_archive" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Objects

The objects these operations take and return.

AuditArchiveSegmentPage

NameTypeDescription
dataRequiredarray of AuditArchiveSegmentOut
has_moreRequiredboolean
next_cursorRequiredstring or null

AuditArchiveSegmentOut

NameTypeDescription
event_countRequiredinteger

How many audit rows it holds.

first_audit_idRequiredstring

The lowest audit row id it holds.

last_audit_idRequiredstring

The highest audit row id it holds.

previous_sha256Requiredstring or null

The hash of the segment before; null for the first.

sequenceRequiredinteger

The segment's place in the chain, from 1.

sha256Requiredstring

The hash of the segment's bytes.

written_atRequiredstring (date-time)

When the segment's bytes landed in the archive.