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}]}}'
- Amounts are whole cents. In entry lines, debits are positive and credits negative, and every entry must add up to zero.
- Idempotency: add an
Idempotency-Keyheader to a write. Sending it again with the same key returns the first answer (markedIdempotent-Replayed: true) instead of running twice. Keys are kept for at least 24 hours. - Rate limit: 600 requests a minute per key. Past that you get
429withRetry-After. - Errors are JSON:
{"error": "…"}in plain English.401no key or a bad one,403the key's scope doesn't allow it,404no such path,400the books refused it (the message says why),402the subscription has lapsed (reads still work),409a request with the same Idempotency-Key is still running. - Entries from the API are marked as coming from the API, with the key's name, in the history.
GET /v1/docslists exactly what your key may call.
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).
| Method | Path | Lowest key |
|---|---|---|
| GET | /v1/settings | read |
| GET | /v1/accounts | read |
| POST | /v1/accounts | write |
| GET | /v1/entries | read |
| PUT | /v1/accounts/{id} | write |
| DELETE | /v1/accounts/{id} | write |
| GET | /v1/divisions | read |
| GET | /v1/contacts | read |
| POST | /v1/contacts | write |
| PUT | /v1/contacts/{id} | write |
| GET | /v1/invoices | read |
| GET | /v1/invoices/{id} | read |
| POST | /v1/invoices | write |
| PUT | /v1/invoices/{id} | write |
| DELETE | /v1/invoices/{id} | write |
| POST | /v1/invoices/{id}/payments | write |
| DELETE | /v1/payments/{id} | write |
| GET | /v1/aging | read |
| GET | /v1/bills | read |
| GET | /v1/bills/{id} | read |
| POST | /v1/bills | write |
| PUT | /v1/bills/{id} | write |
| DELETE | /v1/bills/{id} | write |
| POST | /v1/bills/{id}/payments | write |
| DELETE | /v1/bill-payments/{id} | write |
| GET | /v1/quotes | read |
| GET | /v1/quotes/{id} | read |
| POST | /v1/quotes | write |
| PUT | /v1/quotes/{id} | write |
| DELETE | /v1/quotes/{id} | write |
| POST | /v1/quotes/{id}/status | write |
| POST | /v1/quotes/{id}/convert | write |
| GET | /v1/rules | read |
| POST | /v1/rules | write |
| POST | /v1/rules/apply | write |
| PUT | /v1/rules/{id} | write |
| DELETE | /v1/rules/{id} | write |
| POST | /v1/bank/import | write |
| POST | /v1/entries/approve | write |
| GET | /v1/accounts/{id}/reconciliations | read |
| POST | /v1/accounts/{id}/reconcile | write |
| GET | /v1/feeds | read |
| PUT | /v1/feeds/{id} | write |
| POST | /v1/feeds/sync | write |
| GET | /v1/ai/log | read |
| GET | /v1/entries/{id}/attachments | read |
| GET | /v1/attachments/{id} | read |
| GET | /v1/close | read |
| GET | /v1/monthly | read |
| GET | /v1/forecast | read |
| GET | /v1/budgets | read |
| PUT | /v1/budgets | write |
| GET | /v1/budget-vs-actual | read |
| GET | /v1/by-contact | read |
| GET | /v1/1099 | read |
| GET | /v1/sales-tax | read |
| GET | /v1/ledger-lines | read |
| GET | /v1/reports/cash-flow | read |
| GET | /v1/reports/general-ledger | read |
| GET | /v1/reports/custom | read |
| GET | /v1/reports/equity | read |
| GET | /v1/reports/ratios | read |
| GET | /v1/reports/estimated-tax | read |
| GET | /v1/reports/deposits | read |
| GET | /v1/reports/reconciliations | read |
| GET | /v1/reports/audit | read |
| GET | /v1/contacts/{id}/statement | read |
| GET | /v1/saved-reports | read |
| GET | /v1/trips | read |
| POST | /v1/trips | write |
| PUT | /v1/trips/{id} | write |
| DELETE | /v1/trips/{id} | write |
| GET | /v1/deals | read |
| POST | /v1/deals | write |
| PUT | /v1/deals/{id} | write |
| DELETE | /v1/deals/{id} | write |
| POST | /v1/deals/{id}/quote | write |
| GET | /v1/pipeline | read |
| GET | /v1/activities | read |
| POST | /v1/activities | write |
| PUT | /v1/activities/{id} | write |
| POST | /v1/activities/{id}/done | write |
| DELETE | /v1/activities/{id} | write |
| GET | /v1/contacts/{id}/timeline | read |
| GET | /v1/items | read |
| POST | /v1/items | write |
| PUT | /v1/items/{id} | write |
| GET | /v1/items/{id}/bom | read |
| GET | /v1/items/{id}/moves | read |
| POST | /v1/items/{id}/count | write |
| POST | /v1/items/{id}/build | write |
| GET | /v1/inventory-valuation | read |
| GET | /v1/orders | read |
| GET | /v1/orders/{id} | read |
| POST | /v1/orders | write |
| PUT | /v1/orders/{id} | write |
| POST | /v1/orders/{id}/complete | write |
| GET | /v1/fixed-assets | read |
| POST | /v1/fixed-assets | write |
| PUT | /v1/fixed-assets/{id} | write |
| GET | /v1/jobs | read |
| POST | /v1/jobs | write |
| PUT | /v1/jobs/{id} | write |
| POST | /v1/jobs/{id}/bill | write |
| GET | /v1/time | read |
| POST | /v1/time | write |
| PUT | /v1/time/{id} | write |
| DELETE | /v1/time/{id} | write |
| POST | /v1/entries | drafts |
| PUT | /v1/entries/{id} | write |
| DELETE | /v1/entries/{id} | write |
| POST | /v1/entries/{id}/approve | write |
| POST | /v1/undo | write |
| GET | /v1/history | read |
| GET | /v1/balances | read |
| GET | /v1/undo | read |
| POST | /v1/undo/mine | write |
| GET | /v1/accounts/{id}/uncleared | read |
| GET | /v1/tax-rates | read |
| GET | /v1/sales-tax/periods | read |
| POST | /v1/sales-tax/remit | write |
| GET | /v1/search | read |
| DELETE | /v1/contacts/{id} | write |
| DELETE | /v1/jobs/{id} | write |
| POST | /v1/payments/receive | write |
| POST | /v1/bill-payments/send | write |
| POST | /v1/invoices/{id}/apply-credit | write |
| POST | /v1/bills/{id}/apply-credit | write |
| POST | /v1/invoices/{id}/write-off | write |
| GET | /v1/contacts/{id}/credits | read |
| POST | /v1/contacts/{id}/refund | write |
| GET | /v1/schedules | read |
| POST | /v1/schedules | write |
| PUT | /v1/schedules/{id} | write |
| DELETE | /v1/schedules/{id} | write |
| GET | /v1/transfers | read |
| POST | /v1/transfers/{id}/approve | write |
| POST | /v1/transfers/{id}/reject | write |
| GET | /v1/payments | read |
| POST | /v1/invoices/{id}/pay-link | write |
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.
- Make a key in Settings → API. "read" is the safest start; "drafts" lets the assistant propose entries.
- In your assistant, add a remote MCP server (custom connector) at
https://app.tortugaaccounting.com/mcp. - Give it the header
Authorization: Bearer <your key>.
Amounts in results are cents unless labeled. The tools:
| Tool | What it does | Key |
|---|---|---|
list_accounts | The chart of accounts: id, number, name and kind. | read |
account_totals | Totals per account for a date range (from, to, optional basis: accrual or cash). Leave from empty for balances as of to. | read |
monthly_summary | Income, expenses, profit and month-end cash for recent months (to_month as YYYY-MM, up to 36 months). | read |
find_transactions | Posted transactions, newest first, filtered by words, account and dates (up to 500). | read |
open_invoices | Invoices customers still owe as of a date, with days late. | read |
open_bills | Bills still owed to vendors as of a date, with days late. | read |
cash_forecast | Cash for the next 90 days, week by week, with its assumptions. | read |
propose_entry | Proposes 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.