Vestiarion Ledger API
The Ledger API from Vestiarion, for ledger.
The Ledger API from Vestiarion, for ledger.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/vestiarion-xyz:vestiarion-xyz-ledger-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Vestiarion Ledger API
version: v1
description: Read a workspace's ledger, books, counterparties, milestones, treasury and insights, each payment's evidence and receipt and the monthly close pack, and add counterparties, invoices, milestones and payee links, with a workspace API key.
servers:
- url: https://www.vestiarion.xyz
tags:
- name: Ledger
paths:
/api/v1/ledger:
get:
operationId: list-ledger-entries
summary: List ledger entries
description: 'The audit chain, oldest first, as a resumable stream. Because the ledger is append-only and ascending by `seq`, a stored `page.nextCursor` is a watermark: a request from it never returns an entry before it. Persist the last non-null `nextCursor` only after processing every entry in the responses read, and resume from it; the last page, which had no cursor of its own, is returned again, so de-duplicate on `seq`.
`order=desc` answers the newest `limit` entries instead, newest first, for a caller that keeps no position, such as a polling trigger. It takes no `cursor`, since a watermark read the other way round would skip or repeat entries: its `page.nextCursor` is `null`, and `page.hasMore` says whether older entries exist.
`seq` is monotonic within a workspace but not gap-free; continuity is proven by the hash chain, not by `seq`.'
tags:
- Ledger
security:
- bearerAuth: []
parameters:
- name: limit
in: query
required: false
description: How many items to return. Defaults to 50; a larger value is capped at 200.
schema:
type: integer
default: 50
minimum: 1
maximum: 200
- name: cursor
in: query
required: false
description: 'The previous response''s `page.nextCursor`, passed back unchanged to continue. Opaque: never decode or construct one. A cursor this endpoint could not have issued is refused with `400`.'
schema:
type: string
- name: domain
in: query
required: false
description: Only entries in this domain.
schema:
type: string
example: system
- name: actor
in: query
required: false
description: Only entries written by this actor.
schema:
type: string
example: system
- name: order
in: query
required: false
description: '`asc`, the default, oldest first and resumable from a cursor; or `desc`, the newest entries first, with no cursor.'
schema:
type: string
example: desc
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListLedgerEntriesResponse'
example:
data:
- seq: 82
id: 4566714f-a9f0-42c8-bcd4-d89adf830806
ts: '2026-09-24T11:55:00.370366+00:00'
actor: system
domain: system
action: seed
summary: 'Seeded demo business: Northstar Studio'
detail:
accounts: 3
invoices: 6
milestones: 3
amountScale: 0.001
counterparties: 7
bodyHash: 8780d07cb3d083d359119e58fd4783f5e4b32aac14e0a8d9f7a5bb13365a4537
signature: c14f06b751d31be6566ed11676d60d2db731ab8bbc5972f79d0a0c131e9e37200303d5b3ad04993b7973b1ce7200e7214e5a9b511306fa30538f072eb0d34705
prevHash: '0000000000000000000000000000000000000000000000000000000000000000'
hash: b0ac72908868ddd5ed4722fd8a14ff4a844eee4dad382c5c85288bca73737669
signingKeyId: null
page:
nextCursor: eyJrIjo4Mn0
hasMore: true
count: 1
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: internal
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/api/v1/ledger/verify:
get:
operationId: verify-ledger
summary: Verify the ledger
description: 'Replays signatures, body hashes and hash-chain continuity for the workspace the calling key belongs to.
`valid` has three values, not two. `true` verified and `false` broken are findings about the chain; `null` means no verdict was produced, because there was no key to check authorship against. `reason` says which case it is. A key that is stored but cannot be read is a configuration problem, reported in `warnings`, not a finding about the chain.'
tags:
- Ledger
security:
- bearerAuth: []
parameters: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/VerifyLedgerResponse'
example:
data:
valid: true
checkedEntries: 99
'401':
description: unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: internal
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
components:
schemas:
ApiError:
type: object
properties:
error:
type: object
properties:
code:
type: string
enum:
- unauthorized
- forbidden
- not_found
- invalid_request
- conflict
- rate_limited
- unavailable
- internal
description: One of a closed set, so a client can branch on it without parsing the message.
message:
type: string
description: A human-readable explanation. Never carries internal detail.
required:
- code
- message
required:
- error
description: Every error the API returns has this shape.
VerifyLedgerResponse:
type: object
properties:
data:
type: object
properties:
valid:
description: '`true` verified, `false` broken, and `null` not checked, which is a third answer, not a soft failure. A workspace holding no public key has produced no evidence either way.'
type:
- boolean
- 'null'
checkedEntries:
type: number
brokenAt:
description: The `seq` of the first entry that failed. Absent unless `valid` is `false`.
type: number
reason:
description: Why the verdict is what it is, when it is not a plain `true`.
type: string
warnings:
description: Configuration problems found on the way to this verdict; not about the chain.
type: array
items:
type: string
required:
- valid
- checkedEntries
description: 'The verdict of replaying the workspace''s ledger: signatures, body hashes and hash continuity.'
required:
- data
ListLedgerEntriesResponse:
type: object
properties:
data:
type: array
items:
type: object
properties:
seq:
type: number
description: Monotonic within a workspace, but not gap-free; the hash chain proves continuity.
id:
type: string
ts:
type: string
actor:
type: string
domain:
type: string
action:
type: string
summary:
type: string
detail:
type: object
propertyNames:
type: string
additionalProperties: {}
bodyHash:
type: string
description: Present so a consumer can verify the chain itself rather than trust us.
signature:
type: string
prevHash:
type: string
hash:
type: string
signingKeyId:
description: Which key signed the entry; `null` for entries written before key identity existed. A consumer verifying for itself needs this to pick the right key.
type:
- string
- 'null'
required:
- seq
- id
- ts
- actor
- domain
- action
- summary
- detail
- bodyHash
- signature
- prevHash
- hash
- signingKeyId
description: One entry of the audit chain, which the API returns oldest first.
page:
type: object
properties:
nextCursor:
description: Pass back as `?cursor=` to continue. Null when the end is reached.
type:
- string
- 'null'
hasMore:
type: boolean
description: Whether another page follows this one.
count:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
description: How many items this response carries.
required:
- nextCursor
- hasMore
- count
description: Where this page sits in the collection.
required:
- data
- page
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A workspace API key: vxk_<prefix>_<secret>.'