Tortuga Accountingtardus et stabilis

API and MCP

The web app is just one client of Tortuga's API. With a key, your own apps and your AI assistant can work with the same books, within limits you choose.

Keys

An owner makes keys in Settings → API. Each key belongs to one business and has one of three scopes:

read
Reads only: accounts, transactions, invoices, bills, reports.
drafts
Reads, plus proposing entries. Every entry it sends is saved as a draft that a person approves in Review.
write
Bookkeeper work: entries, invoices, bills, payments, rules, items and more.

No key can do an owner's or an accountant's job (team, billing, keys, closing months), spend the business's AI account, connect banks, or export. The key is shown once; Tortuga stores only a hash. If the person who made a key leaves the team, the key stops working.

REST

Send the key as a bearer token to https://app.tortugaaccounting.com/v1/, followed by the same paths the app uses.

curl -H "Authorization: Bearer tak_…" "https://app.tortugaaccounting.com/v1/balances?to=2026-12-31"

curl -X POST https://app.tortugaaccounting.com/v1/entries \
  -H "Authorization: Bearer tak_…" -H "Idempotency-Key: order-1042" \
  -H "content-type: application/json" \
  -d '{"entry":{"date":"2026-12-01","memo":"Order 1042","lines":[{"account_id":1,"cents":4500},{"account_id":29,"cents":-4500}]}}'

Endpoints

"Lowest key" is the least a key needs: a write key can do everything a drafts key can, and a drafts key everything a read key can. {id} is a number. Query parameters follow the app's (for example from, to and as_of as YYYY-MM-DD).

MethodPathLowest key
GET/v1/settingsread
GET/v1/accountsread
POST/v1/accountswrite
GET/v1/entriesread
PUT/v1/accounts/{id}write
DELETE/v1/accounts/{id}write
GET/v1/divisionsread
GET/v1/contactsread
POST/v1/contactswrite
PUT/v1/contacts/{id}write
GET/v1/invoicesread
GET/v1/invoices/{id}read
POST/v1/invoiceswrite
PUT/v1/invoices/{id}write
DELETE/v1/invoices/{id}write
POST/v1/invoices/{id}/paymentswrite
DELETE/v1/payments/{id}write
GET/v1/agingread
GET/v1/billsread
GET/v1/bills/{id}read
POST/v1/billswrite
PUT/v1/bills/{id}write
DELETE/v1/bills/{id}write
POST/v1/bills/{id}/paymentswrite
DELETE/v1/bill-payments/{id}write
GET/v1/quotesread
GET/v1/quotes/{id}read
POST/v1/quoteswrite
PUT/v1/quotes/{id}write
DELETE/v1/quotes/{id}write
POST/v1/quotes/{id}/statuswrite
POST/v1/quotes/{id}/convertwrite
GET/v1/rulesread
POST/v1/ruleswrite
POST/v1/rules/applywrite
PUT/v1/rules/{id}write
DELETE/v1/rules/{id}write
POST/v1/bank/importwrite
POST/v1/entries/approvewrite
GET/v1/accounts/{id}/reconciliationsread
POST/v1/accounts/{id}/reconcilewrite
GET/v1/feedsread
PUT/v1/feeds/{id}write
POST/v1/feeds/syncwrite
GET/v1/ai/logread
GET/v1/entries/{id}/attachmentsread
GET/v1/attachments/{id}read
GET/v1/closeread
GET/v1/monthlyread
GET/v1/forecastread
GET/v1/budgetsread
PUT/v1/budgetswrite
GET/v1/budget-vs-actualread
GET/v1/by-contactread
GET/v1/1099read
GET/v1/sales-taxread
GET/v1/ledger-linesread
GET/v1/reports/cash-flowread
GET/v1/reports/general-ledgerread
GET/v1/reports/customread
GET/v1/reports/equityread
GET/v1/reports/ratiosread
GET/v1/reports/estimated-taxread
GET/v1/reports/depositsread
GET/v1/reports/reconciliationsread
GET/v1/reports/auditread
GET/v1/contacts/{id}/statementread
GET/v1/saved-reportsread
GET/v1/tripsread
POST/v1/tripswrite
PUT/v1/trips/{id}write
DELETE/v1/trips/{id}write
GET/v1/dealsread
POST/v1/dealswrite
PUT/v1/deals/{id}write
DELETE/v1/deals/{id}write
POST/v1/deals/{id}/quotewrite
GET/v1/pipelineread
GET/v1/activitiesread
POST/v1/activitieswrite
PUT/v1/activities/{id}write
POST/v1/activities/{id}/donewrite
DELETE/v1/activities/{id}write
GET/v1/contacts/{id}/timelineread
GET/v1/itemsread
POST/v1/itemswrite
PUT/v1/items/{id}write
GET/v1/items/{id}/bomread
GET/v1/items/{id}/movesread
POST/v1/items/{id}/countwrite
POST/v1/items/{id}/buildwrite
GET/v1/inventory-valuationread
GET/v1/ordersread
GET/v1/orders/{id}read
POST/v1/orderswrite
PUT/v1/orders/{id}write
POST/v1/orders/{id}/completewrite
GET/v1/fixed-assetsread
POST/v1/fixed-assetswrite
PUT/v1/fixed-assets/{id}write
GET/v1/jobsread
POST/v1/jobswrite
PUT/v1/jobs/{id}write
POST/v1/jobs/{id}/billwrite
GET/v1/timeread
POST/v1/timewrite
PUT/v1/time/{id}write
DELETE/v1/time/{id}write
POST/v1/entriesdrafts
PUT/v1/entries/{id}write
DELETE/v1/entries/{id}write
POST/v1/entries/{id}/approvewrite
POST/v1/undowrite
GET/v1/historyread
GET/v1/balancesread
GET/v1/undoread
POST/v1/undo/minewrite
GET/v1/accounts/{id}/unclearedread
GET/v1/tax-ratesread
GET/v1/sales-tax/periodsread
POST/v1/sales-tax/remitwrite
GET/v1/searchread
DELETE/v1/contacts/{id}write
DELETE/v1/jobs/{id}write
POST/v1/payments/receivewrite
POST/v1/bill-payments/sendwrite
POST/v1/invoices/{id}/apply-creditwrite
POST/v1/bills/{id}/apply-creditwrite
POST/v1/invoices/{id}/write-offwrite
GET/v1/contacts/{id}/creditsread
POST/v1/contacts/{id}/refundwrite
GET/v1/schedulesread
POST/v1/scheduleswrite
PUT/v1/schedules/{id}write
DELETE/v1/schedules/{id}write
GET/v1/transfersread
POST/v1/transfers/{id}/approvewrite
POST/v1/transfers/{id}/rejectwrite
GET/v1/paymentsread
POST/v1/invoices/{id}/pay-linkwrite

