For Developers
The headless ledger for New Zealand and Australia
Double-entry accounting as an API, with GST built in, that your customers' accountants can work in directly.
Australia is in early access: the ledger, AU GST tax codes, an AU chart of accounts, AUD and a 1 July financial year work today; AU bank feeds and BAS are coming.
Learn more about Prosaic's accounting software, or sign up free, at prosaic.works

Three ways to build on Prosaic
Prosaic is the accounting product New Zealand accountants and bookkeepers use for compliance work, with its general ledger exposed as an API. Build your product on the ledger, automate inside Prosaic, or connect your product to the firms already using it.
Embed a ledger
Your platform workspace owns one entity per end customer, the way a Stripe Connect platform has one account per seller. Post journals in from your product and read the trial balance, profit and loss and balance sheet back out.
- One entity per customer, all in your own workspace
- Give a customer's accountant access to their entity
- An entity takes its workspace's country, so serve NZ and AU from one workspace each
Automate with extensions
Low-code automation inside Prosaic. Extensions are small TypeScript programs that Prosaic hosts and runs in a sandbox, with only the scopes their manifest declares.
- Run on an accounting event, a cron schedule or an action link in the app
- Read transactions, journals and reports, send email and call AI
- Scaffold, validate and deploy with the prosaic CLI
Connect to accountants
Register an OAuth app so New Zealand accounting firms can connect your product to their Prosaic workspaces. Users sign in and consent through the authorisation-code flow with PKCE, and your app calls the API on their behalf.
- Registering apps is in early access: ask us at hello@prosaic.works
- The Node SDK handles PKCE, the callback and token refresh
Underneath all three is the same general ledger:
Everything else — payments, job management, point of sale, invoicing in your own product — stays where it is. Prosaic keeps the books those activities produce, in a ledger an accountant can open, review and report from.
API
A headless ledger designed for integration
A REST API for entities, charts of accounts, journals, bank transactions, reports, GST returns, contacts, invoices and fixed assets. Authenticate with an API key or OAuth, and call it over HTTP or through the typed Node.js SDK.
Create entities and clients
Create chart of accounts templates, or edit an entity's own accounts
Read and reconcile bank transactions — individually or in bulk
Import bank transactions from your own systems into a CSV bank account
Create, list and void journals, as drafts or posted straight to the ledger
Upload files and attach them to journals
Read the general ledger by account or by transaction
Read the trial balance, profit and loss, balance sheet and GST returns
Everything flows through journals
Structured data from your systems goes into the ledger as balanced journals: each line has an account code, a tax rate and a debit or credit. A journal posts straight away unless you set autoPost: false to keep it as a draft.
HTTP
POST /api/public/v1/entities/{entityId}/journals
Host: app.prosaic.works
Authorization: Bearer $PROSAIC_API_KEY
Content-Type: application/json
{
"date": "2026-04-01",
"narration": "Daily POS takings",
"taxMode": "TAX_INCLUSIVE",
"lines": [
{
"entityAccountCode": "BANK_ACCOUNT_CODE",
"taxRateId": "NO_GST_TAX_RATE_ID",
"debit": "1150.00"
},
{
"entityAccountCode": "SALES_ACCOUNT_CODE",
"taxRateId": "GST_15_TAX_RATE_ID",
"credit": "1150.00"
}
]
}Node SDK
import Prosaic from '@prosaic/sdk';
const prosaic = new Prosaic(apiKey);
// Account codes: prosaic.entityAccounts.list(entityId)
// Tax rate IDs: taxRates on prosaic.entities.list()
const journal = await prosaic.journals.create(entityId, {
date: '2026-04-01',
narration: 'Daily POS takings',
taxMode: 'TAX_INCLUSIVE',
lines: [
{
entityAccountCode: bankCode,
taxRateId: noGstId,
debit: '1150.00',
},
{
entityAccountCode: salesCode,
taxRateId: gst15Id,
credit: '1150.00',
},
],
});
console.log(journal.status); // 'posted'With taxMode: TAX_INCLUSIVE, Prosaic splits the GST out when the journal posts: here, 1,000.00 to sales and 150.00 to GST. It's easy to automate, easy to audit, and easy for an accountant to check.
Extensions
Automate inside Prosaic, next to the books
Extensions are small TypeScript programs that Prosaic hosts and runs in a sandbox, inside a workspace. They run when something happens in the books, on a schedule, or when someone clicks a button, and they can only do what their manifest declares.
Write an extension when
The work belongs inside Prosaic: reacting to what happens in the books, running on a schedule, or adding a button accountants click. Prosaic hosts and runs it, so there is no server of yours involved.
Use the API when
Your product is the source of the data: it posts journals, imports bank transactions or reads reports back out. Extensions read the books, but they cannot post journals.
Create one
With the prosaic CLI. Run the later commands from the project folder, or pass --dir.
- 1
Install the CLI and sign in
The prosaic-cli package installs the prosaic command. Sign-in opens a browser.
npm install -g prosaic-cli && prosaic auth login - 2
Scaffold a project
Writes the manifest, src/index.ts, package.json and tsconfig.json. The trigger can also be cron, action-link or manual.
prosaic extension init gst-rejection-alert --trigger event - 3
Declare it, then write it
The manifest names the triggers it runs on and the scopes it may use. The entry point is plain TypeScript with a prosaic global.
- 4
Validate
The same manifest checks deploy runs, plus a trial build. No network, no sign-in.
prosaic extension validate - 5
Deploy and install
Bundles the code, creates or updates the extension, and installs it on an entity. Needs the workspace admin role.
prosaic extension deploy --entity-id <entity-id> - 6
Iterate
The dev command redeploys on every save and prints each run as it happens.
prosaic extension dev --entity-id <entity-id>
Or ask your coding agent. Connect the developer MCP server and describe what you want. It calls scaffold_extension and validate_extension_manifest, writes the code, and leaves the deploy to you. Build with an LLM
Use one
In the Prosaic app, for the workspace it was deployed to.
Install it per entity
An extension belongs to the workspace it was deployed to and runs only for the entities it is installed on, one client at a time. Installing records the scopes and hosts it was granted there.
Connect outside services
If it declares a connection, a workspace admin enters the API key, or authorises OAuth, under Settings → Extensions. Prosaic attaches the credential to each request; the code never sees it.
Events
Runs when something happens on the entity: a journal posted, a transaction reconciled, a file uploaded, a GST return filed or rejected.
Schedules
Runs on a five-field cron schedule in UTC, once for each entity it is installed on.
Buttons
Adds its actions to the Transactions actions menu, for one row or a selection, and to the Profit and loss report. Anyone who can see the entity can click them.
Runs and logs
A clicked action says when it has finished or failed. Settings → Extensions shows installations and recent runs, and prosaic extension logs prints every log line.
Pause and approve
Turn an installation off and on in Settings → Extensions. A new version that asks for more scopes or hosts pauses existing installations until someone approves it.
Deploying and entering credentials need the workspace admin or owner role. Advisors can turn installations on and off.
A complete extension
Two files. Installed on each client's entity, this emails the firm whenever IRD rejects a filed GST return, with IRD's code and message. The rejection details arrive in prosaic.context.input, so the only other call is to read the entity's name.
prosaic.extension.toml
name = "gst-rejection-alert"
version = "0.1.0"
description = "Email the firm when IRD rejects a return"
# What the code may call.
[scopes]
required = ["read:entities", "send:email"]
# When it runs. Add [targets.cron] or
# [[targets.actions]] to run it other ways too.
[[targets.events]]
type = "gst.return.rejected"src/index.ts
// Runs once for each rejected GST return
const { input, entityId } = prosaic.context;
const entity = await prosaic.entities.get(entityId);
await prosaic.email.send({
to: 'gst@yourfirm.example',
subject: `IRD rejected ${entity.name}'s GST return`,
text: [
`IRD said (${input.rejectionCode}):`,
input.rejectionMessage,
].join('\n\n'),
// A reply goes nowhere, so this cannot loop
emailMode: 'outbound-only',
});
prosaic.log.info('Rejection sent', {
gstReturnId: input.gstReturnId,
});Two scopes, one event. Calling anything the manifest did not declare, such as prosaic.journals.list, throws a permission error. There is no global fetch: outbound HTTP goes only to hosts a connection declares.
Why Prosaic
Why developers use Prosaic
A real general ledger
Double-entry journals, a chart of accounts, a trial balance, profit and loss, and a balance sheet, without building any of it. Everything passes through balanced journals, so there are few concepts to learn and the audit trail is clear.
A job management system can post a revenue journal; a POS can post daily takings; a marketplace can post each seller's payouts; an AI agent can prepare month-end adjustments for an accountant to approve.
GST built in
Every journal line carries a tax rate. Send amounts tax inclusive or exclusive and Prosaic works out the GST when the journal posts. NZ GST returns come from the same books.
Australian entities get AU GST tax codes, an AU chart of accounts, AUD and a 1 July financial year. AU bank feeds and BAS are coming.
Accountants work in it directly
Prosaic is the product accountants and bookkeepers use for real compliance work. The books your product writes are the books they open, review and adjust — no export, no sync.
With an embedded ledger, you give a customer's accountant access to that customer's entity.
Ready for AI agents
Agents can read and write the books over MCP, with the user's OAuth consent. An agent can save journals as drafts (autoPost: false), so an accountant reviews and posts them before they reach the ledger.
The docs are agent-readable too: llms.txt, every page as Markdown, and a developer MCP server.
Use Cases
Software for NZ and Australian businesses that needs a real ledger
Prosaic fits when your product needs journals, a chart of accounts and accountant-ready reports, and building a general ledger is not the business you are in.
Vertical SaaS and point of sale
Give every customer real books. Post daily takings, jobs or sales as journals, with GST coded on every line.
Marketplaces and fintech
Keep a ledger per seller or account holder, and hand their accountant a trial balance instead of a CSV export.
Apps for accounting firms
Connect your product to NZ firms' Prosaic workspaces with an OAuth app, or offer their clients a simple portal while the firm works in Prosaic.
AI bookkeeping agents
Let an agent read the books, code bank transactions and draft journals over MCP. Draft journals wait for an accountant to review and post them.
Not a fit today
- Businesses outside New Zealand and Australia
- Multi-currency and foreign exchange
- AU BAS preparation and ATO lodgement (coming)
- Payroll (post payroll journals from your payroll system)
- Outbound webhooks (poll the API for changes)
Quick Start
How to get started
From an API key to a trial balance in four steps. The steps use the Node SDK; every call is also a plain HTTP request. The SDK isn't on npm yet, so install it from the prosaic-node repository.
Get an API key
Sign up at app.prosaic.works/signup. As a workspace owner or admin, open Settings → Users and choose Manage API keys from a user's actions menu. Send the key as a Bearer token.
new Prosaic(apiKey)Create an entity
One entity per customer. Pick a chart of accounts template with charts.list() and pass its ID as accountTemplateId.
prosaic.entities.create({ … })Post a balanced journal
Debits must equal credits. Each line needs an account code from the entity's chart and a tax rate ID from the entity.
prosaic.journals.create(entityId, { … })Read the reports
Read the trial balance, then the profit and loss and balance sheet, built from the journals you posted.
prosaic.reports.trialBalance(entityId)Build with AI
Docs and tools your coding agent can read
Point Claude Code, Codex, Cursor, VS Code, ChatGPT or Claude at Prosaic. The docs, the API and the extension tooling are all published in forms an LLM can use directly.
llms.txt
An index of every doc for any LLM. /llms-full.txt has all of them in one file, and every doc page is also served as Markdown: add .md to its URL.
Developer MCP server
Search these docs, look up API operations with their SDK calls, and scaffold or validate extensions. No sign-in needed.
https://developer.prosaic.works/mcpCursor and VS Code open to install it. The others copy a command, or the URL to paste.
Data MCP server
A workspace's own books over OAuth: reports, journals, transactions, GST returns and more, with the user's consent.
https://mcp.prosaic.works/mcpCursor and VS Code open to install it. The others copy a command, or the URL to paste.
SDK skill
@prosaic/sdk ships a Claude Code skill, skills/prosaic-sdk, covering API keys, OAuth, pagination and handling money and dates.
Manifest JSON Schema
Make this the first line of prosaic.extension.toml and TOML editors such as Even Better TOML validate it as you type. Manifests scaffolded by the developer MCP start with it.
#:schema https://developer.prosaic.works/schemas/extension-manifest.jsonTalk to us
We're building this in the open. If you're building software for New Zealand or Australian businesses, accountants or financial services and need a ledger underneath it, we'd love to hear from you.
hello@prosaic.works