Authorization: Bearer and every path
except administrations.list carries the administration id, so read the
id from administrations.list first. Any call can pass its own
administration_id to act on another administration the token reaches.
- Bodies are wrapped the way Moneybird documents them: a contact goes
in
contact: {...}, an invoice insales_invoice: {...}, a send insales_invoice_sending: {...}. Ids are digit strings (numbers are accepted too). - Lists are paginated in a Link response header the client cannot
return, so paginated lists take
pageandper_page(up to 100; the plugin sends 100 when it is left out, since Moneybird’s own default differs per route) and return{ items, next_page }, withnext_pageset while a page comes back full.contacts.listDuplicatestakes no page size, so itsnext_pageis set while a page has any groups.listVersions+fetchByIdsis Moneybird’s synchronization API: ids and versions first, then up to 100 records by id. - Filtering goes through one string. List filters are
key:valueterms separated by commas (e.g.state:open|late,period:this_year), and a filter you pass replaces the defaults. - Sends and money.
salesInvoices.send,salesInvoices.sendReminders,estimates.sendandcontacts.paymentsMandate.requestemail customers;subscriptions.create,recurringSalesInvoices.createandsubscriptions.createAndScheduleOneOffSalesInvoicestart invoicing them;contacts.additionalCharges.createandsubscriptions.additionalCharges.createadd a charge to their next invoice;purchaseTransactionBatches.createFromSepaFileprepares bank transfers. All aredestructive, as is every delete. - Downloads (invoice and estimate PDFs, UBL, attachments, exports) answer with a short-lived redirect; the plugin follows it and returns the file, saved to Files when Corsair runs with a file store.
- Scopes. A token only reaches what its scopes allow (sales_invoices, documents, estimates, bank, time_entries, settings); each operation’s description names the scope it needs.
- Rate limits. 150 requests per 5 minutes per IP, 50 for
/reports/. Core retries a 429 three times; a 5xx is retried for reads only. - Test safely in a free sandbox administration (moneybird.com/administrations/sandboxes/new): full features, watermarked invoices.
- Not wrapped: four routes Moneybird marks deprecated (the old
register_paymentroutes andDELETE purchase_transactions/{id}/delete; use the*.payments.createoperations andpurchaseTransactions.delete), and theevents.listcursor, which only comes in a Link header.
- 298 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Moneybird API key before the first call: More: API Key
pnpm corsair setup --plugin=moneybird --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
List administrations the token can accessWhat’s next
API reference
Every
moneybird.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.