Webhooks

An owner adds webhook addresses in Settings → API (public https addresses only). Tortuga POSTs JSON like this when something happens:

{"event": "invoice.paid", "business_id": "…", "at": "2026-12-05T14:03:00.000Z", "data": { … }}

Events: entry.created, entry.approved, invoice.saved, invoice.paid, bill.saved, bill.paid, period.closed and bank.imported. The event name is also in the X-Tortuga-Event header.

Each request carries X-Tortuga-Signature: sha256=<hex>, the HMAC-SHA256 of the raw body using your webhook's secret (shown once when you add it). Compute it yourself and compare before trusting the body.

// Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';
const expected = 'sha256=' + createHmac('sha256', secret).update(rawBody).digest('hex');
const ok = expected.length === header.length && timingSafeEqual(Buffer.from(expected), Buffer.from(header));

MCP for AI assistants

Claude, ChatGPT and other assistants that support remote MCP servers can connect to a business's books.

  1. Make a key in Settings → API. "read" is the safest start; "drafts" lets the assistant propose entries.
  2. In your assistant, add a remote MCP server (custom connector) at https://app.tortugaaccounting.com/mcp.
  3. Give it the header Authorization: Bearer <your key>.

Amounts in results are cents unless labeled. The tools:

ToolWhat it doesKey
list_accountsThe chart of accounts: id, number, name and kind.read
account_totalsTotals per account for a date range (from, to, optional basis: accrual or cash). Leave from empty for balances as of to.read
monthly_summaryIncome, expenses, profit and month-end cash for recent months (to_month as YYYY-MM, up to 36 months).read
find_transactionsPosted transactions, newest first, filtered by words, account and dates (up to 500).read
open_invoicesInvoices customers still owe as of a date, with days late.read
open_billsBills still owed to vendors as of a date, with days late.read
cash_forecastCash for the next 90 days, week by week, with its assumptions.read
propose_entryProposes a balanced journal entry (amounts in dollars, with a reason and a confidence). It's saved as a draft in Review; nothing posts until a person approves it.drafts

The MCP server is stateless and speaks the Streamable HTTP transport with JSON responses.