API reference
Garden
Money and bookkeeping: books, invoices, bills, payments, bank accounts and transactions, receipts and financial statements.
- Operations
- 101
- Base path
https://os.one.ml/api/v1/garden- Scopes
garden:bank:linkgarden:bank:readgarden:bank:summarygarden:managegarden:readgarden:wallets:linkgarden:wallets:readgarden:write- API keys
- 45 tested with an API key
- SDK
genesis.call('garden_getAccount', …)· helpers undergenesis.garden- MCP
- 60 tools; the other 41 through
genesis_call
Operations
| Operation | Endpoint | API key |
|---|---|---|
| Get an account with its posted balance | GET/accounts/{account} | Tested with an API key |
| Rename or archive an account | PATCH/accounts/{account} | Tested with an API key |
| Get a bank connection | GET/bank/connections/{connection} | — |
| Disconnect a bank now | DELETE/bank/connections/{connection} | — |
| Read new transactions from the bank now | POST/bank/connections/{connection}/sync | — |
| Get a bank feed | GET/bank/feeds/{feed} | — |
| Disconnect a bank feed now (keep_confirmed or all) | DELETE/bank/feeds/{feed} | — |
| Import a statement (CSV, OFX or rows) into a feed | POST/bank/feeds/{feed}/imports | — |
| Put a bank account in a space; mark it mixed | POST/bank/feeds/{feed}/space | — |
| Get a flag | GET/bank/flags/{id} | — |
| Dismiss or resolve a flag (If-Match) | PATCH/bank/flags/{id} | — |
| Get a receipt link | GET/bank/links/{id} | — |
| Confirm or undo a receipt link (If-Match) | PATCH/bank/links/{id} | — |
| Attach a receipt that is on file to a purchase (id is the receipt's id, not the transaction's) | POST/bank/receipts/{id}/links | — |
| Delete an empty Business space | DELETE/bank/spaces/{space} | — |
| Rename a Business space (If-Match) | PATCH/bank/spaces/{space} | — |
| Get a bank transaction | GET/bank/transactions/{id} | — |
| Correct a transaction's category (If-Match) | PATCH/bank/transactions/{id} | — |
| Put a wallet in a space | POST/bank/wallets/{wallet}/space | — |
| Get a bank account with its live balance | GET/banking/accounts/{account} | — |
| List the account's cards | GET/banking/accounts/{account}/cards | — |
| Issue a virtual debit card with a spend limit | POST/banking/accounts/{account}/cards | — |
| Close a bank account | POST/banking/accounts/{account}/close | — |
| Move a pending account on once its onboarding is done | POST/banking/accounts/{account}/continue | — |
| Sandbox: an inbound ACH transfer into the account | POST/banking/accounts/{account}/simulate/inbound-transfer | — |
| Sandbox: submit the account holder's onboarding form | POST/banking/accounts/{account}/simulate/onboarding | — |
| Posted and pending transactions, newest first | GET/banking/accounts/{account}/transactions | — |
| Get a card | GET/banking/cards/{card} | — |
| Close a card (final) | POST/banking/cards/{card}/close | — |
| Show the card number in Increase's own page | POST/banking/cards/{card}/details-iframe | — |
| Freeze a card | POST/banking/cards/{card}/freeze | — |
| Sandbox: a purchase on the card | POST/banking/cards/{card}/simulate/purchase | — |
| Unfreeze a card | POST/banking/cards/{card}/unfreeze | — |
| Open a business bank account (Increase) for a company you own, making its books if it has none | POST/banking/companies/{org}/accounts | — |
| List your organization's books | GET/books | Tested with an API key |
| Open books in one currency | POST/books | Tested with an API key |
| Get one set of books | GET/books/{books} | Tested with an API key |
| Archive books | DELETE/books/{books} | Tested with an API key |
| Rename books or link them to an Auto org | PATCH/books/{books} | Tested with an API key |
| List the chart of accounts with posted balances | GET/books/{books}/accounts | Tested with an API key |
| Add an account to the chart | POST/books/{books}/accounts | Tested with an API key |
| List the books' bank connections | GET/books/{books}/bank/connections | — |
| Hand Garden the enrollment Teller Connect returned | POST/books/{books}/bank/connections/teller | — |
| Open a single-use Teller Connect session for these books | POST/books/{books}/bank/connections/teller/sessions | — |
| List the books' bank feeds | GET/books/{books}/bank/feeds | — |
| Make a bank feed for statement upload | POST/books/{books}/bank/feeds | — |
| List oddity flags (duplicates, jumps, new vendors) | GET/books/{books}/bank/flags | — |
| A month's spending against the month before, by category and merchant, with unusual charges | GET/books/{books}/bank/insights | — |
| Match the receipts already on file to purchases again (finds no new receipt; add one first) | POST/books/{books}/bank/match | — |
| Purchases still missing a receipt, with the total and the dates counted (Money's Receipts list) | GET/books/{books}/bank/missing-receipts | — |
| List the receipts Garden holds (each with its id, vendor, total and date) | GET/books/{books}/bank/receipts | — |
| Put a receipt on file (vendor, total, date) so it can be matched to a purchase | POST/books/{books}/bank/receipts | — |
| Recurring charges (subscriptions and bills) with monthly totals | GET/books/{books}/bank/recurring | — |
| The money spaces (Personal and each Business) with their accounts and this month's totals | GET/books/{books}/bank/spaces | — |
| Make a Business space (a farm, a practice, a side business) | POST/books/{books}/bank/spaces | — |
| The month's money in and out, by category and vendor | GET/books/{books}/bank/summary | — |
| List bank transactions (filter by feed, category, status, dates) | GET/books/{books}/bank/transactions | — |
| Confirm transactions into the books | POST/books/{books}/bank/transactions/confirm | — |
| Tag up to 200 transactions with a space (a mixed account), or clear the tag | POST/books/{books}/bank/transactions/space | — |
| List your bank accounts in these books | GET/books/{books}/banking/accounts | — |
| Open a bank account (Increase) for the person or a company they own | POST/books/{books}/banking/accounts | — |
| List customers and vendors | GET/books/{books}/counterparties | Tested with an API key |
| Add a customer or vendor | POST/books/{books}/counterparties | Tested with an API key |
| Read the books' audit trail, oldest or newest first | GET/books/{books}/events | Tested with an API key |
| Recompute the books' hash-chained audit trail | GET/books/{books}/events/verify | Tested with an API key |
| List invoices, newest first | GET/books/{books}/invoices | Tested with an API key |
| Draft an invoice to a customer | POST/books/{books}/invoices | Tested with an API key |
| List journal entries, newest first | GET/books/{books}/journal-entries | Tested with an API key |
| Record a balanced journal entry | POST/books/{books}/journal-entries | Tested with an API key |
| List payments, newest first | GET/books/{books}/payments | Tested with an API key |
| Pay a vendor | POST/books/{books}/payments | Tested with an API key |
| List payouts, newest first | GET/books/{books}/payouts | Tested with an API key |
| Pay money out of the books | POST/books/{books}/payouts | Tested with an API key |
| The one financial picture for a person or a Team | GET/books/{books}/picture | — |
| Unpaid invoices by how late they are | GET/books/{books}/reports/ar-aging | Tested with an API key |
| Balance sheet as of a date | GET/books/{books}/reports/balance-sheet | Tested with an API key |
| Profit and loss between two dates | GET/books/{books}/reports/income-statement | Tested with an API key |
| Trial balance as of a date | GET/books/{books}/reports/trial-balance | Tested with an API key |
| List the books' wallets | GET/books/{books}/wallets | — |
| Add a wallet (a public address; never a key) | POST/books/{books}/wallets | — |
| Get a customer or vendor | GET/counterparties/{counterparty} | Tested with an API key |
| Update or archive a customer or vendor | PATCH/counterparties/{counterparty} | Tested with an API key |
| Get an invoice with the payments received | GET/invoices/{invoice} | Tested with an API key |
| Change a draft invoice | PATCH/invoices/{invoice} | Tested with an API key |
| Issue a draft invoice | POST/invoices/{invoice}/finalize | Tested with an API key |
| Record money received against an invoice | POST/invoices/{invoice}/payments | Tested with an API key |
| Write off an unpaid invoice as uncollectible | POST/invoices/{invoice}/uncollectible | Tested with an API key |
| Void a draft, or an open invoice with no payments | POST/invoices/{invoice}/void | Tested with an API key |
| Get a journal entry with its lines | GET/journal-entries/{entry} | Tested with an API key |
| Discard a draft journal entry | DELETE/journal-entries/{entry} | Tested with an API key |
| Change a draft journal entry | PATCH/journal-entries/{entry} | Tested with an API key |
| Post a draft journal entry | POST/journal-entries/{entry}/post | Tested with an API key |
| Reverse a posted manual journal entry | POST/journal-entries/{entry}/reverse | Tested with an API key |
| Get a payment | GET/payments/{payment} | Tested with an API key |
| Ask Auto again, as you, for a payment waiting for authority | POST/payments/{payment}/authorize | Tested with an API key |
| Cancel a payment waiting for authority | POST/payments/{payment}/cancel | Tested with an API key |
| Get a payout | GET/payouts/{payout} | Tested with an API key |
| Ask Auto again, as you, for a payout waiting for authority | POST/payouts/{payout}/authorize | Tested with an API key |
| Cancel a payout waiting for authority | POST/payouts/{payout}/cancel | Tested with an API key |
| Remove a wallet now | DELETE/wallets/{wallet} | — |
| Show the identity Garden sees for your credential | GET/whoami | Tested with an API key |
Accounts
Get an account with its posted balance
GET/v1/garden/accounts/{account}
Scope garden:read.
Parameters
accountpath · stringrequired
Responses
- 200The account
Response fields
idstringrequiredbooks_idstringrequiredcodestringrequirednamestringrequiredtype"asset" | "liability" | "equity" | "revenue" | "expense"requiredsubtypestringrequirednormal_balance"debit" | "credit"requiredstatus"active" | "archived"requiredbalanceintegerPosted balance in minor units, in the account's normal direction
versionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/accounts/$ACCOUNT" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getAccount', {
account: '<account>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getAccount",
"arguments": {
"account": "<account>"
}
}
}Rename or archive an account
PATCH/v1/garden/accounts/{account}
Scope garden:write. Needs If-Match. Archiving needs a zero balance (409 nonzero_balance otherwise).
Parameters
accountpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
status"active" | "archived"
Responses
- 200Updated account
Response fields
idstringrequiredbooks_idstringrequiredcodestringrequirednamestringrequiredtype"asset" | "liability" | "equity" | "revenue" | "expense"requiredsubtypestringrequirednormal_balance"debit" | "credit"requiredstatus"active" | "archived"requiredbalanceintegerPosted balance in minor units, in the account's normal direction
versionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/accounts/$ACCOUNT" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateAccount', {
account: '<account>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_updateAccount",
"arguments": {
"account": "<account>",
"body": {}
}
}
}List the chart of accounts with posted balances
GET/v1/garden/books/{books}/accounts
Scope garden:read. Ordered by code. Archived accounts are hidden unless include_archived=true.
Parameters
bookspath · stringrequiredinclude_archivedquery · boolean
Responses
- 200Accounts
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].books_idstringrequireddata[].[].codestringrequireddata[].[].namestringrequireddata[].[].type"asset" | "liability" | "equity" | "revenue" | "expense"requireddata[].[].subtypestringrequireddata[].[].normal_balance"debit" | "credit"requireddata[].[].status"active" | "archived"requireddata[].[].balanceintegerPosted balance in minor units, in the account's normal direction
data[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/accounts" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listAccounts', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listAccounts",
"arguments": {
"books": "<books>"
}
}
}Add an account to the chart
POST/v1/garden/books/{books}/accounts
Scope garden:write. subtype must fit the type and defaults to other.
Parameters
bookspath · stringrequired
Request body application/json
codestringrequiredpattern
^[A-Za-z0-9.-]{1,20}$namestringrequiredmin length 1 · max length 200
type"asset" | "liability" | "equity" | "revenue" | "expense"requiredsubtype"bank" | "cash" | "receivable" | "payable" | "tax" | "credit_card" | "owner" | "distributions" | "retained" | "sales" | "services" | "operating" | "contractors" | "bad_debt" | "fees" | "other"Must fit the type (default other). asset: bank, cash, receivable, other; liability: payable, tax, credit_card, other; equity: owner, distributions, retained, other; revenue: sales, services, other; expense: operating, contractors, bad_debt, fees, other.
Responses
- 201Account created
Response fields
idstringrequiredbooks_idstringrequiredcodestringrequirednamestringrequiredtype"asset" | "liability" | "equity" | "revenue" | "expense"requiredsubtypestringrequirednormal_balance"debit" | "credit"requiredstatus"active" | "archived"requiredbalanceintegerPosted balance in minor units, in the account's normal direction
versionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/accounts" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "string",
"name": "string",
"type": "asset"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createAccount', {
books: '<books>',
body: {
code: 'string',
name: 'string',
type: 'asset',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_createAccount",
"arguments": {
"books": "<books>",
"body": {
"code": "string",
"name": "string",
"type": "asset"
}
}
}
}Bank
Get a bank connection
GET/v1/garden/bank/connections/{connection}
Scope garden:bank:summary.
Parameters
connectionpath · stringrequired
Responses
- 200The connection
Response fields
object"bank_connection"requiredidstringrequiredbooks_idstringrequiredprovider"teller"requiredenvironment"sandbox" | "development" | "production"requiredinstitution_namestring | nullstatus"active" | "needs_reconnect" | "disconnected"requiredaccountsintegerrequiredconsentobjectlast_synced_atstring | null (date-time)disconnected_atstring | null (date-time)versionintegercreated_atstring (date-time)updated_atstring (date-time)
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/bank/connections/$CONNECTION" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankConnection', {
connection: '<connection>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBankConnection",
"arguments": {
"connection": "<connection>"
}
}
}Disconnect a bank now
DELETE/v1/garden/bank/connections/{connection}
Scope garden:bank:link. Immediate, no approval: Teller's DELETE runs for every account and the sealed token is wiped whatever Teller answers. mode=keep_confirmed (default) keeps rows confirmed as books; all deletes everything.
Parameters
connectionpath · stringrequiredmodequery · "keep_confirmed" | "all"
Responses
- 200What was removed
Response fields
connectionobjectrequiredconnection.object"bank_connection"requiredconnection.idstringrequiredconnection.books_idstringrequiredconnection.provider"teller"requiredconnection.environment"sandbox" | "development" | "production"requiredconnection.institution_namestring | nullconnection.status"active" | "needs_reconnect" | "disconnected"requiredconnection.accountsintegerrequiredconnection.consentobjectconnection.last_synced_atstring | null (date-time)connection.disconnected_atstring | null (date-time)connection.versionintegerconnection.created_atstring (date-time)connection.updated_atstring (date-time)teller_deletedbooleanrequiredmode"keep_confirmed" | "all"requireddeletedobjectrequireddeleted.transactionsintegerdeleted.flagsintegerdeleted.importsintegerkept_transactionsintegerrequired
- 404Not found in your organization
- 422Invalid body or query; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/garden/bank/connections/$CONNECTION" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_disconnectBankConnection', {
connection: '<connection>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_disconnectBankConnection",
"arguments": {
"connection": "<connection>"
}
}
}Read new transactions from the bank now
POST/v1/garden/bank/connections/{connection}/sync
Scope garden:bank:link. A connection the bank ended answers with status needs_reconnect.
Parameters
connectionpath · stringrequired
Responses
- 200Counts
Response fields
accountsintegerrequiredseenintegerrequiredaddedintegerrequiredupdatedintegerrequiredstatus"active" | "needs_reconnect"required
- 404Not found in your organization
- 409A spent or expired session, a connection that is not active, archived books, or too many wallets
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/bank/connections/$CONNECTION/sync" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_syncBankConnection', {
connection: '<connection>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_syncBankConnection",
"arguments": {
"connection": "<connection>"
}
}
}Get a bank feed
GET/v1/garden/bank/feeds/{feed}
Scope garden:bank:read.
Parameters
feedpath · stringrequired
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/bank/feeds/$FEED" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankFeed', {
feed: '<feed>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBankFeed",
"arguments": {
"feed": "<feed>"
}
}
}Disconnect a bank feed now (keep_confirmed or all)
DELETE/v1/garden/bank/feeds/{feed}
Scope garden:bank:link.
Parameters
feedpath · stringrequiredmodequery · string
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/garden/bank/feeds/$FEED" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_disconnectBankFeed', {
feed: '<feed>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_disconnectBankFeed",
"arguments": {
"feed": "<feed>"
}
}
}
}Import a statement (CSV, OFX or rows) into a feed
POST/v1/garden/bank/feeds/{feed}/imports
Scope garden:bank:link.
Parameters
feedpath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 201OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/bank/feeds/$FEED/imports" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_importBankStatement', {
feed: '<feed>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_importBankStatement",
"arguments": {
"feed": "<feed>",
"body": {}
}
}
}
}Put a bank account in a space; mark it mixed
POST/v1/garden/bank/feeds/{feed}/space
Scope garden:bank:link. Body { space_id: personal | spc_..., mixed?: boolean }. The person's say is kept and never overwritten by a sync. Moving anything between spaces is the person's own session only (403 for an agent or key).
Parameters
feedpath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/bank/feeds/$FEED/space" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_setBankFeedSpace', {
feed: '<feed>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_setBankFeedSpace",
"arguments": {
"feed": "<feed>",
"body": {}
}
}
}
}Get a flag
GET/v1/garden/bank/flags/{id}
Scope garden:bank:read.
Parameters
idpath · stringrequired
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/bank/flags/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankFlag', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBankFlag",
"arguments": {
"id": "<id>"
}
}
}Dismiss or resolve a flag (If-Match)
PATCH/v1/garden/bank/flags/{id}
Scope garden:bank:link.
Parameters
idpath · stringrequiredIf-Matchheader · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/bank/flags/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateBankFlag', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_updateBankFlag",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Get a receipt link
GET/v1/garden/bank/links/{id}
Scope garden:bank:read.
Parameters
idpath · stringrequired
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/bank/links/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankLink', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBankLink",
"arguments": {
"id": "<id>"
}
}
}Confirm or undo a receipt link (If-Match)
PATCH/v1/garden/bank/links/{id}
Scope garden:bank:link.
Parameters
idpath · stringrequiredIf-Matchheader · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/bank/links/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateBankLink', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_updateBankLink",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Attach a receipt that is on file to a purchase (id is the receipt's id, not the transaction's)
POST/v1/garden/bank/receipts/{id}/links
Scope garden:bank:link.
Parameters
idpath · stringrequired
Request body application/json
transaction_idstringrequiredThe id of the purchase to attach the receipt to (btx_... or bt_...), as garden_listBankTransactions or garden_listMissingReceipts returned it max length 64
amountintegerThe part of the purchase this receipt covers, in minor units (cents). Leave out for the whole receipt min 1
Responses
- 201OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/bank/receipts/$ID/links" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transaction_id": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_linkBankReceipt', {
id: '<id>',
body: {
transaction_id: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_linkBankReceipt",
"arguments": {
"id": "<id>",
"body": {
"transaction_id": "string"
}
}
}
}
}Delete an empty Business space
DELETE/v1/garden/bank/spaces/{space}
Scope garden:bank:link. 409 space_not_empty while accounts or wallets are in it; tagged lines follow their account again. Moving anything between spaces is the person's own session only (403 for an agent or key).
Parameters
spacepath · stringrequired
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/garden/bank/spaces/$SPACE" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_deleteBankSpace', {
space: '<space>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_deleteBankSpace",
"arguments": {
"space": "<space>"
}
}
}
}Rename a Business space (If-Match)
PATCH/v1/garden/bank/spaces/{space}
Scope garden:bank:link. Body { name }. Moving anything between spaces is the person's own session only (403 for an agent or key).
Parameters
spacepath · stringrequiredIf-Matchheader · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/bank/spaces/$SPACE" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateBankSpace', {
space: '<space>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_updateBankSpace",
"arguments": {
"space": "<space>",
"body": {}
}
}
}
}Get a bank transaction
GET/v1/garden/bank/transactions/{id}
Scope garden:bank:read.
Parameters
idpath · stringrequired
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/bank/transactions/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankTransaction', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBankTransaction",
"arguments": {
"id": "<id>"
}
}
}Correct a transaction's category (If-Match)
PATCH/v1/garden/bank/transactions/{id}
Scope garden:bank:link.
Parameters
idpath · stringrequiredIf-Matchheader · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/bank/transactions/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateBankTransaction', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_updateBankTransaction",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Put a wallet in a space
POST/v1/garden/bank/wallets/{wallet}/space
Scope garden:bank:link. Body { space_id: personal | spc_... }. Moving anything between spaces is the person's own session only (403 for an agent or key).
Parameters
walletpath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/bank/wallets/$WALLET/space" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_setWalletSpace', {
wallet: '<wallet>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_setWalletSpace",
"arguments": {
"wallet": "<wallet>",
"body": {}
}
}
}
}List the books' bank connections
GET/v1/garden/books/{books}/bank/connections
Scope garden:bank:summary (implied by garden:bank:read). No tokens, no line items.
Parameters
bookspath · stringrequired
Responses
- 200Connections
Response fields
dataobject[]requireddata[].[].object"bank_connection"requireddata[].[].idstringrequireddata[].[].books_idstringrequireddata[].[].provider"teller"requireddata[].[].environment"sandbox" | "development" | "production"requireddata[].[].institution_namestring | nulldata[].[].status"active" | "needs_reconnect" | "disconnected"requireddata[].[].accountsintegerrequireddata[].[].consentobjectdata[].[].last_synced_atstring | null (date-time)data[].[].disconnected_atstring | null (date-time)data[].[].versionintegerdata[].[].created_atstring (date-time)data[].[].updated_atstring (date-time)
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/connections" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankConnections', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listBankConnections",
"arguments": {
"books": "<books>"
}
}
}Hand Garden the enrollment Teller Connect returned
POST/v1/garden/books/{books}/bank/connections/teller
Scope garden:bank:link, the person's own session only. The enrollment must carry Teller's signature over this session's nonce. The access token is sealed and never returned. Each account becomes a bank feed.
Parameters
bookspath · stringrequired
Request body application/json
session_idstringrequirednoncestringrequiredaccess_tokenstringrequiredFrom Teller Connect onSuccess; sealed by Garden and never returned.
user_idstringrequiredenrollment_idstringrequiredsignaturesstring[]requiredinstitution_namestring | null
Responses
- 201The connection
Response fields
object"bank_connection"requiredidstringrequiredbooks_idstringrequiredprovider"teller"requiredenvironment"sandbox" | "development" | "production"requiredinstitution_namestring | nullstatus"active" | "needs_reconnect" | "disconnected"requiredaccountsintegerrequiredconsentobjectlast_synced_atstring | null (date-time)disconnected_atstring | null (date-time)versionintegercreated_atstring (date-time)updated_atstring (date-time)
- 403Missing scope, or the act is the person's own (their session) and the caller is a key, an M2M token or an agent
- 404Not found in your organization
- 409A spent or expired session, a connection that is not active, archived books, or too many wallets
- 422Invalid body or query; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/connections/teller" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"session_id": "string",
"nonce": "string",
"access_token": "string",
"user_id": "string",
"enrollment_id": "string",
"signatures": [
"string"
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_enrollTellerConnection', {
books: '<books>',
body: {
session_id: 'string',
nonce: 'string',
access_token: 'string',
user_id: 'string',
enrollment_id: 'string',
signatures: [
'string',
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_enrollTellerConnection",
"arguments": {
"books": "<books>",
"body": {
"session_id": "string",
"nonce": "string",
"access_token": "string",
"user_id": "string",
"enrollment_id": "string",
"signatures": [
"string"
]
}
}
}
}
}Open a single-use Teller Connect session for these books
POST/v1/garden/books/{books}/bank/connections/teller/sessions
Scope garden:bank:link, the person's own session only. Returns what Teller Connect is opened with (application id, environment, products balance and transactions, a single-use nonce) for 10 minutes.
Parameters
bookspath · stringrequired
Responses
- 201The session
Response fields
object"bank_connect_session"requiredidstringrequiredprovider"teller"requiredapplication_idstringrequiredenvironment"sandbox" | "development" | "production"requiredproducts"balance" | "transactions"[]requiredselect_account"multiple"requirednoncestringrequiredexpires_atstring (date-time)required
- 403Missing scope, or the act is the person's own (their session) and the caller is a key, an M2M token or an agent
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/connections/teller/sessions" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createTellerConnectSession', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_createTellerConnectSession",
"arguments": {
"books": "<books>"
}
}
}
}List the books' bank feeds
GET/v1/garden/books/{books}/bank/feeds
Scope garden:bank:read.
Parameters
bookspath · stringrequired
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/feeds" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankFeeds', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listBankFeeds",
"arguments": {
"books": "<books>"
}
}
}Make a bank feed for statement upload
POST/v1/garden/books/{books}/bank/feeds
Scope garden:bank:link.
Parameters
bookspath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 201OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/feeds" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createBankFeed', {
books: '<books>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_createBankFeed",
"arguments": {
"books": "<books>",
"body": {}
}
}
}
}List oddity flags (duplicates, jumps, new vendors)
GET/v1/garden/books/{books}/bank/flags
Scope garden:bank:read.
Parameters
bookspath · stringrequiredstatusquery · stringlimitquery · integeroffsetquery · integer
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/flags" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankFlags', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listBankFlags",
"arguments": {
"books": "<books>"
}
}
}A month's spending against the month before, by category and merchant, with unusual charges
GET/v1/garden/books/{books}/bank/insights
Scope garden:bank:read (names merchants and single charges, so the summary scope is not enough). Read-only. For the current month, the month to date against the same days of last month, and last month's total; by category, top merchants, the largest charges, charges that stand out (higher than the merchant's usual, a large first charge, the same amount twice in three days), and pace.
Parameters
bookspath · stringrequiredmonthquery · stringYYYY-MM (default the current month; within the last 13 months)
spacequery · stringNarrow to one space (personal, spc_..., unassigned, untagged)
Responses
- 200OK
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/insights" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankInsights', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBankInsights",
"arguments": {
"books": "<books>"
}
}
}Match the receipts already on file to purchases again (finds no new receipt; add one first)
POST/v1/garden/books/{books}/bank/match
Scope garden:bank:link.
Parameters
bookspath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/match" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_matchBankReceipts', {
books: '<books>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_matchBankReceipts",
"arguments": {
"books": "<books>",
"body": {}
}
}
}
}Purchases still missing a receipt, with the total and the dates counted (Money's Receipts list)
GET/v1/garden/books/{books}/bank/missing-receipts
Scope garden:bank:read. Posted purchases with no receipt linked, smallest amount first, as Money's Receipts list counts them. A purchase is given a week for its receipt to arrive before it counts as missing (older_than_days, default 7), and the count looks back 90 days (newer_than_days). For "in the last N days" set newer_than_days to N and leave older_than_days out, so the count is Money's. The answer carries total (how many there are in all, whatever the page) and counted (the first and last day counted, the smallest amount, and the days a purchase is given before it counts as missing): say the count from total and the dates from counted. Books that do not exist are refused with 404, never answered as an empty list.
Parameters
bookspath · stringrequiredmin_amountquery · integerSmallest purchase to list, in minor units (cents): 7500 = $75.00. Default 7500; at least 1
older_than_daysquery · integerDays a purchase is given for its receipt to arrive before it counts as missing. Default 7, as Money counts: leave out unless the person names another wait; 0-3650
newer_than_daysquery · integerHow far back to count: "in the last N days" = N. Default 90, as Money counts; 1-3650 and not less than older_than_days
as_ofquery · string (date)The day older_than_days and newer_than_days count back from (YYYY-MM-DD). Default today
limitquery · integerMost transactions to return on this page, 1-500. Default 100. The total in the answer counts all of them, whatever the page
offsetquery · integerTransactions to skip, for the next page, 0-100000. Default 0
Responses
- 200The page of purchases, how many there are in all, and what was counted
Response fields
dataobject[]requiredThis page of purchases
totalintegerrequiredHow many purchases are missing a receipt in all, whatever the page
countedobjectrequiredWhat this answer counted, in dates
counted.fromstring (date)requiredFirst day counted (newer_than_days before as_of)
counted.tostring (date)requiredLast day counted (older_than_days before as_of)
counted.min_amountintegerrequiredSmallest purchase counted, in minor units (cents)
counted.not_yet_missing_daysintegerrequiredDays a purchase is given for its receipt before it counts as missing
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/missing-receipts" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listMissingReceipts', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listMissingReceipts",
"arguments": {
"books": "<books>"
}
}
}List the receipts Garden holds (each with its id, vendor, total and date)
GET/v1/garden/books/{books}/bank/receipts
Scope garden:bank:read.
Parameters
bookspath · stringrequiredunmatchedquery · booleantrue lists only receipts not yet attached to a purchase
limitquery · integeroffsetquery · integer
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/receipts" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankReceipts', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listBankReceipts",
"arguments": {
"books": "<books>"
}
}
}Put a receipt on file (vendor, total, date) so it can be matched to a purchase
POST/v1/garden/books/{books}/bank/receipts
Scope garden:bank:link.
Parameters
bookspath · stringrequired
Request body application/json
vendorstringrequiredWho the receipt is from, as printed on it max length 200
totalintegerrequiredThe receipt total in minor units (cents): 50000 = $500.00 min 1
taxintegerTax on the receipt, in minor units (cents). Leave out when not shown min 0
currencystringThree-letter currency code. Default USD
receipt_datestring (date)requiredThe date on the receipt (YYYY-MM-DD)
last4stringThe last four digits of the card on the receipt, when shown pattern
^[0-9]{4}$source"boxes" | "email" | "upload" | "onepay"Where the receipt came from. Default upload
boxes_file_idstringThe id of the receipt's file in the person's Boxes, when it is saved there max length 100
line_itemsobject[]The lines on the receipt, when read
line_items[].[].descriptionstringrequiredmax length 200
line_items[].[].amountintegerrequiredThe line amount in minor units (cents)
Responses
- 201OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/receipts" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"vendor": "string",
"total": 1,
"receipt_date": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_addBankReceipt', {
books: '<books>',
body: {
vendor: 'string',
total: 1,
receipt_date: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_addBankReceipt",
"arguments": {
"books": "<books>",
"body": {
"vendor": "string",
"total": 1,
"receipt_date": "string"
}
}
}
}
}Recurring charges (subscriptions and bills) with monthly totals
GET/v1/garden/books/{books}/bank/recurring
Scope garden:bank:read. Read-only. Plaid's recurring money-out streams for the books' Plaid connections first, then Garden's own deterministic detection over the stored transactions: kind (subscription or bill), frequency, last and next charge, monthly cost, a price change, the same merchant on another account, a charge made twice, overlaps in one category, and monthly totals. Nothing is stored and nothing moves money.
Parameters
bookspath · stringrequiredspacequery · stringNarrow to one space (personal, spc_..., unassigned, untagged); Plaid's account streams are then not read
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/recurring" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankRecurring', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listBankRecurring",
"arguments": {
"books": "<books>"
}
}
}The money spaces (Personal and each Business) with their accounts and this month's totals
GET/v1/garden/books/{books}/bank/spaces
Scope garden:bank:summary. Each space lists its bank accounts and wallets (no line items) and this month's money in and out. Accounts whose space isn't known yet are under unassigned with needs_space: true; a mixed account counts its untagged lines.
Parameters
bookspath · stringrequiredmonthquery · stringThe calendar month for the totals (YYYY-MM). Default the current month
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/spaces" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankSpaces', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_listBankSpaces",
"arguments": {
"books": "<books>"
}
}
}
}Make a Business space (a farm, a practice, a side business)
POST/v1/garden/books/{books}/bank/spaces
Scope garden:bank:link. Body { name }; 409 space_exists for a duplicate name. Moving anything between spaces is the person's own session only (403 for an agent or key).
Parameters
bookspath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 201Created
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/spaces" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createBankSpace', {
books: '<books>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_createBankSpace",
"arguments": {
"books": "<books>",
"body": {}
}
}
}
}The month's money in and out, by category and vendor
GET/v1/garden/books/{books}/bank/summary
Scope garden:bank:summary.
Parameters
bookspath · stringrequiredmonthquery · stringThe calendar month to total (YYYY-MM), first day to last day. Garden refuses the call without it
spacequery · stringNarrow every figure to one space (personal, spc_..., unassigned, untagged)
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/summary" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankSummary', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBankSummary",
"arguments": {
"books": "<books>"
}
}
}List bank transactions (filter by feed, category, status, dates)
GET/v1/garden/books/{books}/bank/transactions
Scope garden:bank:read.
Parameters
bookspath · stringrequiredfeed_idquery · stringcategoryquery · stringstatusquery · stringfromquery · string (date)Earliest posted date, inclusive (YYYY-MM-DD): only transactions posted on or after this day
toquery · string (date)Latest posted date, inclusive (YYYY-MM-DD): only transactions posted on or before this day
unconfirmedquery · booleanspacequery · stringpersonal, a Business space id (spc_...), unassigned, or untagged (mixed accounts' lines with no space of their own)
limitquery · integeroffsetquery · integer
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/transactions" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankTransactions', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listBankTransactions",
"arguments": {
"books": "<books>"
}
}
}Confirm transactions into the books
POST/v1/garden/books/{books}/bank/transactions/confirm
Scope garden:bank:link.
Parameters
bookspath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/transactions/confirm" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_confirmBankTransactions', {
books: '<books>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_confirmBankTransactions",
"arguments": {
"books": "<books>",
"body": {}
}
}
}
}Tag up to 200 transactions with a space (a mixed account), or clear the tag
POST/v1/garden/books/{books}/bank/transactions/space
Scope garden:bank:link. Body { ids: [...], space_id: personal | spc_... | null }; null makes them follow their account again. Moving anything between spaces is the person's own session only (403 for an agent or key).
Parameters
bookspath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200OK
Response fields
A JSON object.
- 403Missing the exact bank scope
- 404Not found in your organization, or the bank feed is off
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/transactions/space" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_tagBankTransactions', {
books: '<books>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_tagBankTransactions",
"arguments": {
"books": "<books>",
"body": {}
}
}
}
}Banking
Get a bank account with its live balance
GET/v1/garden/banking/accounts/{account}
Scope garden:read, owner only. balance is read live from Increase in minor units (USD cents).
Parameters
accountpath · stringrequiredBank account id (ba_...)
Responses
- 200OK
Response fields
idstringrequiredobject"banking_account"requiredbooks_idstringrequiredholder_idstringrequiredholder_kind"person" | "company"requirednamestringrequiredstatus"pending" | "open" | "closed"requiredprovider"increase"requiredenvironment"sandbox" | "production"requiredrouting_numberstring | nulllast4string | nullcreated_atstring (date-time)requiredclosed_atstring | null (date-time)balanceobject | nullbalance.currentintegerbalance.availableintegerbalance.currency"USD"
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/banking/accounts/$ACCOUNT" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankingAccount', {
account: '<account>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_getBankingAccount",
"arguments": {
"account": "<account>"
}
}
}
}List the account's cards
GET/v1/garden/banking/accounts/{account}/cards
Scope garden:read, owner only. Last 4, expiry, status and limit; never a number.
Parameters
accountpath · stringrequiredBank account id (ba_...)
Responses
- 200OK
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].object"banking_card"requireddata[].[].account_idstringrequireddata[].[].descriptionstringrequireddata[].[].last4stringrequireddata[].[].exp_monthintegerrequireddata[].[].exp_yearintegerrequireddata[].[].status"active" | "frozen" | "closed"requireddata[].[].limitobjectrequireddata[].[].limit.amountintegerdata[].[].limit.intervalstringdata[].[].limit.currency"USD"data[].[].created_atstring (date-time)required
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/banking/accounts/$ACCOUNT/cards" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankingCards', {
account: '<account>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_listBankingCards",
"arguments": {
"account": "<account>"
}
}
}
}Issue a virtual debit card with a spend limit
POST/v1/garden/banking/accounts/{account}/cards
Scope garden:manage, owner only. Idempotency-Key required. limit.amount in USD cents (100 to 1,000,000) per limit.interval. The card number is never in an answer: see the details iframe.
Parameters
accountpath · stringrequiredBank account id (ba_...)
Idempotency-Keyheader · stringrequired8-128 letters, digits or _.:-; a retry with the same key answers the first result
Request body application/json
descriptionstringrequiredmin length 1 · max length 60
limitobjectrequiredlimit.amountintegerrequiredmin 100 · max 1000000
limit.interval"per_transaction" | "per_day" | "per_week" | "per_month" | "all_time"required
Responses
- 201OK
Response fields
idstringrequiredobject"banking_card"requiredaccount_idstringrequireddescriptionstringrequiredlast4stringrequiredexp_monthintegerrequiredexp_yearintegerrequiredstatus"active" | "frozen" | "closed"requiredlimitobjectrequiredlimit.amountintegerlimit.intervalstringlimit.currency"USD"created_atstring (date-time)required
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 422Invalid body, or no Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/accounts/$ACCOUNT/cards" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "string",
"limit": {
"amount": 100,
"interval": "per_transaction"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('garden_issueBankingCard', {
account: '<account>',
body: {
description: 'string',
limit: {
amount: 100,
interval: 'per_transaction',
},
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_issueBankingCard",
"arguments": {
"account": "<account>",
"body": {
"description": "string",
"limit": {
"amount": 100,
"interval": "per_transaction"
}
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Close a bank account
POST/v1/garden/banking/accounts/{account}/close
Scope garden:manage, owner only. Its cards are closed first; Increase requires a zero balance (409 balance_not_zero).
Parameters
accountpath · stringrequiredBank account id (ba_...)
Responses
- 200OK
Response fields
idstringrequiredobject"banking_account"requiredbooks_idstringrequiredholder_idstringrequiredholder_kind"person" | "company"requirednamestringrequiredstatus"pending" | "open" | "closed"requiredprovider"increase"requiredenvironment"sandbox" | "production"requiredrouting_numberstring | nulllast4string | nullcreated_atstring (date-time)requiredclosed_atstring | null (date-time)balanceobject | nullbalance.currentintegerbalance.availableintegerbalance.currency"USD"
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/accounts/$ACCOUNT/close" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_closeBankingAccount', {
account: '<account>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_closeBankingAccount",
"arguments": {
"account": "<account>"
}
}
}
}Move a pending account on once its onboarding is done
POST/v1/garden/banking/accounts/{account}/continue
Scope garden:manage, owner only. Reads Increase's onboarding session back; opens the account when Increase has made the holder.
Parameters
accountpath · stringrequiredBank account id (ba_...)
Responses
- 200OK
Response fields
accountobjectrequiredaccount.idstringrequiredaccount.object"banking_account"requiredaccount.books_idstringrequiredaccount.holder_idstringrequiredaccount.holder_kind"person" | "company"requiredaccount.namestringrequiredaccount.status"pending" | "open" | "closed"requiredaccount.provider"increase"requiredaccount.environment"sandbox" | "production"requiredaccount.routing_numberstring | nullaccount.last4string | nullaccount.created_atstring (date-time)requiredaccount.closed_atstring | null (date-time)account.balanceobject | nullaccount.balance.currentintegeraccount.balance.availableintegeraccount.balance.currency"USD"onboardingobject | nullonboarding.urlstring | nullonboarding.expires_atstring
- 202Pending (onboarding to finish)
Response fields
accountobjectrequiredaccount.idstringrequiredaccount.object"banking_account"requiredaccount.books_idstringrequiredaccount.holder_idstringrequiredaccount.holder_kind"person" | "company"requiredaccount.namestringrequiredaccount.status"pending" | "open" | "closed"requiredaccount.provider"increase"requiredaccount.environment"sandbox" | "production"requiredaccount.routing_numberstring | nullaccount.last4string | nullaccount.created_atstring (date-time)requiredaccount.closed_atstring | null (date-time)account.balanceobject | nullaccount.balance.currentintegeraccount.balance.availableintegeraccount.balance.currency"USD"onboardingobject | nullonboarding.urlstring | nullonboarding.expires_atstring
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/accounts/$ACCOUNT/continue" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_continueBankingAccount', {
account: '<account>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_continueBankingAccount",
"arguments": {
"account": "<account>"
}
}
}
}Sandbox: an inbound ACH transfer into the account
POST/v1/garden/banking/accounts/{account}/simulate/inbound-transfer
Scope garden:manage, owner only, Increase sandbox only. amount in USD cents (up to 5,000,000).
Parameters
accountpath · stringrequiredBank account id (ba_...)
Request body application/json
amountintegerrequiredmin 1 · max 5000000
fromstringmax length 16
Responses
- 201OK
Response fields
object"banking_simulation"requiredkind"inbound_ach_transfer" | "card_authorization"requiredidstringstatusstringtransaction_idstring | nullapprovedbooleanpending_transaction_idstring | nulldeclined_transaction_idstring | null
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 422Invalid body, or no Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/accounts/$ACCOUNT/simulate/inbound-transfer" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 1
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_simulateBankingInboundTransfer', {
account: '<account>',
body: {
amount: 1,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_simulateBankingInboundTransfer",
"arguments": {
"account": "<account>",
"body": {
"amount": 1
}
}
}
}
}Sandbox: submit the account holder's onboarding form
POST/v1/garden/banking/accounts/{account}/simulate/onboarding
Scope garden:manage, owner only, Increase sandbox only (404 otherwise).
Parameters
accountpath · stringrequiredBank account id (ba_...)
Responses
- 200OK
Response fields
accountobjectrequiredaccount.idstringrequiredaccount.object"banking_account"requiredaccount.books_idstringrequiredaccount.holder_idstringrequiredaccount.holder_kind"person" | "company"requiredaccount.namestringrequiredaccount.status"pending" | "open" | "closed"requiredaccount.provider"increase"requiredaccount.environment"sandbox" | "production"requiredaccount.routing_numberstring | nullaccount.last4string | nullaccount.created_atstring (date-time)requiredaccount.closed_atstring | null (date-time)account.balanceobject | nullaccount.balance.currentintegeraccount.balance.availableintegeraccount.balance.currency"USD"onboardingobject | nullonboarding.urlstring | nullonboarding.expires_atstring
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/accounts/$ACCOUNT/simulate/onboarding" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_simulateBankingOnboarding', {
account: '<account>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_simulateBankingOnboarding",
"arguments": {
"account": "<account>"
}
}
}
}Posted and pending transactions, newest first
GET/v1/garden/banking/accounts/{account}/transactions
Scope garden:read, owner only. Read live from Increase; negative amounts are money out.
Parameters
accountpath · stringrequiredBank account id (ba_...)
limitquery · integer
Responses
- 200OK
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].status"posted" | "pending"requireddata[].[].amountintegerrequiredMinor units; negative is money out
data[].[].currencystringrequireddata[].[].descriptionstringrequireddata[].[].categorystringrequireddata[].[].atstring (date-time)required
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/banking/accounts/$ACCOUNT/transactions" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankingTransactions', {
account: '<account>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_listBankingTransactions",
"arguments": {
"account": "<account>"
}
}
}
}Get a card
GET/v1/garden/banking/cards/{card}
Scope garden:read, owner only.
Parameters
cardpath · stringrequiredCard id (bcd_...)
Responses
- 200OK
Response fields
idstringrequiredobject"banking_card"requiredaccount_idstringrequireddescriptionstringrequiredlast4stringrequiredexp_monthintegerrequiredexp_yearintegerrequiredstatus"active" | "frozen" | "closed"requiredlimitobjectrequiredlimit.amountintegerlimit.intervalstringlimit.currency"USD"created_atstring (date-time)required
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/banking/cards/$CARD" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBankingCard', {
card: '<card>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_getBankingCard",
"arguments": {
"card": "<card>"
}
}
}
}Close a card (final)
POST/v1/garden/banking/cards/{card}/close
Scope garden:manage, owner only.
Parameters
cardpath · stringrequiredCard id (bcd_...)
Responses
- 200OK
Response fields
idstringrequiredobject"banking_card"requiredaccount_idstringrequireddescriptionstringrequiredlast4stringrequiredexp_monthintegerrequiredexp_yearintegerrequiredstatus"active" | "frozen" | "closed"requiredlimitobjectrequiredlimit.amountintegerlimit.intervalstringlimit.currency"USD"created_atstring (date-time)required
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/cards/$CARD/close" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_closeBankingCard', {
card: '<card>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_closeBankingCard",
"arguments": {
"card": "<card>"
}
}
}
}Show the card number in Increase's own page
POST/v1/garden/banking/cards/{card}/details-iframe
Scope garden:manage; the person in their own session only (keys get 403). Answers a short-lived Increase iframe URL that renders the number inside Increase's page; Garden never stores or logs it. Person-only: never an agent's tool.
Parameters
cardpath · stringrequiredCard id (bcd_...)
Responses
- 200OK
Response fields
object"banking_card_details_iframe"requiredcard_idstringrequirediframe_urlstringrequiredIncrease's own page; short-lived; shown only to the person
expires_atstringrequired
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/cards/$CARD/details-iframe" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createBankingCardDetailsIframe', {
card: '<card>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_createBankingCardDetailsIframe",
"arguments": {
"card": "<card>"
}
}
}
}Freeze a card
POST/v1/garden/banking/cards/{card}/freeze
Scope garden:manage, owner only. Purchases are declined until it is unfrozen.
Parameters
cardpath · stringrequiredCard id (bcd_...)
Responses
- 200OK
Response fields
idstringrequiredobject"banking_card"requiredaccount_idstringrequireddescriptionstringrequiredlast4stringrequiredexp_monthintegerrequiredexp_yearintegerrequiredstatus"active" | "frozen" | "closed"requiredlimitobjectrequiredlimit.amountintegerlimit.intervalstringlimit.currency"USD"created_atstring (date-time)required
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/cards/$CARD/freeze" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_freezeBankingCard', {
card: '<card>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_freezeBankingCard",
"arguments": {
"card": "<card>"
}
}
}
}Sandbox: a purchase on the card
POST/v1/garden/banking/cards/{card}/simulate/purchase
Scope garden:manage, owner only, Increase sandbox only. Shows as a pending transaction, or is declined (frozen card, over the limit).
Parameters
cardpath · stringrequiredCard id (bcd_...)
Request body application/json
amountintegerrequiredmin 1 · max 5000000
merchantstringmax length 22
Responses
- 201OK
Response fields
object"banking_simulation"requiredkind"inbound_ach_transfer" | "card_authorization"requiredidstringstatusstringtransaction_idstring | nullapprovedbooleanpending_transaction_idstring | nulldeclined_transaction_idstring | null
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 422Invalid body, or no Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/cards/$CARD/simulate/purchase" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 1
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_simulateBankingCardPurchase', {
card: '<card>',
body: {
amount: 1,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_simulateBankingCardPurchase",
"arguments": {
"card": "<card>",
"body": {
"amount": 1
}
}
}
}
}Unfreeze a card
POST/v1/garden/banking/cards/{card}/unfreeze
Scope garden:manage, owner only.
Parameters
cardpath · stringrequiredCard id (bcd_...)
Responses
- 200OK
Response fields
idstringrequiredobject"banking_card"requiredaccount_idstringrequireddescriptionstringrequiredlast4stringrequiredexp_monthintegerrequiredexp_yearintegerrequiredstatus"active" | "frozen" | "closed"requiredlimitobjectrequiredlimit.amountintegerlimit.intervalstringlimit.currency"USD"created_atstring (date-time)required
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/cards/$CARD/unfreeze" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_unfreezeBankingCard', {
card: '<card>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_unfreezeBankingCard",
"arguments": {
"card": "<card>"
}
}
}
}Open a business bank account (Increase) for a company you own, making its books if it has none
POST/v1/garden/banking/companies/{org}/accounts
Scope garden:manage; the company's owner in their own session (Auto's live owner record must name them and the company must be active), or the company's own key. In one request: the company's books (the active books linked to Auto org org, else new books in company_name, USD, the standard chart, made once) and then the account, as openBankingAccount with holder company. Nothing is made when the owner check fails (403). Idempotency-Key required: a retry answers the same account. 201 when open, 202 pending while the holder has onboarding to finish. The answer also names the books.
Parameters
orgpath · stringrequiredThe company's Auto org id
Idempotency-Keyheader · stringrequired8-128 letters, digits or _.:-; a retry with the same key answers the first result
Request body application/json
namestringrequiredWhat the account is called min length 1 · max length 80
company_namestringrequiredThe name the company's books get if they are made now min length 1 · max length 200
onboarding"hosted" | "sandbox_test_identity"Default: sandbox_test_identity in the Increase sandbox, hosted otherwise
Responses
- 201OK
Response fields
accountobjectrequiredaccount.idstringrequiredaccount.object"banking_account"requiredaccount.books_idstringrequiredaccount.holder_idstringrequiredaccount.holder_kind"person" | "company"requiredaccount.namestringrequiredaccount.status"pending" | "open" | "closed"requiredaccount.provider"increase"requiredaccount.environment"sandbox" | "production"requiredaccount.routing_numberstring | nullaccount.last4string | nullaccount.created_atstring (date-time)requiredaccount.closed_atstring | null (date-time)account.balanceobject | nullaccount.balance.currentintegeraccount.balance.availableintegeraccount.balance.currency"USD"onboardingobject | nullonboarding.urlstring | nullonboarding.expires_atstringbooksobjectrequiredbooks.idstringrequiredbooks.namestringrequiredbooks.auto_org_idstringrequired
- 202Pending (onboarding to finish)
Response fields
accountobjectrequiredaccount.idstringrequiredaccount.object"banking_account"requiredaccount.books_idstringrequiredaccount.holder_idstringrequiredaccount.holder_kind"person" | "company"requiredaccount.namestringrequiredaccount.status"pending" | "open" | "closed"requiredaccount.provider"increase"requiredaccount.environment"sandbox" | "production"requiredaccount.routing_numberstring | nullaccount.last4string | nullaccount.created_atstring (date-time)requiredaccount.closed_atstring | null (date-time)account.balanceobject | nullaccount.balance.currentintegeraccount.balance.availableintegeraccount.balance.currency"USD"onboardingobject | nullonboarding.urlstring | nullonboarding.expires_atstringbooksobjectrequiredbooks.idstringrequiredbooks.namestringrequiredbooks.auto_org_idstringrequired
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 422Invalid body, or no Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/banking/companies/$ORG/accounts" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"company_name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('garden_openBankingCompanyAccount', {
org: '<org>',
body: {
name: 'string',
company_name: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_openBankingCompanyAccount",
"arguments": {
"org": "<org>",
"body": {
"name": "string",
"company_name": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}List your bank accounts in these books
GET/v1/garden/books/{books}/banking/accounts
Scope garden:read. Only the caller's own accounts (the person's, or the org key's).
Parameters
bookspath · stringrequiredBooks id (bks_...)
Responses
- 200OK
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].object"banking_account"requireddata[].[].books_idstringrequireddata[].[].holder_idstringrequireddata[].[].holder_kind"person" | "company"requireddata[].[].namestringrequireddata[].[].status"pending" | "open" | "closed"requireddata[].[].provider"increase"requireddata[].[].environment"sandbox" | "production"requireddata[].[].routing_numberstring | nulldata[].[].last4string | nulldata[].[].created_atstring (date-time)requireddata[].[].closed_atstring | null (date-time)data[].[].balanceobject | nulldata[].[].balance.currentintegerdata[].[].balance.availableintegerdata[].[].balance.currency"USD"providerstringenvironmentstring
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/banking/accounts" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBankingAccounts', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_listBankingAccounts",
"arguments": {
"books": "<books>"
}
}
}
}Open a bank account (Increase) for the person or a company they own
POST/v1/garden/books/{books}/banking/accounts
Scope garden:manage; the person in their own session, or the org with its own key (a company account only). holder person is a personal account on books with no Auto org (Increase sandbox only); company is a company account on the company's books. Idempotency-Key required: a retry answers the same account. 201 when open, 202 pending with onboarding.url (Increase's own form) while the holder has onboarding to finish. Garden keeps the routing number and last 4 only.
Parameters
bookspath · stringrequiredBooks id (bks_...)
Idempotency-Keyheader · stringrequired8-128 letters, digits or _.:-; a retry with the same key answers the first result
Request body application/json
holder"person" | "company"requirednamestringrequiredmin length 1 · max length 80
onboarding"hosted" | "sandbox_test_identity"Default: sandbox_test_identity in the Increase sandbox, hosted otherwise
Responses
- 201OK
Response fields
accountobjectrequiredaccount.idstringrequiredaccount.object"banking_account"requiredaccount.books_idstringrequiredaccount.holder_idstringrequiredaccount.holder_kind"person" | "company"requiredaccount.namestringrequiredaccount.status"pending" | "open" | "closed"requiredaccount.provider"increase"requiredaccount.environment"sandbox" | "production"requiredaccount.routing_numberstring | nullaccount.last4string | nullaccount.created_atstring (date-time)requiredaccount.closed_atstring | null (date-time)account.balanceobject | nullaccount.balance.currentintegeraccount.balance.availableintegeraccount.balance.currency"USD"onboardingobject | nullonboarding.urlstring | nullonboarding.expires_atstring
- 202Pending (onboarding to finish)
Response fields
accountobjectrequiredaccount.idstringrequiredaccount.object"banking_account"requiredaccount.books_idstringrequiredaccount.holder_idstringrequiredaccount.holder_kind"person" | "company"requiredaccount.namestringrequiredaccount.status"pending" | "open" | "closed"requiredaccount.provider"increase"requiredaccount.environment"sandbox" | "production"requiredaccount.routing_numberstring | nullaccount.last4string | nullaccount.created_atstring (date-time)requiredaccount.closed_atstring | null (date-time)account.balanceobject | nullaccount.balance.currentintegeraccount.balance.availableintegeraccount.balance.currency"USD"onboardingobject | nullonboarding.urlstring | nullonboarding.expires_atstring
- 403Missing scope, not the owner's own session or key, or (card number) not the person's own session
- 404Not found among your own accounts and cards
- 409ENVIRONMENT_NOT_AVAILABLE, balance_not_zero, account_not_open, card_closed, card_limit, or banking_provider_refused (Increase's error type only)
- 422Invalid body, or no Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/banking/accounts" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"holder": "person",
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('garden_openBankingAccount', {
books: '<books>',
body: {
holder: 'person',
name: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_openBankingAccount",
"arguments": {
"books": "<books>",
"body": {
"holder": "person",
"name": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Books
List your organization's books
GET/v1/garden/books
Scope garden:read. Each set of books is one legal entity's ledger in one currency. Archived books are hidden unless include_archived=true.
Parameters
include_archivedquery · boolean
Responses
- 200Books
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].namestringrequireddata[].[].currencystringrequiredpattern
^[A-Z]{3}$data[].[].auto_org_idstring | nullrequiredThe Auto org whose authority covers spending
data[].[].status"active" | "archived"requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listBooks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listBooks",
"arguments": {}
}
}Open books in one currency
POST/v1/garden/books
Scope garden:write. Opens with the standard chart of accounts (1000 Cash, 1200 Receivable, 2000 Payable, 2100 Sales tax, 3000 Owner's equity, 3100 Distributions, 4000 Revenue, 5000 Operating, 5100 Contractors, 5900 Bad debt) unless chart is empty. auto_org_id names the Auto org whose authority covers spending.
Request body application/json
namestringrequiredmin length 1 · max length 200
currencystringISO 4217; default USD pattern
^[A-Z]{3}$auto_org_idstring | nullpattern
^[a-z]{2,4}_[A-Za-z0-9]{1,60}$chart"standard" | "empty"Default standard
Responses
- 201Books opened; the
ETagheader carries the versionResponse fields
idstringrequirednamestringrequiredcurrencystringrequiredpattern
^[A-Z]{3}$auto_org_idstring | nullrequiredThe Auto org whose authority covers spending
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createBooks', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_createBooks",
"arguments": {
"body": {
"name": "string"
}
}
}
}Get one set of books
GET/v1/garden/books/{books}
Scope garden:read.
Parameters
bookspath · stringrequired
Responses
- 200The books
Response fields
idstringrequirednamestringrequiredcurrencystringrequiredpattern
^[A-Z]{3}$auto_org_idstring | nullrequiredThe Auto org whose authority covers spending
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBooks', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBooks",
"arguments": {
"books": "<books>"
}
}
}Archive books
DELETE/v1/garden/books/{books}
Scope garden:manage. Needs If-Match. Books are archived, never deleted; the journal and audit trail stay. Refused (409 pending_spend) while payments or payouts still wait for authority.
Parameters
bookspath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived books
Response fields
idstringrequirednamestringrequiredcurrencystringrequiredpattern
^[A-Z]{3}$auto_org_idstring | nullrequiredThe Auto org whose authority covers spending
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/garden/books/$BOOKS" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_archiveBooks', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_archiveBooks",
"arguments": {
"books": "<books>"
}
}
}Rename books or link them to an Auto org
PATCH/v1/garden/books/{books}
Scope garden:write. Needs If-Match. At least one of name or auto_org_id.
Parameters
bookspath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
auto_org_idstring | nullpattern
^[a-z]{2,4}_[A-Za-z0-9]{1,60}$
Responses
- 200Updated books
Response fields
idstringrequirednamestringrequiredcurrencystringrequiredpattern
^[A-Z]{3}$auto_org_idstring | nullrequiredThe Auto org whose authority covers spending
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/books/$BOOKS" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateBooks', {
books: '<books>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_updateBooks",
"arguments": {
"books": "<books>",
"body": {}
}
}
}Counterparties
List customers and vendors
GET/v1/garden/books/{books}/counterparties
Scope garden:read. kind=customer or kind=vendor also returns counterparties of kind both. Archived ones are hidden unless include_archived=true.
Parameters
bookspath · stringrequiredkindquery · "customer" | "vendor"include_archivedquery · boolean
Responses
- 200Counterparties
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].books_idstringrequireddata[].[].namestringrequireddata[].[].emailstring | nullrequireddata[].[].kind"customer" | "vendor" | "both"requireddata[].[].principalstring | nullrequiredGateway principal, when the counterparty is an agent
data[].[].status"active" | "archived"requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/counterparties" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listCounterparties', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listCounterparties",
"arguments": {
"books": "<books>"
}
}
}Add a customer or vendor
POST/v1/garden/books/{books}/counterparties
Scope garden:write. kind defaults to both. principal names the gateway principal when the counterparty is an agent.
Parameters
bookspath · stringrequired
Request body application/json
namestringrequiredmin length 1 · max length 200
emailstring | null (email)max length 254
kind"customer" | "vendor" | "both"Default both
principalstring | nullmax length 256
Responses
- 201Counterparty created
Response fields
idstringrequiredbooks_idstringrequirednamestringrequiredemailstring | nullrequiredkind"customer" | "vendor" | "both"requiredprincipalstring | nullrequiredGateway principal, when the counterparty is an agent
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/counterparties" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createCounterparty', {
books: '<books>',
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_createCounterparty",
"arguments": {
"books": "<books>",
"body": {
"name": "string"
}
}
}
}Get a customer or vendor
GET/v1/garden/counterparties/{counterparty}
Scope garden:read.
Parameters
counterpartypath · stringrequired
Responses
- 200The counterparty
Response fields
idstringrequiredbooks_idstringrequirednamestringrequiredemailstring | nullrequiredkind"customer" | "vendor" | "both"requiredprincipalstring | nullrequiredGateway principal, when the counterparty is an agent
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/counterparties/$COUNTERPARTY" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getCounterparty', {
counterparty: '<counterparty>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getCounterparty",
"arguments": {
"counterparty": "<counterparty>"
}
}
}Update or archive a customer or vendor
PATCH/v1/garden/counterparties/{counterparty}
Scope garden:write. Needs If-Match. At least one field.
Parameters
counterpartypath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
emailstring | null (email)max length 254
kind"customer" | "vendor" | "both"principalstring | nullmax length 256
status"active" | "archived"
Responses
- 200Updated counterparty
Response fields
idstringrequiredbooks_idstringrequirednamestringrequiredemailstring | nullrequiredkind"customer" | "vendor" | "both"requiredprincipalstring | nullrequiredGateway principal, when the counterparty is an agent
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/counterparties/$COUNTERPARTY" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateCounterparty', {
counterparty: '<counterparty>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_updateCounterparty",
"arguments": {
"counterparty": "<counterparty>",
"body": {}
}
}
}
}Events
Read the books' audit trail, oldest or newest first
GET/v1/garden/books/{books}/events
Scope garden:read. Every change from the hash-chained append-only event log. Oldest first by default: page with after (the last seq you read) and the response carries next_after. With order=desc it reads newest first: page with before (the last seq you read, at least 1) and the response carries next_before. The next cursor is null on the last page.
Parameters
bookspath · stringrequiredorderquery · "asc" | "desc"asc (default, oldest first) or desc (newest first)
afterquery · integerorder=asc: return events with seq above this (default 0)
beforequery · integerorder=desc: return events with seq below this (default: from the newest)
limitquery · integer1-500, default 100
Responses
- 200Events
Response fields
dataobject[]requireddata[].[].seqintegerrequireddata[].[].idstringrequireddata[].[].books_idstringrequireddata[].[].kindstringrequirede.g. books.created, journal.posted, invoice.finalized, payment.succeeded
data[].[].subject_idstringrequireddata[].[].actorstringrequireddata[].[].actor_kindstringrequireddata[].[].summarystringrequireddata[].[].dataanyrequiredFree-form; shape depends on kind
data[].[].request_idstringrequireddata[].[].created_atstring (date-time)requireddata[].[].prev_hashstringrequireddata[].[].hashstringrequirednext_afterinteger | nullorder=asc: pass as after for the next page
next_beforeinteger | nullorder=desc: pass as before for the next page
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/events" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listEvents', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listEvents",
"arguments": {
"books": "<books>"
}
}
}Recompute the books' hash-chained audit trail
GET/v1/garden/books/{books}/events/verify
Scope garden:read.
Parameters
bookspath · stringrequired
Responses
- 200Whether the chain is intact
Response fields
okbooleanrequiredeventsintegerrequiredheadstringChain head hash; present when ok
broken_atintegerseq of the first broken event; present when not ok
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/events/verify" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_verifyEvents', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_verifyEvents",
"arguments": {
"books": "<books>"
}
}
}Invoices
List invoices, newest first
GET/v1/garden/books/{books}/invoices
Scope garden:read.
Parameters
bookspath · stringrequiredstatusquery · "draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"customer_idquery · stringlimitquery · integer1-500, default 100
offsetquery · integer0-100000, default 0
Responses
- 200Invoices
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].books_idstringrequireddata[].[].numberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
data[].[].customer_idstringrequireddata[].[].currencystringrequireddata[].[].issue_datestring (date)requireddata[].[].due_datestring (date)requireddata[].[].memostring | nullrequireddata[].[].linesobject[]requireddata[].[].lines[].[].descriptionstringrequireddata[].[].lines[].[].quantityintegerrequireddata[].[].lines[].[].unit_amountintegerrequireddata[].[].lines[].[].amountintegerrequireddata[].[].lines[].[].account_idstring | nullrequireddata[].[].subtotalintegerrequireddata[].[].taxintegerrequireddata[].[].totalintegerrequireddata[].[].amount_paidintegerrequireddata[].[].amount_written_offintegerrequireddata[].[].amount_dueintegerrequireddata[].[].status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requireddata[].[].journal_entry_idstring | nullrequireddata[].[].created_bystringrequireddata[].[].finalized_atstring | null (date-time)requireddata[].[].paid_atstring | null (date-time)requireddata[].[].voided_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/invoices" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listInvoices', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listInvoices",
"arguments": {
"books": "<books>"
}
}
}Draft an invoice to a customer
POST/v1/garden/books/{books}/invoices
Scope garden:write. Starts as a draft; finalize: true issues it at once (numbers it, e.g. INV-2026-000001, and books the receivable against revenue and sales tax).
Parameters
bookspath · stringrequired
Request body application/json
customer_idstringrequiredissue_datestring (date)requireddue_datestring (date)requiredNot before issue_date
memostring | nullmax length 2000
linesobject[]requiredlines[].[].descriptionstringrequiredmin length 1 · max length 500
lines[].[].quantityintegerDefault 1 min 1 · max 1000000
lines[].[].unit_amountintegerrequiredMinor units min 0
lines[].[].account_idstring | nullRevenue account; default the books' revenue account
taxintegerSales tax in minor units; default 0 min 0
finalizebooleanIssue at once instead of leaving a draft
Responses
- 201Invoice created
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
customer_idstringrequiredcurrencystringrequiredissue_datestring (date)requireddue_datestring (date)requiredmemostring | nullrequiredlinesobject[]requiredlines[].[].descriptionstringrequiredlines[].[].quantityintegerrequiredlines[].[].unit_amountintegerrequiredlines[].[].amountintegerrequiredlines[].[].account_idstring | nullrequiredsubtotalintegerrequiredtaxintegerrequiredtotalintegerrequiredamount_paidintegerrequiredamount_written_offintegerrequiredamount_dueintegerrequiredstatus"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requiredjournal_entry_idstring | nullrequiredcreated_bystringrequiredfinalized_atstring | null (date-time)requiredpaid_atstring | null (date-time)requiredvoided_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/invoices" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "string",
"issue_date": "string",
"due_date": "string",
"lines": [
{
"description": "string",
"unit_amount": 0
}
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createInvoice', {
books: '<books>',
body: {
customer_id: 'string',
issue_date: 'string',
due_date: 'string',
lines: [
{
description: 'string',
unit_amount: 0,
},
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_createInvoice",
"arguments": {
"books": "<books>",
"body": {
"customer_id": "string",
"issue_date": "string",
"due_date": "string",
"lines": [
{
"description": "string",
"unit_amount": 0
}
]
}
}
}
}Get an invoice with the payments received
GET/v1/garden/invoices/{invoice}
Scope garden:read.
Parameters
invoicepath · stringrequired
Responses
- 200The invoice and its receipts
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
customer_idstringrequiredcurrencystringrequiredissue_datestring (date)requireddue_datestring (date)requiredmemostring | nullrequiredlinesobject[]requiredlines[].[].descriptionstringrequiredlines[].[].quantityintegerrequiredlines[].[].unit_amountintegerrequiredlines[].[].amountintegerrequiredlines[].[].account_idstring | nullrequiredsubtotalintegerrequiredtaxintegerrequiredtotalintegerrequiredamount_paidintegerrequiredamount_written_offintegerrequiredamount_dueintegerrequiredstatus"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requiredjournal_entry_idstring | nullrequiredcreated_bystringrequiredfinalized_atstring | null (date-time)requiredpaid_atstring | null (date-time)requiredvoided_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredreceiptsobject[]requiredreceipts[].[].idstringrequiredreceipts[].[].invoice_idstringrequiredreceipts[].[].amountintegerrequiredreceipts[].[].currencystringrequiredreceipts[].[].rail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.receipts[].[].livemodefalserequiredreceipts[].[].received_onstring (date)requiredreceipts[].[].deposit_account_idstringrequiredreceipts[].[].journal_entry_idstringrequiredreceipts[].[].created_bystringrequiredreceipts[].[].created_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/invoices/$INVOICE" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getInvoice', {
invoice: '<invoice>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getInvoice",
"arguments": {
"invoice": "<invoice>"
}
}
}Change a draft invoice
PATCH/v1/garden/invoices/{invoice}
Scope garden:write. Needs If-Match. Only drafts change. At least one field.
Parameters
invoicepath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
customer_idstringissue_datestring (date)due_datestring (date)memostring | nullmax length 2000
linesobject[]lines[].[].descriptionstringrequiredmin length 1 · max length 500
lines[].[].quantityintegerDefault 1 min 1 · max 1000000
lines[].[].unit_amountintegerrequiredMinor units min 0
lines[].[].account_idstring | nullRevenue account; default the books' revenue account
taxintegermin 0
Responses
- 200Updated draft invoice
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
customer_idstringrequiredcurrencystringrequiredissue_datestring (date)requireddue_datestring (date)requiredmemostring | nullrequiredlinesobject[]requiredlines[].[].descriptionstringrequiredlines[].[].quantityintegerrequiredlines[].[].unit_amountintegerrequiredlines[].[].amountintegerrequiredlines[].[].account_idstring | nullrequiredsubtotalintegerrequiredtaxintegerrequiredtotalintegerrequiredamount_paidintegerrequiredamount_written_offintegerrequiredamount_dueintegerrequiredstatus"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requiredjournal_entry_idstring | nullrequiredcreated_bystringrequiredfinalized_atstring | null (date-time)requiredpaid_atstring | null (date-time)requiredvoided_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/invoices/$INVOICE" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateInvoice', {
invoice: '<invoice>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_updateInvoice",
"arguments": {
"invoice": "<invoice>",
"body": {}
}
}
}
}Journal entries
List journal entries, newest first
GET/v1/garden/books/{books}/journal-entries
Scope garden:read.
Parameters
bookspath · stringrequiredstatusquery · "draft" | "posted" | "reversed" | "discarded"fromquery · string (date)First day, YYYY-MM-DD
toquery · string (date)Last day, YYYY-MM-DD
limitquery · integer1-500, default 100
offsetquery · integer0-100000, default 0
Responses
- 200Journal entries
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].books_idstringrequireddata[].[].numberstring | nullrequiredAssigned when posted, e.g. JE-2026-000001
data[].[].entry_datestring (date)requireddata[].[].descriptionstringrequireddata[].[].memostring | nullrequireddata[].[].status"draft" | "posted" | "reversed" | "discarded"requireddata[].[].sourceobject | nullrequiredThe record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries
data[].[].reverses_idstring | nullrequireddata[].[].reversed_by_idstring | nullrequireddata[].[].linesobject[]requireddata[].[].lines[].[].line_nointegerrequireddata[].[].lines[].[].account_idstringrequireddata[].[].lines[].[].debitintegerrequireddata[].[].lines[].[].creditintegerrequireddata[].[].lines[].[].memostring | nullrequireddata[].[].totalintegerrequiredSum of the debits
data[].[].created_bystringrequireddata[].[].posted_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/journal-entries" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listJournalEntries', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listJournalEntries",
"arguments": {
"books": "<books>"
}
}
}Record a balanced journal entry
POST/v1/garden/books/{books}/journal-entries
Scope garden:write. Debits must equal credits, with at least two lines, each with exactly one of debit or credit above zero. post: true posts it at once; otherwise it is a draft. Posting an entry that credits a bank or cash account moves money without asking Auto, so it needs garden:manage (403 otherwise); payments and payouts are the path for agents.
Parameters
bookspath · stringrequired
Request body application/json
entry_datestring (date)requireddescriptionstringrequiredmin length 1 · max length 500
memostring | nullmax length 2000
linesobject[]requiredlines[].[].account_idstringrequiredlines[].[].debitintegermin 0
lines[].[].creditintegermin 0
lines[].[].memostring | nullmax length 500
postbooleanPost at once instead of leaving a draft
Responses
- 201Journal entry created
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when posted, e.g. JE-2026-000001
entry_datestring (date)requireddescriptionstringrequiredmemostring | nullrequiredstatus"draft" | "posted" | "reversed" | "discarded"requiredsourceobject | nullrequiredThe record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries
reverses_idstring | nullrequiredreversed_by_idstring | nullrequiredlinesobject[]requiredlines[].[].line_nointegerrequiredlines[].[].account_idstringrequiredlines[].[].debitintegerrequiredlines[].[].creditintegerrequiredlines[].[].memostring | nullrequiredtotalintegerrequiredSum of the debits
created_bystringrequiredposted_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/journal-entries" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"entry_date": "string",
"description": "string",
"lines": [
{
"account_id": "string"
}
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_createJournalEntry', {
books: '<books>',
body: {
entry_date: 'string',
description: 'string',
lines: [
{
account_id: 'string',
},
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_createJournalEntry",
"arguments": {
"books": "<books>",
"body": {
"entry_date": "string",
"description": "string",
"lines": [
{
"account_id": "string"
}
]
}
}
}
}Get a journal entry with its lines
GET/v1/garden/journal-entries/{entry}
Scope garden:read.
Parameters
entrypath · stringrequired
Responses
- 200The journal entry
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when posted, e.g. JE-2026-000001
entry_datestring (date)requireddescriptionstringrequiredmemostring | nullrequiredstatus"draft" | "posted" | "reversed" | "discarded"requiredsourceobject | nullrequiredThe record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries
reverses_idstring | nullrequiredreversed_by_idstring | nullrequiredlinesobject[]requiredlines[].[].line_nointegerrequiredlines[].[].account_idstringrequiredlines[].[].debitintegerrequiredlines[].[].creditintegerrequiredlines[].[].memostring | nullrequiredtotalintegerrequiredSum of the debits
created_bystringrequiredposted_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/journal-entries/$ENTRY" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getJournalEntry', {
entry: '<entry>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getJournalEntry",
"arguments": {
"entry": "<entry>"
}
}
}Discard a draft journal entry
DELETE/v1/garden/journal-entries/{entry}
Scope garden:write. Needs If-Match. Only drafts can be discarded; the entry stays, with status discarded.
Parameters
entrypath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200The discarded draft
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when posted, e.g. JE-2026-000001
entry_datestring (date)requireddescriptionstringrequiredmemostring | nullrequiredstatus"draft" | "posted" | "reversed" | "discarded"requiredsourceobject | nullrequiredThe record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries
reverses_idstring | nullrequiredreversed_by_idstring | nullrequiredlinesobject[]requiredlines[].[].line_nointegerrequiredlines[].[].account_idstringrequiredlines[].[].debitintegerrequiredlines[].[].creditintegerrequiredlines[].[].memostring | nullrequiredtotalintegerrequiredSum of the debits
created_bystringrequiredposted_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/garden/journal-entries/$ENTRY" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_discardJournalEntry', {
entry: '<entry>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_discardJournalEntry",
"arguments": {
"entry": "<entry>"
}
}
}
}Change a draft journal entry
PATCH/v1/garden/journal-entries/{entry}
Scope garden:write. Needs If-Match. Only drafts change; posted entries are permanent (reverse them instead).
Parameters
entrypath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
entry_datestring (date)descriptionstringmin length 1 · max length 500
memostring | nullmax length 2000
linesobject[]lines[].[].account_idstringrequiredlines[].[].debitintegermin 0
lines[].[].creditintegermin 0
lines[].[].memostring | nullmax length 500
Responses
- 200Updated draft
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when posted, e.g. JE-2026-000001
entry_datestring (date)requireddescriptionstringrequiredmemostring | nullrequiredstatus"draft" | "posted" | "reversed" | "discarded"requiredsourceobject | nullrequiredThe record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries
reverses_idstring | nullrequiredreversed_by_idstring | nullrequiredlinesobject[]requiredlines[].[].line_nointegerrequiredlines[].[].account_idstringrequiredlines[].[].debitintegerrequiredlines[].[].creditintegerrequiredlines[].[].memostring | nullrequiredtotalintegerrequiredSum of the debits
created_bystringrequiredposted_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/garden/journal-entries/$ENTRY" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_updateJournalEntry', {
entry: '<entry>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_updateJournalEntry",
"arguments": {
"entry": "<entry>",
"body": {}
}
}
}
}Payments
List payments, newest first
GET/v1/garden/books/{books}/payments
Scope garden:read.
Parameters
bookspath · stringrequiredstatusquery · "requires_authority" | "succeeded" | "failed" | "cancelled"limitquery · integer1-500, default 100
offsetquery · integer0-100000, default 0
Responses
- 200Payments
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].object"payment" | "payout"requireddata[].[].books_idstringrequireddata[].[].typestringrequireddata[].[].counterparty_idstring | nullrequireddata[].[].amountintegerrequireddata[].[].currencystringrequireddata[].[].from_account_idstringrequireddata[].[].to_account_idstringrequireddata[].[].memostringrequireddata[].[].rail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.data[].[].livemodefalserequireddata[].[].status"requires_authority" | "succeeded" | "failed" | "cancelled"requireddata[].[].authorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
data[].[].failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
data[].[].requested_bystringrequireddata[].[].authorized_bystring | nullrequireddata[].[].journal_entry_idstring | nullrequireddata[].[].settled_atstring | null (date-time)requireddata[].[].cancelled_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/payments" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listPayments', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listPayments",
"arguments": {
"books": "<books>"
}
}
}Pay a vendor
POST/v1/garden/books/{books}/payments
Scope garden:write. Garden asks Auto whether you may spend this. Within your authority it settles at once (201, succeeded); otherwise it waits (202, requires_authority) with Auto's reasons and who can authorize it. Insufficient funds in the from account is a 409 insufficient_funds. Takes an optional Idempotency-Key: a retry returns the first result (200) and never asks Auto twice. Debits the expense account (default operating) and credits the from account (default cash).
Parameters
bookspath · stringrequiredIdempotency-Keyheader · string8-128 letters, digits or
_.:-. A retry with the same key returns the first result (200) and never moves money or asks Auto twice.
Request body application/json
counterparty_idstringrequiredThe vendor
amountintegerrequiredMinor units in the books currency min 1
memostringrequiredmin length 1 · max length 500
from_account_idstringBank or cash account to pay from; default cash
expense_account_idstringExpense, payable or asset account to debit; default operating
rail"manual" | "sandbox"sandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.
Responses
- 200Replayed with the same Idempotency-Key; the first result
Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 201Settled at once within your authority (
succeeded)Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 202Waiting for authority (
requires_authority), with Auto's reasons and who it escalated toResponse fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/payments" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"counterparty_id": "string",
"amount": 1,
"memo": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('garden_createPayment', {
books: '<books>',
body: {
counterparty_id: 'string',
amount: 1,
memo: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_createPayment",
"arguments": {
"books": "<books>",
"body": {
"counterparty_id": "string",
"amount": 1,
"memo": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Record money received against an invoice
POST/v1/garden/invoices/{invoice}/payments
Scope garden:write. Takes an optional Idempotency-Key: a retry with the same key returns the first receipt (200) instead of recording it twice. Debits the deposit account (default cash) and credits the receivable.
Parameters
invoicepath · stringrequiredIdempotency-Keyheader · string8-128 letters, digits or
_.:-. A retry with the same key returns the first result (200) and never moves money or asks Auto twice.
Request body application/json
amountintegerrequiredMinor units; not more than the amount due min 1
rail"manual" | "sandbox"sandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.received_onstring (date)Default today
deposit_account_idstringDefault the cash account
Responses
- 200Replayed with the same Idempotency-Key; the first result
Response fields
invoiceobjectrequiredinvoice.idstringrequiredinvoice.books_idstringrequiredinvoice.numberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
invoice.customer_idstringrequiredinvoice.currencystringrequiredinvoice.issue_datestring (date)requiredinvoice.due_datestring (date)requiredinvoice.memostring | nullrequiredinvoice.linesobject[]requiredinvoice.lines[].[].descriptionstringrequiredinvoice.lines[].[].quantityintegerrequiredinvoice.lines[].[].unit_amountintegerrequiredinvoice.lines[].[].amountintegerrequiredinvoice.lines[].[].account_idstring | nullrequiredinvoice.subtotalintegerrequiredinvoice.taxintegerrequiredinvoice.totalintegerrequiredinvoice.amount_paidintegerrequiredinvoice.amount_written_offintegerrequiredinvoice.amount_dueintegerrequiredinvoice.status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requiredinvoice.journal_entry_idstring | nullrequiredinvoice.created_bystringrequiredinvoice.finalized_atstring | null (date-time)requiredinvoice.paid_atstring | null (date-time)requiredinvoice.voided_atstring | null (date-time)requiredinvoice.versionintegerrequiredinvoice.created_atstring (date-time)requiredinvoice.updated_atstring (date-time)requiredreceiptobjectrequiredreceipt.idstringrequiredreceipt.invoice_idstringrequiredreceipt.amountintegerrequiredreceipt.currencystringrequiredreceipt.rail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.receipt.livemodefalserequiredreceipt.received_onstring (date)requiredreceipt.deposit_account_idstringrequiredreceipt.journal_entry_idstringrequiredreceipt.created_bystringrequiredreceipt.created_atstring (date-time)required
- 201Payment recorded
Response fields
invoiceobjectrequiredinvoice.idstringrequiredinvoice.books_idstringrequiredinvoice.numberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
invoice.customer_idstringrequiredinvoice.currencystringrequiredinvoice.issue_datestring (date)requiredinvoice.due_datestring (date)requiredinvoice.memostring | nullrequiredinvoice.linesobject[]requiredinvoice.lines[].[].descriptionstringrequiredinvoice.lines[].[].quantityintegerrequiredinvoice.lines[].[].unit_amountintegerrequiredinvoice.lines[].[].amountintegerrequiredinvoice.lines[].[].account_idstring | nullrequiredinvoice.subtotalintegerrequiredinvoice.taxintegerrequiredinvoice.totalintegerrequiredinvoice.amount_paidintegerrequiredinvoice.amount_written_offintegerrequiredinvoice.amount_dueintegerrequiredinvoice.status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requiredinvoice.journal_entry_idstring | nullrequiredinvoice.created_bystringrequiredinvoice.finalized_atstring | null (date-time)requiredinvoice.paid_atstring | null (date-time)requiredinvoice.voided_atstring | null (date-time)requiredinvoice.versionintegerrequiredinvoice.created_atstring (date-time)requiredinvoice.updated_atstring (date-time)requiredreceiptobjectrequiredreceipt.idstringrequiredreceipt.invoice_idstringrequiredreceipt.amountintegerrequiredreceipt.currencystringrequiredreceipt.rail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.receipt.livemodefalserequiredreceipt.received_onstring (date)requiredreceipt.deposit_account_idstringrequiredreceipt.journal_entry_idstringrequiredreceipt.created_bystringrequiredreceipt.created_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/invoices/$INVOICE/payments" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 1
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('garden_recordInvoicePayment', {
invoice: '<invoice>',
body: {
amount: 1,
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_recordInvoicePayment",
"arguments": {
"invoice": "<invoice>",
"body": {
"amount": 1
},
"idempotency_key": "<a stable key per change>"
}
}
}Get a payment
GET/v1/garden/payments/{payment}
Scope garden:read.
Parameters
paymentpath · stringrequired
Responses
- 200The payment
Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/payments/$PAYMENT" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getPayment', {
payment: '<payment>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getPayment",
"arguments": {
"payment": "<payment>"
}
}
}Payouts
List payouts, newest first
GET/v1/garden/books/{books}/payouts
Scope garden:read.
Parameters
bookspath · stringrequiredstatusquery · "requires_authority" | "succeeded" | "failed" | "cancelled"limitquery · integer1-500, default 100
offsetquery · integer0-100000, default 0
Responses
- 200Payouts
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].object"payment" | "payout"requireddata[].[].books_idstringrequireddata[].[].typestringrequireddata[].[].counterparty_idstring | nullrequireddata[].[].amountintegerrequireddata[].[].currencystringrequireddata[].[].from_account_idstringrequireddata[].[].to_account_idstringrequireddata[].[].memostringrequireddata[].[].rail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.data[].[].livemodefalserequireddata[].[].status"requires_authority" | "succeeded" | "failed" | "cancelled"requireddata[].[].authorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
data[].[].failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
data[].[].requested_bystringrequireddata[].[].authorized_bystring | nullrequireddata[].[].journal_entry_idstring | nullrequireddata[].[].settled_atstring | null (date-time)requireddata[].[].cancelled_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/payouts" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listPayouts', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listPayouts",
"arguments": {
"books": "<books>"
}
}
}Pay money out of the books
POST/v1/garden/books/{books}/payouts
Scope garden:manage. A distribution, refund, reimbursement, commission, withdrawal, vendor payment or other payout. Asks Auto first, like a payment: 201 when it settled, 202 while it waits for authority, 200 when replayed with the same optional Idempotency-Key. A payout other than a distribution needs to_account_id.
Parameters
bookspath · stringrequiredIdempotency-Keyheader · string8-128 letters, digits or
_.:-. A retry with the same key returns the first result (200) and never moves money or asks Auto twice.
Request body application/json
type"withdrawal" | "distribution" | "refund" | "reimbursement" | "commission" | "vendor_payment" | "other"requiredcounterparty_idstring | nullamountintegerrequiredMinor units in the books currency min 1
memostringrequiredmin length 1 · max length 500
from_account_idstringBank or cash account to pay from; default cash
to_account_idstringAccount the money is booked to; defaults to the distributions account for a distribution and is required otherwise
rail"manual" | "sandbox"sandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.
Responses
- 200Replayed with the same Idempotency-Key; the first result
Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 201Settled at once within your authority (
succeeded)Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 202Waiting for authority (
requires_authority), with Auto's reasons and who it escalated toResponse fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/payouts" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "withdrawal",
"amount": 1,
"memo": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('garden_createPayout', {
books: '<books>',
body: {
type: 'withdrawal',
amount: 1,
memo: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_createPayout",
"arguments": {
"books": "<books>",
"body": {
"type": "withdrawal",
"amount": 1,
"memo": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get a payout
GET/v1/garden/payouts/{payout}
Scope garden:read.
Parameters
payoutpath · stringrequired
Responses
- 200The payout
Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/payouts/$PAYOUT" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getPayout', {
payout: '<payout>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getPayout",
"arguments": {
"payout": "<payout>"
}
}
}Picture
The one financial picture for a person or a Team
GET/v1/garden/books/{books}/picture
Scope garden:read. Books totals and this month; bank balances with garden:bank:summary; wallet holdings with garden:wallets:read. A section the caller cannot see is null and named in omitted. No line items. With unit_id, that Team's (Auto unit's) settled spend this month, sub-Teams included.
Parameters
bookspath · stringrequiredunit_idquery · string
Responses
- 200The picture
Response fields
object"garden_picture"requiredbooks_idstringrequirednamestringcurrencystringrequiredauto_org_idstring | nullas_ofstring (date-time)requiredbooksobjectrequiredbooks.total_assetsintegerbooks.total_liabilitiesintegerbooks.total_equityintegerbooks.this_monthobjectbooks.this_month.fromstringbooks.this_month.tostringbooks.this_month.revenueintegerbooks.this_month.expensesintegerbooks.this_month.net_incomeintegerbanksarray | nullrequiredwalletsarray | nullrequiredomittedstring[]required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/picture" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getPicture', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getPicture",
"arguments": {
"books": "<books>"
}
}
}Reports
Unpaid invoices by how late they are
GET/v1/garden/books/{books}/reports/ar-aging
Scope garden:read. Open and partially paid invoices in buckets current, 1-30, 31-60, 61-90 and over 90 days past due; as_of defaults to today (UTC).
Parameters
bookspath · stringrequiredas_ofquery · string (date)YYYY-MM-DD; default today (UTC)
Responses
- 200Receivables aging
Response fields
books_idstringrequiredcurrencystringrequiredas_ofstring (date)requiredinvoicesobject[]requiredinvoices[].[].invoice_idstringrequiredinvoices[].[].numberstring | nullrequiredinvoices[].[].customer_idstringrequiredinvoices[].[].customer_namestringrequiredinvoices[].[].due_datestring (date)requiredinvoices[].[].days_past_dueintegerrequiredinvoices[].[].amount_dueintegerrequiredinvoices[].[].bucket"current" | "1_30" | "31_60" | "61_90" | "over_90"requiredbucketsobjectrequiredbuckets.currentintegerrequiredbuckets.1_30integerrequiredbuckets.31_60integerrequiredbuckets.61_90integerrequiredbuckets.over_90integerrequiredtotal_dueintegerrequired
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/reports/ar-aging" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getArAging', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getArAging",
"arguments": {
"books": "<books>"
}
}
}Balance sheet as of a date
GET/v1/garden/books/{books}/reports/balance-sheet
Scope garden:read. Assets, liabilities, equity and current earnings; as_of defaults to today (UTC).
Parameters
bookspath · stringrequiredas_ofquery · string (date)YYYY-MM-DD; default today (UTC)
Responses
- 200Balance sheet
Response fields
books_idstringrequiredcurrencystringrequiredas_ofstring (date)requiredassetsobject[]requiredassets[].[].account_idstringrequiredassets[].[].codestringrequiredassets[].[].namestringrequiredassets[].[].subtypestringrequiredassets[].[].balanceintegerrequiredliabilitiesobject[]requiredliabilities[].[].account_idstringrequiredliabilities[].[].codestringrequiredliabilities[].[].namestringrequiredliabilities[].[].subtypestringrequiredliabilities[].[].balanceintegerrequiredequityobject[]requiredequity[].[].account_idstringrequiredequity[].[].codestringrequiredequity[].[].namestringrequiredequity[].[].subtypestringrequiredequity[].[].balanceintegerrequiredcurrent_earningsintegerrequiredtotal_assetsintegerrequiredtotal_liabilitiesintegerrequiredtotal_equityintegerrequiredEquity plus current earnings
balancedbooleanrequired
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/reports/balance-sheet" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getBalanceSheet', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getBalanceSheet",
"arguments": {
"books": "<books>"
}
}
}Profit and loss between two dates
GET/v1/garden/books/{books}/reports/income-statement
Scope garden:read. from and to are required and inclusive.
Parameters
bookspath · stringrequiredfromquery · string (date)requiredFirst day, YYYY-MM-DD
toquery · string (date)requiredLast day, YYYY-MM-DD
Responses
- 200Income statement
Response fields
books_idstringrequiredcurrencystringrequiredfromstring (date)requiredtostring (date)requiredrevenueobject[]requiredrevenue[].[].account_idstringrequiredrevenue[].[].codestringrequiredrevenue[].[].namestringrequiredrevenue[].[].subtypestringrequiredrevenue[].[].balanceintegerrequiredexpensesobject[]requiredexpenses[].[].account_idstringrequiredexpenses[].[].codestringrequiredexpenses[].[].namestringrequiredexpenses[].[].subtypestringrequiredexpenses[].[].balanceintegerrequiredtotal_revenueintegerrequiredtotal_expensesintegerrequirednet_incomeintegerrequiredmargin_bpsinteger | nullrequiredNet margin in basis points; null without revenue
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/reports/income-statement?from=$FROM&to=$TO" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getIncomeStatement', {
books: '<books>',
from: '<from>',
to: '<to>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getIncomeStatement",
"arguments": {
"books": "<books>",
"from": "<from>",
"to": "<to>"
}
}
}Trial balance as of a date
GET/v1/garden/books/{books}/reports/trial-balance
Scope garden:read. as_of defaults to today (UTC). Accounts with no posted activity are left out.
Parameters
bookspath · stringrequiredas_ofquery · string (date)YYYY-MM-DD; default today (UTC)
Responses
- 200Trial balance
Response fields
books_idstringrequiredcurrencystringrequiredas_ofstring (date)requiredaccountsobject[]requiredaccounts[].[].account_idstringrequiredaccounts[].[].codestringrequiredaccounts[].[].namestringrequiredaccounts[].[].type"asset" | "liability" | "equity" | "revenue" | "expense"requiredaccounts[].[].subtypestringrequiredaccounts[].[].debitsintegerrequiredaccounts[].[].creditsintegerrequiredaccounts[].[].balanceintegerrequiredaccounts[].[].debit_balanceintegerrequiredaccounts[].[].credit_balanceintegerrequiredtotal_debitsintegerrequiredtotal_creditsintegerrequiredbalancedbooleanrequired
- 404Not found in your organization
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/reports/trial-balance" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_getTrialBalance', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_getTrialBalance",
"arguments": {
"books": "<books>"
}
}
}Wallets
List the books' wallets
GET/v1/garden/books/{books}/wallets
Scope garden:wallets:read.
Parameters
bookspath · stringrequired
Responses
- 200Wallets
Response fields
dataobject[]requireddata[].[].object"wallet"requireddata[].[].idstringrequireddata[].[].books_idstringrequireddata[].[].chain"eip155:1" | "eip155:8453" | "solana:mainnet"requireddata[].[].addressstringrequireddata[].[].labelstring | nulldata[].[].ens_namestring | nulldata[].[].source"watch" | "self_custody" | "onepay"requireddata[].[].verifiedbooleanrequireddata[].[].created_bystringdata[].[].created_atstring (date-time)data[].[].updated_atstring (date-time)
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/books/$BOOKS/wallets" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_listWallets', {
books: '<books>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_listWallets",
"arguments": {
"books": "<books>"
}
}
}Add a wallet (a public address; never a key)
POST/v1/garden/books/{books}/wallets
Scope garden:wallets:link. watch (default) for an address you only want to see; self_custody or onepay with a proof need the person's own session. Any key, seed or mnemonic in the body is refused (403).
Parameters
bookspath · stringrequired
Request body application/json
chain"eip155:1" | "eip155:8453" | "solana:mainnet"requiredaddressstringrequiredlabelstring | nullmax length 60
source"watch" | "self_custody" | "onepay"default
"watch"ens_namestring | nullproofobjectproof.kind"siwe" | "siws" | "onepay_link"requiredproof.verified_atstring (date-time)required
Responses
- 201The wallet
Response fields
object"wallet"requiredidstringrequiredbooks_idstringrequiredchain"eip155:1" | "eip155:8453" | "solana:mainnet"requiredaddressstringrequiredlabelstring | nullens_namestring | nullsource"watch" | "self_custody" | "onepay"requiredverifiedbooleanrequiredcreated_bystringcreated_atstring (date-time)updated_atstring (date-time)
- 403Missing scope, or the act is the person's own (their session) and the caller is a key, an M2M token or an agent
- 404Not found in your organization
- 409A spent or expired session, a connection that is not active, archived books, or too many wallets
- 422Invalid body or query; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/books/$BOOKS/wallets" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain": "eip155:1",
"address": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_addWallet', {
books: '<books>',
body: {
chain: 'eip155:1',
address: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_addWallet",
"arguments": {
"books": "<books>",
"body": {
"chain": "eip155:1",
"address": "string"
}
}
}
}Remove a wallet now
DELETE/v1/garden/wallets/{wallet}
Scope garden:wallets:link. Immediate, no approval.
Parameters
walletpath · stringrequired
Responses
- 200Removed
Response fields
removedbooleanrequiredidstringrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/garden/wallets/$WALLET" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_removeWallet', {
wallet: '<wallet>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_removeWallet",
"arguments": {
"wallet": "<wallet>"
}
}
}Finalize
Issue a draft invoice
POST/v1/garden/invoices/{invoice}/finalize
Scope garden:write. Needs If-Match. Numbers the invoice and books the receivable; the invoice becomes open.
Parameters
invoicepath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200The open invoice
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
customer_idstringrequiredcurrencystringrequiredissue_datestring (date)requireddue_datestring (date)requiredmemostring | nullrequiredlinesobject[]requiredlines[].[].descriptionstringrequiredlines[].[].quantityintegerrequiredlines[].[].unit_amountintegerrequiredlines[].[].amountintegerrequiredlines[].[].account_idstring | nullrequiredsubtotalintegerrequiredtaxintegerrequiredtotalintegerrequiredamount_paidintegerrequiredamount_written_offintegerrequiredamount_dueintegerrequiredstatus"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requiredjournal_entry_idstring | nullrequiredcreated_bystringrequiredfinalized_atstring | null (date-time)requiredpaid_atstring | null (date-time)requiredvoided_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/invoices/$INVOICE/finalize" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_finalizeInvoice', {
invoice: '<invoice>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_finalizeInvoice",
"arguments": {
"invoice": "<invoice>"
}
}
}Uncollectible
Write off an unpaid invoice as uncollectible
POST/v1/garden/invoices/{invoice}/uncollectible
Scope garden:write. Needs If-Match. Writes the amount due off to bad debt (expense_account_id, default the bad-debt account); the invoice becomes uncollectible.
Parameters
invoicepath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
reasonstring | nullmax length 500
expense_account_idstringDefault the bad-debt account
Responses
- 200The uncollectible invoice
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
customer_idstringrequiredcurrencystringrequiredissue_datestring (date)requireddue_datestring (date)requiredmemostring | nullrequiredlinesobject[]requiredlines[].[].descriptionstringrequiredlines[].[].quantityintegerrequiredlines[].[].unit_amountintegerrequiredlines[].[].amountintegerrequiredlines[].[].account_idstring | nullrequiredsubtotalintegerrequiredtaxintegerrequiredtotalintegerrequiredamount_paidintegerrequiredamount_written_offintegerrequiredamount_dueintegerrequiredstatus"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requiredjournal_entry_idstring | nullrequiredcreated_bystringrequiredfinalized_atstring | null (date-time)requiredpaid_atstring | null (date-time)requiredvoided_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/invoices/$INVOICE/uncollectible" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_markInvoiceUncollectible', {
invoice: '<invoice>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "garden_markInvoiceUncollectible",
"arguments": {
"invoice": "<invoice>",
"body": {}
}
}
}
}Void
Void a draft, or an open invoice with no payments
POST/v1/garden/invoices/{invoice}/void
Scope garden:write. Needs If-Match. An open invoice's receivable is reversed.
Parameters
invoicepath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
reasonstring | nullmax length 500
Responses
- 200The void invoice
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when finalized, e.g. INV-2026-000001
customer_idstringrequiredcurrencystringrequiredissue_datestring (date)requireddue_datestring (date)requiredmemostring | nullrequiredlinesobject[]requiredlines[].[].descriptionstringrequiredlines[].[].quantityintegerrequiredlines[].[].unit_amountintegerrequiredlines[].[].amountintegerrequiredlines[].[].account_idstring | nullrequiredsubtotalintegerrequiredtaxintegerrequiredtotalintegerrequiredamount_paidintegerrequiredamount_written_offintegerrequiredamount_dueintegerrequiredstatus"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"requiredjournal_entry_idstring | nullrequiredcreated_bystringrequiredfinalized_atstring | null (date-time)requiredpaid_atstring | null (date-time)requiredvoided_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/invoices/$INVOICE/void" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_voidInvoice', {
invoice: '<invoice>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_voidInvoice",
"arguments": {
"invoice": "<invoice>",
"body": {}
}
}
}Post
Post a draft journal entry
POST/v1/garden/journal-entries/{entry}/post
Scope garden:write. Needs If-Match. Posted entries never change; reverse them instead. Posting a draft that credits a bank or cash account needs garden:manage (403 otherwise).
Parameters
entrypath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200The posted entry
Response fields
idstringrequiredbooks_idstringrequirednumberstring | nullrequiredAssigned when posted, e.g. JE-2026-000001
entry_datestring (date)requireddescriptionstringrequiredmemostring | nullrequiredstatus"draft" | "posted" | "reversed" | "discarded"requiredsourceobject | nullrequiredThe record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries
reverses_idstring | nullrequiredreversed_by_idstring | nullrequiredlinesobject[]requiredlines[].[].line_nointegerrequiredlines[].[].account_idstringrequiredlines[].[].debitintegerrequiredlines[].[].creditintegerrequiredlines[].[].memostring | nullrequiredtotalintegerrequiredSum of the debits
created_bystringrequiredposted_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/journal-entries/$ENTRY/post" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_postJournalEntry', {
entry: '<entry>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_postJournalEntry",
"arguments": {
"entry": "<entry>"
}
}
}Reverse
Reverse a posted manual journal entry
POST/v1/garden/journal-entries/{entry}/reverse
Scope garden:write. Posts a mirror-image entry and marks the original reversed. Entries that invoices, receipts, payments or payouts posted are reversed through those records instead (409). A reversal that credits a bank or cash account needs garden:manage (403 otherwise).
Parameters
entrypath · stringrequired
Request body application/json
entry_datestring (date)Default today
reasonstring | nullmax length 500
Responses
- 201The reversed entry and its reversal
Response fields
reversedobjectrequiredreversed.idstringrequiredreversed.books_idstringrequiredreversed.numberstring | nullrequiredAssigned when posted, e.g. JE-2026-000001
reversed.entry_datestring (date)requiredreversed.descriptionstringrequiredreversed.memostring | nullrequiredreversed.status"draft" | "posted" | "reversed" | "discarded"requiredreversed.sourceobject | nullrequiredThe record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries
reversed.reverses_idstring | nullrequiredreversed.reversed_by_idstring | nullrequiredreversed.linesobject[]requiredreversed.lines[].[].line_nointegerrequiredreversed.lines[].[].account_idstringrequiredreversed.lines[].[].debitintegerrequiredreversed.lines[].[].creditintegerrequiredreversed.lines[].[].memostring | nullrequiredreversed.totalintegerrequiredSum of the debits
reversed.created_bystringrequiredreversed.posted_atstring | null (date-time)requiredreversed.versionintegerrequiredreversed.created_atstring (date-time)requiredreversed.updated_atstring (date-time)requiredreversalobjectrequiredreversal.idstringrequiredreversal.books_idstringrequiredreversal.numberstring | nullrequiredAssigned when posted, e.g. JE-2026-000001
reversal.entry_datestring (date)requiredreversal.descriptionstringrequiredreversal.memostring | nullrequiredreversal.status"draft" | "posted" | "reversed" | "discarded"requiredreversal.sourceobject | nullrequiredThe record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries
reversal.reverses_idstring | nullrequiredreversal.reversed_by_idstring | nullrequiredreversal.linesobject[]requiredreversal.lines[].[].line_nointegerrequiredreversal.lines[].[].account_idstringrequiredreversal.lines[].[].debitintegerrequiredreversal.lines[].[].creditintegerrequiredreversal.lines[].[].memostring | nullrequiredreversal.totalintegerrequiredSum of the debits
reversal.created_bystringrequiredreversal.posted_atstring | null (date-time)requiredreversal.versionintegerrequiredreversal.created_atstring (date-time)requiredreversal.updated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/journal-entries/$ENTRY/reverse" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_reverseJournalEntry', {
entry: '<entry>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_reverseJournalEntry",
"arguments": {
"entry": "<entry>",
"body": {}
}
}
}Authorize
Ask Auto again, as you, for a payment waiting for authority
POST/v1/garden/payments/{payment}/authorize
Scope garden:write. Call it as the principal Auto's denial escalated to. 200 when it settled, or failed on insufficient funds (failure); 202 while it still waits for authority.
Parameters
paymentpath · stringrequired
Responses
- 200The payment or payout after the call
Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 202Waiting for authority (
requires_authority), with Auto's reasons and who it escalated toResponse fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/payments/$PAYMENT/authorize" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_authorizePayment', {
payment: '<payment>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_authorizePayment",
"arguments": {
"payment": "<payment>"
}
}
}Ask Auto again, as you, for a payout waiting for authority
POST/v1/garden/payouts/{payout}/authorize
Scope garden:manage. 200 when it settled (or failed); 202 while it still waits for authority.
Parameters
payoutpath · stringrequired
Responses
- 200The payment or payout after the call
Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 202Waiting for authority (
requires_authority), with Auto's reasons and who it escalated toResponse fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/payouts/$PAYOUT/authorize" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_authorizePayout', {
payout: '<payout>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_authorizePayout",
"arguments": {
"payout": "<payout>"
}
}
}Cancel
Cancel a payment waiting for authority
POST/v1/garden/payments/{payment}/cancel
Scope garden:write. Only a payment in requires_authority can be cancelled.
Parameters
paymentpath · stringrequired
Request body application/json
reasonstring | nullmax length 500
Responses
- 200The payment or payout after the call
Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/payments/$PAYMENT/cancel" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_cancelPayment', {
payment: '<payment>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_cancelPayment",
"arguments": {
"payment": "<payment>",
"body": {}
}
}
}Cancel a payout waiting for authority
POST/v1/garden/payouts/{payout}/cancel
Scope garden:manage. Only a payout in requires_authority can be cancelled.
Parameters
payoutpath · stringrequired
Request body application/json
reasonstring | nullmax length 500
Responses
- 200The payment or payout after the call
Response fields
idstringrequiredobject"payment" | "payout"requiredbooks_idstringrequiredtypestringrequiredcounterparty_idstring | nullrequiredamountintegerrequiredcurrencystringrequiredfrom_account_idstringrequiredto_account_idstringrequiredmemostringrequiredrail"manual" | "sandbox"requiredsandboxsettles inside Garden in test mode;manualrecords money already moved outside Garden. Live rails are off.livemodefalserequiredstatus"requires_authority" | "succeeded" | "failed" | "cancelled"requiredauthorityanyrequiredAuto's latest authority check: outcome, reasons, escalate_to, check_id
failureanyrequiredWhy it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise
requested_bystringrequiredauthorized_bystring | nullrequiredjournal_entry_idstring | nullrequiredsettled_atstring | null (date-time)requiredcancelled_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 404Not found in your organization
- 409Stale version, archived books or account, unbalanced or non-draft entry, a move the record's state does not allow, or insufficient funds
- 422Invalid body, query, If-Match or Idempotency-Key; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/payouts/$PAYOUT/cancel" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_cancelPayout', {
payout: '<payout>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_cancelPayout",
"arguments": {
"payout": "<payout>",
"body": {}
}
}
}Whoami
Show the identity Garden sees for your credential
GET/v1/garden/whoami
Scope garden:read.
Responses
- 200Org, principal, principal kind and scopes as the gateway signed them
Response fields
orgstringrequiredprincipalstringrequiredkind"api_key" | "m2m_token" | "bridge_session"requiredscopesstring[]required
- 403Missing scope (payouts, archiving books and journal entries that credit bank or cash need garden:manage)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/garden/whoami" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('garden_whoami'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "garden_whoami",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support