OneOS Docs
Genesis 0.3.1 Console

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:link garden:bank:read garden:bank:summary garden:manage garden:read garden:wallets:link garden:wallets:read garden:write
API keys
45 tested with an API key
SDK
genesis.call('garden_getAccount', …) · helpers under genesis.garden
CLI
genesis garden
MCP
60 tools; the other 41 through genesis_call

Operations

OperationEndpointAPI key
Get an account with its posted balanceGET/accounts/{account}Tested with an API key
Rename or archive an accountPATCH/accounts/{account}Tested with an API key
Get a bank connectionGET/bank/connections/{connection}—
Disconnect a bank nowDELETE/bank/connections/{connection}—
Read new transactions from the bank nowPOST/bank/connections/{connection}/sync—
Get a bank feedGET/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 feedPOST/bank/feeds/{feed}/imports—
Put a bank account in a space; mark it mixedPOST/bank/feeds/{feed}/space—
Get a flagGET/bank/flags/{id}—
Dismiss or resolve a flag (If-Match)PATCH/bank/flags/{id}—
Get a receipt linkGET/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 spaceDELETE/bank/spaces/{space}—
Rename a Business space (If-Match)PATCH/bank/spaces/{space}—
Get a bank transactionGET/bank/transactions/{id}—
Correct a transaction's category (If-Match)PATCH/bank/transactions/{id}—
Put a wallet in a spacePOST/bank/wallets/{wallet}/space—
Get a bank account with its live balanceGET/banking/accounts/{account}—
List the account's cardsGET/banking/accounts/{account}/cards—
Issue a virtual debit card with a spend limitPOST/banking/accounts/{account}/cards—
Close a bank accountPOST/banking/accounts/{account}/close—
Move a pending account on once its onboarding is donePOST/banking/accounts/{account}/continue—
Sandbox: an inbound ACH transfer into the accountPOST/banking/accounts/{account}/simulate/inbound-transfer—
Sandbox: submit the account holder's onboarding formPOST/banking/accounts/{account}/simulate/onboarding—
Posted and pending transactions, newest firstGET/banking/accounts/{account}/transactions—
Get a cardGET/banking/cards/{card}—
Close a card (final)POST/banking/cards/{card}/close—
Show the card number in Increase's own pagePOST/banking/cards/{card}/details-iframe—
Freeze a cardPOST/banking/cards/{card}/freeze—
Sandbox: a purchase on the cardPOST/banking/cards/{card}/simulate/purchase—
Unfreeze a cardPOST/banking/cards/{card}/unfreeze—
Open a business bank account (Increase) for a company you own, making its books if it has nonePOST/banking/companies/{org}/accounts—
List your organization's booksGET/booksTested with an API key
Open books in one currencyPOST/booksTested with an API key
Get one set of booksGET/books/{books}Tested with an API key
Archive booksDELETE/books/{books}Tested with an API key
Rename books or link them to an Auto orgPATCH/books/{books}Tested with an API key
List the chart of accounts with posted balancesGET/books/{books}/accountsTested with an API key
Add an account to the chartPOST/books/{books}/accountsTested with an API key
List the books' bank connectionsGET/books/{books}/bank/connections—
Hand Garden the enrollment Teller Connect returnedPOST/books/{books}/bank/connections/teller—
Open a single-use Teller Connect session for these booksPOST/books/{books}/bank/connections/teller/sessions—
List the books' bank feedsGET/books/{books}/bank/feeds—
Make a bank feed for statement uploadPOST/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 chargesGET/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 purchasePOST/books/{books}/bank/receipts—
Recurring charges (subscriptions and bills) with monthly totalsGET/books/{books}/bank/recurring—
The money spaces (Personal and each Business) with their accounts and this month's totalsGET/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 vendorGET/books/{books}/bank/summary—
List bank transactions (filter by feed, category, status, dates)GET/books/{books}/bank/transactions—
Confirm transactions into the booksPOST/books/{books}/bank/transactions/confirm—
Tag up to 200 transactions with a space (a mixed account), or clear the tagPOST/books/{books}/bank/transactions/space—
List your bank accounts in these booksGET/books/{books}/banking/accounts—
Open a bank account (Increase) for the person or a company they ownPOST/books/{books}/banking/accounts—
List customers and vendorsGET/books/{books}/counterpartiesTested with an API key
Add a customer or vendorPOST/books/{books}/counterpartiesTested with an API key
Read the books' audit trail, oldest or newest firstGET/books/{books}/eventsTested with an API key
Recompute the books' hash-chained audit trailGET/books/{books}/events/verifyTested with an API key
List invoices, newest firstGET/books/{books}/invoicesTested with an API key
Draft an invoice to a customerPOST/books/{books}/invoicesTested with an API key
List journal entries, newest firstGET/books/{books}/journal-entriesTested with an API key
Record a balanced journal entryPOST/books/{books}/journal-entriesTested with an API key
List payments, newest firstGET/books/{books}/paymentsTested with an API key
Pay a vendorPOST/books/{books}/paymentsTested with an API key
List payouts, newest firstGET/books/{books}/payoutsTested with an API key
Pay money out of the booksPOST/books/{books}/payoutsTested with an API key
The one financial picture for a person or a TeamGET/books/{books}/picture—
Unpaid invoices by how late they areGET/books/{books}/reports/ar-agingTested with an API key
Balance sheet as of a dateGET/books/{books}/reports/balance-sheetTested with an API key
Profit and loss between two datesGET/books/{books}/reports/income-statementTested with an API key
Trial balance as of a dateGET/books/{books}/reports/trial-balanceTested with an API key
List the books' walletsGET/books/{books}/wallets—
Add a wallet (a public address; never a key)POST/books/{books}/wallets—
Get a customer or vendorGET/counterparties/{counterparty}Tested with an API key
Update or archive a customer or vendorPATCH/counterparties/{counterparty}Tested with an API key
Get an invoice with the payments receivedGET/invoices/{invoice}Tested with an API key
Change a draft invoicePATCH/invoices/{invoice}Tested with an API key
Issue a draft invoicePOST/invoices/{invoice}/finalizeTested with an API key
Record money received against an invoicePOST/invoices/{invoice}/paymentsTested with an API key
Write off an unpaid invoice as uncollectiblePOST/invoices/{invoice}/uncollectibleTested with an API key
Void a draft, or an open invoice with no paymentsPOST/invoices/{invoice}/voidTested with an API key
Get a journal entry with its linesGET/journal-entries/{entry}Tested with an API key
Discard a draft journal entryDELETE/journal-entries/{entry}Tested with an API key
Change a draft journal entryPATCH/journal-entries/{entry}Tested with an API key
Post a draft journal entryPOST/journal-entries/{entry}/postTested with an API key
Reverse a posted manual journal entryPOST/journal-entries/{entry}/reverseTested with an API key
Get a paymentGET/payments/{payment}Tested with an API key
Ask Auto again, as you, for a payment waiting for authorityPOST/payments/{payment}/authorizeTested with an API key
Cancel a payment waiting for authorityPOST/payments/{payment}/cancelTested with an API key
Get a payoutGET/payouts/{payout}Tested with an API key
Ask Auto again, as you, for a payout waiting for authorityPOST/payouts/{payout}/authorizeTested with an API key
Cancel a payout waiting for authorityPOST/payouts/{payout}/cancelTested with an API key
Remove a wallet nowDELETE/wallets/{wallet}—
Show the identity Garden sees for your credentialGET/whoamiTested with an API key

Accounts

Get an account with its posted balance

GET/v1/garden/accounts/{account}

garden:readTested with an API keygarden_getAccount

Scope garden:read.

Parameters

  • accountpath · stringrequired

Responses

  • 200The account
    Response fields
    • idstringrequired
    • books_idstringrequired
    • codestringrequired
    • namestringrequired
    • type"asset" | "liability" | "equity" | "revenue" | "expense"required
    • subtypestringrequired
    • normal_balance"debit" | "credit"required
    • status"active" | "archived"required
    • balanceinteger

      Posted balance in minor units, in the account's normal direction

    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Rename or archive an account

PATCH/v1/garden/accounts/{account}

garden:writeTested with an API keygarden_updateAccount

Scope garden:write. Needs If-Match. Archiving needs a zero balance (409 nonzero_balance otherwise).

Parameters

  • accountpath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • namestring

    min length 1 · max length 200

  • status"active" | "archived"

Responses

  • 200Updated account
    Response fields
    • idstringrequired
    • books_idstringrequired
    • codestringrequired
    • namestringrequired
    • type"asset" | "liability" | "equity" | "revenue" | "expense"required
    • subtypestringrequired
    • normal_balance"debit" | "credit"required
    • status"active" | "archived"required
    • balanceinteger

      Posted balance in minor units, in the account's normal direction

    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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 '{}'

List the chart of accounts with posted balances

GET/v1/garden/books/{books}/accounts

garden:readTested with an API keygarden_listAccounts

Scope garden:read. Ordered by code. Archived accounts are hidden unless include_archived=true.

Parameters

  • bookspath · stringrequired
  • include_archivedquery · boolean

Responses

  • 200Accounts
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].books_idstringrequired
    • data[].[].codestringrequired
    • data[].[].namestringrequired
    • data[].[].type"asset" | "liability" | "equity" | "revenue" | "expense"required
    • data[].[].subtypestringrequired
    • data[].[].normal_balance"debit" | "credit"required
    • data[].[].status"active" | "archived"required
    • data[].[].balanceinteger

      Posted balance in minor units, in the account's normal direction

    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].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"

Add an account to the chart

POST/v1/garden/books/{books}/accounts

garden:writeTested with an API keygarden_createAccount

Scope garden:write. subtype must fit the type and defaults to other.

Parameters

  • bookspath · stringrequired

Request body application/json

  • codestringrequired

    pattern ^[A-Za-z0-9.-]{1,20}$

  • namestringrequired

    min length 1 · max length 200

  • type"asset" | "liability" | "equity" | "revenue" | "expense"required
  • subtype"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
    • idstringrequired
    • books_idstringrequired
    • codestringrequired
    • namestringrequired
    • type"asset" | "liability" | "equity" | "revenue" | "expense"required
    • subtypestringrequired
    • normal_balance"debit" | "credit"required
    • status"active" | "archived"required
    • balanceinteger

      Posted balance in minor units, in the account's normal direction

    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"
  }'

Bank

Get a bank connection

GET/v1/garden/bank/connections/{connection}

garden:bank:summarygarden_getBankConnection

Scope garden:bank:summary.

Parameters

  • connectionpath · stringrequired

Responses

  • 200The connection
    Response fields
    • object"bank_connection"required
    • idstringrequired
    • books_idstringrequired
    • provider"teller"required
    • environment"sandbox" | "development" | "production"required
    • institution_namestring | null
    • status"active" | "needs_reconnect" | "disconnected"required
    • accountsintegerrequired
    • consentobject
    • last_synced_atstring | null (date-time)
    • disconnected_atstring | null (date-time)
    • versioninteger
    • created_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"

Disconnect a bank now

DELETE/v1/garden/bank/connections/{connection}

garden:bank:linkgarden_disconnectBankConnection

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 · stringrequired
  • modequery · "keep_confirmed" | "all"

Responses

  • 200What was removed
    Response fields
    • connectionobjectrequired
    • connection.object"bank_connection"required
    • connection.idstringrequired
    • connection.books_idstringrequired
    • connection.provider"teller"required
    • connection.environment"sandbox" | "development" | "production"required
    • connection.institution_namestring | null
    • connection.status"active" | "needs_reconnect" | "disconnected"required
    • connection.accountsintegerrequired
    • connection.consentobject
    • connection.last_synced_atstring | null (date-time)
    • connection.disconnected_atstring | null (date-time)
    • connection.versioninteger
    • connection.created_atstring (date-time)
    • connection.updated_atstring (date-time)
    • teller_deletedbooleanrequired
    • mode"keep_confirmed" | "all"required
    • deletedobjectrequired
    • deleted.transactionsinteger
    • deleted.flagsinteger
    • deleted.importsinteger
    • kept_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"

Read new transactions from the bank now

POST/v1/garden/bank/connections/{connection}/sync

garden:bank:linkgarden_syncBankConnection

Scope garden:bank:link. A connection the bank ended answers with status needs_reconnect.

Parameters

  • connectionpath · stringrequired

Responses

  • 200Counts
    Response fields
    • accountsintegerrequired
    • seenintegerrequired
    • addedintegerrequired
    • updatedintegerrequired
    • status"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"

Get a bank feed

GET/v1/garden/bank/feeds/{feed}

garden:bank:readgarden_getBankFeed

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"

Disconnect a bank feed now (keep_confirmed or all)

DELETE/v1/garden/bank/feeds/{feed}

garden:bank:linkgarden_disconnectBankFeed

Scope garden:bank:link.

Parameters

  • feedpath · stringrequired
  • modequery · 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 a statement (CSV, OFX or rows) into a feed

POST/v1/garden/bank/feeds/{feed}/imports

garden:bank:linkgarden_importBankStatement

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 '{}'

Put a bank account in a space; mark it mixed

POST/v1/garden/bank/feeds/{feed}/space

garden:bank:linkgarden_setBankFeedSpace

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 '{}'

Get a flag

GET/v1/garden/bank/flags/{id}

garden:bank:readgarden_getBankFlag

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"

Dismiss or resolve a flag (If-Match)

PATCH/v1/garden/bank/flags/{id}

garden:bank:linkgarden_updateBankFlag

Scope garden:bank:link.

Parameters

  • idpath · stringrequired
  • If-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 '{}'

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

garden:bank:linkgarden_linkBankReceipt

Scope garden:bank:link.

Parameters

  • idpath · stringrequired

Request body application/json

  • transaction_idstringrequired

    The id of the purchase to attach the receipt to (btx_... or bt_...), as garden_listBankTransactions or garden_listMissingReceipts returned it max length 64

  • amountinteger

    The 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"
  }'

Delete an empty Business space

DELETE/v1/garden/bank/spaces/{space}

garden:bank:linkgarden_deleteBankSpace

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"

Rename a Business space (If-Match)

PATCH/v1/garden/bank/spaces/{space}

garden:bank:linkgarden_updateBankSpace

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 · stringrequired
  • If-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 '{}'

Get a bank transaction

GET/v1/garden/bank/transactions/{id}

garden:bank:readgarden_getBankTransaction

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"

Correct a transaction's category (If-Match)

PATCH/v1/garden/bank/transactions/{id}

garden:bank:linkgarden_updateBankTransaction

Scope garden:bank:link.

Parameters

  • idpath · stringrequired
  • If-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 '{}'

Put a wallet in a space

POST/v1/garden/bank/wallets/{wallet}/space

garden:bank:linkgarden_setWalletSpace

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 '{}'

List the books' bank connections

GET/v1/garden/books/{books}/bank/connections

garden:bank:summarygarden_listBankConnections

Scope garden:bank:summary (implied by garden:bank:read). No tokens, no line items.

Parameters

  • bookspath · stringrequired

Responses

  • 200Connections
    Response fields
    • dataobject[]required
    • data[].[].object"bank_connection"required
    • data[].[].idstringrequired
    • data[].[].books_idstringrequired
    • data[].[].provider"teller"required
    • data[].[].environment"sandbox" | "development" | "production"required
    • data[].[].institution_namestring | null
    • data[].[].status"active" | "needs_reconnect" | "disconnected"required
    • data[].[].accountsintegerrequired
    • data[].[].consentobject
    • data[].[].last_synced_atstring | null (date-time)
    • data[].[].disconnected_atstring | null (date-time)
    • data[].[].versioninteger
    • data[].[].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"

Hand Garden the enrollment Teller Connect returned

POST/v1/garden/books/{books}/bank/connections/teller

garden:bank:linkgarden_enrollTellerConnection

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_idstringrequired
  • noncestringrequired
  • access_tokenstringrequired

    From Teller Connect onSuccess; sealed by Garden and never returned.

  • user_idstringrequired
  • enrollment_idstringrequired
  • signaturesstring[]required
  • institution_namestring | null

Responses

  • 201The connection
    Response fields
    • object"bank_connection"required
    • idstringrequired
    • books_idstringrequired
    • provider"teller"required
    • environment"sandbox" | "development" | "production"required
    • institution_namestring | null
    • status"active" | "needs_reconnect" | "disconnected"required
    • accountsintegerrequired
    • consentobject
    • last_synced_atstring | null (date-time)
    • disconnected_atstring | null (date-time)
    • versioninteger
    • created_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"
    ]
  }'

Open a single-use Teller Connect session for these books

POST/v1/garden/books/{books}/bank/connections/teller/sessions

garden:bank:linkgarden_createTellerConnectSession

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"required
    • idstringrequired
    • provider"teller"required
    • application_idstringrequired
    • environment"sandbox" | "development" | "production"required
    • products"balance" | "transactions"[]required
    • select_account"multiple"required
    • noncestringrequired
    • expires_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"

List the books' bank feeds

GET/v1/garden/books/{books}/bank/feeds

garden:bank:readgarden_listBankFeeds

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"

Make a bank feed for statement upload

POST/v1/garden/books/{books}/bank/feeds

garden:bank:linkgarden_createBankFeed

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 '{}'

List oddity flags (duplicates, jumps, new vendors)

GET/v1/garden/books/{books}/bank/flags

garden:bank:readgarden_listBankFlags

Scope garden:bank:read.

Parameters

  • bookspath · stringrequired
  • statusquery · string
  • limitquery · integer
  • offsetquery · 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"

A month's spending against the month before, by category and merchant, with unusual charges

GET/v1/garden/books/{books}/bank/insights

garden:bank:readgarden_getBankInsights

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 · stringrequired
  • monthquery · string

    YYYY-MM (default the current month; within the last 13 months)

  • spacequery · string

    Narrow to one space (personal, spc_..., unassigned, untagged)

Responses

curl "https://os.one.ml/api/v1/garden/books/$BOOKS/bank/insights" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Match the receipts already on file to purchases again (finds no new receipt; add one first)

POST/v1/garden/books/{books}/bank/match

garden:bank:linkgarden_matchBankReceipts

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 '{}'

Purchases still missing a receipt, with the total and the dates counted (Money's Receipts list)

GET/v1/garden/books/{books}/bank/missing-receipts

garden:bank:readgarden_listMissingReceipts

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 · stringrequired
  • min_amountquery · integer

    Smallest purchase to list, in minor units (cents): 7500 = $75.00. Default 7500; at least 1

  • older_than_daysquery · integer

    Days 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 · integer

    How 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 · integer

    Most transactions to return on this page, 1-500. Default 100. The total in the answer counts all of them, whatever the page

  • offsetquery · integer

    Transactions 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[]required

      This page of purchases

    • totalintegerrequired

      How many purchases are missing a receipt in all, whatever the page

    • countedobjectrequired

      What this answer counted, in dates

    • counted.fromstring (date)required

      First day counted (newer_than_days before as_of)

    • counted.tostring (date)required

      Last day counted (older_than_days before as_of)

    • counted.min_amountintegerrequired

      Smallest purchase counted, in minor units (cents)

    • counted.not_yet_missing_daysintegerrequired

      Days 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"

List the receipts Garden holds (each with its id, vendor, total and date)

GET/v1/garden/books/{books}/bank/receipts

garden:bank:readgarden_listBankReceipts

Scope garden:bank:read.

Parameters

  • bookspath · stringrequired
  • unmatchedquery · boolean

    true lists only receipts not yet attached to a purchase

  • limitquery · integer
  • offsetquery · 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"

Put a receipt on file (vendor, total, date) so it can be matched to a purchase

POST/v1/garden/books/{books}/bank/receipts

garden:bank:linkgarden_addBankReceipt

Scope garden:bank:link.

Parameters

  • bookspath · stringrequired

Request body application/json

  • vendorstringrequired

    Who the receipt is from, as printed on it max length 200

  • totalintegerrequired

    The receipt total in minor units (cents): 50000 = $500.00 min 1

  • taxinteger

    Tax on the receipt, in minor units (cents). Leave out when not shown min 0

  • currencystring

    Three-letter currency code. Default USD

  • receipt_datestring (date)required

    The date on the receipt (YYYY-MM-DD)

  • last4string

    The 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_idstring

    The 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[].[].descriptionstringrequired

    max length 200

  • line_items[].[].amountintegerrequired

    The 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"
  }'

Recurring charges (subscriptions and bills) with monthly totals

GET/v1/garden/books/{books}/bank/recurring

garden:bank:readgarden_listBankRecurring

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 · stringrequired
  • spacequery · string

    Narrow 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"

The money spaces (Personal and each Business) with their accounts and this month's totals

GET/v1/garden/books/{books}/bank/spaces

garden:bank:summarygarden_listBankSpaces

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 · stringrequired
  • monthquery · string

    The 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"

Make a Business space (a farm, a practice, a side business)

POST/v1/garden/books/{books}/bank/spaces

garden:bank:linkgarden_createBankSpace

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 '{}'

The month's money in and out, by category and vendor

GET/v1/garden/books/{books}/bank/summary

garden:bank:summarygarden_getBankSummary

Scope garden:bank:summary.

Parameters

  • bookspath · stringrequired
  • monthquery · string

    The calendar month to total (YYYY-MM), first day to last day. Garden refuses the call without it

  • spacequery · string

    Narrow 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"

List bank transactions (filter by feed, category, status, dates)

GET/v1/garden/books/{books}/bank/transactions

garden:bank:readgarden_listBankTransactions

Scope garden:bank:read.

Parameters

  • bookspath · stringrequired
  • feed_idquery · string
  • categoryquery · string
  • statusquery · string
  • fromquery · 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 · boolean
  • spacequery · string

    personal, a Business space id (spc_...), unassigned, or untagged (mixed accounts' lines with no space of their own)

  • limitquery · integer
  • offsetquery · 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"

Confirm transactions into the books

POST/v1/garden/books/{books}/bank/transactions/confirm

garden:bank:linkgarden_confirmBankTransactions

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 '{}'

Tag up to 200 transactions with a space (a mixed account), or clear the tag

POST/v1/garden/books/{books}/bank/transactions/space

garden:bank:linkgarden_tagBankTransactions

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 '{}'

Banking

Get a bank account with its live balance

GET/v1/garden/banking/accounts/{account}

garden:readgarden_getBankingAccount

Scope garden:read, owner only. balance is read live from Increase in minor units (USD cents).

Parameters

  • accountpath · stringrequired

    Bank account id (ba_...)

Responses

  • 200OK
    Response fields
    • idstringrequired
    • object"banking_account"required
    • books_idstringrequired
    • holder_idstringrequired
    • holder_kind"person" | "company"required
    • namestringrequired
    • status"pending" | "open" | "closed"required
    • provider"increase"required
    • environment"sandbox" | "production"required
    • routing_numberstring | null
    • last4string | null
    • created_atstring (date-time)required
    • closed_atstring | null (date-time)
    • balanceobject | null
    • balance.currentinteger
    • balance.availableinteger
    • balance.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"

List the account's cards

GET/v1/garden/banking/accounts/{account}/cards

garden:readgarden_listBankingCards

Scope garden:read, owner only. Last 4, expiry, status and limit; never a number.

Parameters

  • accountpath · stringrequired

    Bank account id (ba_...)

Responses

  • 200OK
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].object"banking_card"required
    • data[].[].account_idstringrequired
    • data[].[].descriptionstringrequired
    • data[].[].last4stringrequired
    • data[].[].exp_monthintegerrequired
    • data[].[].exp_yearintegerrequired
    • data[].[].status"active" | "frozen" | "closed"required
    • data[].[].limitobjectrequired
    • data[].[].limit.amountinteger
    • data[].[].limit.intervalstring
    • data[].[].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"

Issue a virtual debit card with a spend limit

POST/v1/garden/banking/accounts/{account}/cards

garden:manageIdempotency-Key requiredgarden_issueBankingCard

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 · stringrequired

    Bank account id (ba_...)

  • Idempotency-Keyheader · stringrequired

    8-128 letters, digits or _.:-; a retry with the same key answers the first result

Request body application/json

  • descriptionstringrequired

    min length 1 · max length 60

  • limitobjectrequired
  • limit.amountintegerrequired

    min 100 · max 1000000

  • limit.interval"per_transaction" | "per_day" | "per_week" | "per_month" | "all_time"required

Responses

  • 201OK
    Response fields
    • idstringrequired
    • object"banking_card"required
    • account_idstringrequired
    • descriptionstringrequired
    • last4stringrequired
    • exp_monthintegerrequired
    • exp_yearintegerrequired
    • status"active" | "frozen" | "closed"required
    • limitobjectrequired
    • limit.amountinteger
    • limit.intervalstring
    • limit.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"
    }
  }'

Close a bank account

POST/v1/garden/banking/accounts/{account}/close

garden:managegarden_closeBankingAccount

Scope garden:manage, owner only. Its cards are closed first; Increase requires a zero balance (409 balance_not_zero).

Parameters

  • accountpath · stringrequired

    Bank account id (ba_...)

Responses

  • 200OK
    Response fields
    • idstringrequired
    • object"banking_account"required
    • books_idstringrequired
    • holder_idstringrequired
    • holder_kind"person" | "company"required
    • namestringrequired
    • status"pending" | "open" | "closed"required
    • provider"increase"required
    • environment"sandbox" | "production"required
    • routing_numberstring | null
    • last4string | null
    • created_atstring (date-time)required
    • closed_atstring | null (date-time)
    • balanceobject | null
    • balance.currentinteger
    • balance.availableinteger
    • balance.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"

Move a pending account on once its onboarding is done

POST/v1/garden/banking/accounts/{account}/continue

garden:managegarden_continueBankingAccount

Scope garden:manage, owner only. Reads Increase's onboarding session back; opens the account when Increase has made the holder.

Parameters

  • accountpath · stringrequired

    Bank account id (ba_...)

Responses

  • 200OK
    Response fields
    • accountobjectrequired
    • account.idstringrequired
    • account.object"banking_account"required
    • account.books_idstringrequired
    • account.holder_idstringrequired
    • account.holder_kind"person" | "company"required
    • account.namestringrequired
    • account.status"pending" | "open" | "closed"required
    • account.provider"increase"required
    • account.environment"sandbox" | "production"required
    • account.routing_numberstring | null
    • account.last4string | null
    • account.created_atstring (date-time)required
    • account.closed_atstring | null (date-time)
    • account.balanceobject | null
    • account.balance.currentinteger
    • account.balance.availableinteger
    • account.balance.currency"USD"
    • onboardingobject | null
    • onboarding.urlstring | null
    • onboarding.expires_atstring
  • 202Pending (onboarding to finish)
    Response fields
    • accountobjectrequired
    • account.idstringrequired
    • account.object"banking_account"required
    • account.books_idstringrequired
    • account.holder_idstringrequired
    • account.holder_kind"person" | "company"required
    • account.namestringrequired
    • account.status"pending" | "open" | "closed"required
    • account.provider"increase"required
    • account.environment"sandbox" | "production"required
    • account.routing_numberstring | null
    • account.last4string | null
    • account.created_atstring (date-time)required
    • account.closed_atstring | null (date-time)
    • account.balanceobject | null
    • account.balance.currentinteger
    • account.balance.availableinteger
    • account.balance.currency"USD"
    • onboardingobject | null
    • onboarding.urlstring | null
    • onboarding.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"

Sandbox: an inbound ACH transfer into the account

POST/v1/garden/banking/accounts/{account}/simulate/inbound-transfer

garden:managegarden_simulateBankingInboundTransfer

Scope garden:manage, owner only, Increase sandbox only. amount in USD cents (up to 5,000,000).

Parameters

  • accountpath · stringrequired

    Bank account id (ba_...)

Request body application/json

  • amountintegerrequired

    min 1 · max 5000000

  • fromstring

    max length 16

Responses

  • 201OK
    Response fields
    • object"banking_simulation"required
    • kind"inbound_ach_transfer" | "card_authorization"required
    • idstring
    • statusstring
    • transaction_idstring | null
    • approvedboolean
    • pending_transaction_idstring | null
    • declined_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
  }'

Sandbox: submit the account holder's onboarding form

POST/v1/garden/banking/accounts/{account}/simulate/onboarding

garden:managegarden_simulateBankingOnboarding

Scope garden:manage, owner only, Increase sandbox only (404 otherwise).

Parameters

  • accountpath · stringrequired

    Bank account id (ba_...)

Responses

  • 200OK
    Response fields
    • accountobjectrequired
    • account.idstringrequired
    • account.object"banking_account"required
    • account.books_idstringrequired
    • account.holder_idstringrequired
    • account.holder_kind"person" | "company"required
    • account.namestringrequired
    • account.status"pending" | "open" | "closed"required
    • account.provider"increase"required
    • account.environment"sandbox" | "production"required
    • account.routing_numberstring | null
    • account.last4string | null
    • account.created_atstring (date-time)required
    • account.closed_atstring | null (date-time)
    • account.balanceobject | null
    • account.balance.currentinteger
    • account.balance.availableinteger
    • account.balance.currency"USD"
    • onboardingobject | null
    • onboarding.urlstring | null
    • onboarding.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"

Posted and pending transactions, newest first

GET/v1/garden/banking/accounts/{account}/transactions

garden:readgarden_listBankingTransactions

Scope garden:read, owner only. Read live from Increase; negative amounts are money out.

Parameters

  • accountpath · stringrequired

    Bank account id (ba_...)

  • limitquery · integer

Responses

  • 200OK
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].status"posted" | "pending"required
    • data[].[].amountintegerrequired

      Minor units; negative is money out

    • data[].[].currencystringrequired
    • data[].[].descriptionstringrequired
    • data[].[].categorystringrequired
    • data[].[].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"

Get a card

GET/v1/garden/banking/cards/{card}

garden:readgarden_getBankingCard

Scope garden:read, owner only.

Parameters

  • cardpath · stringrequired

    Card id (bcd_...)

Responses

  • 200OK
    Response fields
    • idstringrequired
    • object"banking_card"required
    • account_idstringrequired
    • descriptionstringrequired
    • last4stringrequired
    • exp_monthintegerrequired
    • exp_yearintegerrequired
    • status"active" | "frozen" | "closed"required
    • limitobjectrequired
    • limit.amountinteger
    • limit.intervalstring
    • limit.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"

Close a card (final)

POST/v1/garden/banking/cards/{card}/close

garden:managegarden_closeBankingCard

Scope garden:manage, owner only.

Parameters

  • cardpath · stringrequired

    Card id (bcd_...)

Responses

  • 200OK
    Response fields
    • idstringrequired
    • object"banking_card"required
    • account_idstringrequired
    • descriptionstringrequired
    • last4stringrequired
    • exp_monthintegerrequired
    • exp_yearintegerrequired
    • status"active" | "frozen" | "closed"required
    • limitobjectrequired
    • limit.amountinteger
    • limit.intervalstring
    • limit.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"

Show the card number in Increase's own page

POST/v1/garden/banking/cards/{card}/details-iframe

Person onlygarden_createBankingCardDetailsIframe

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 · stringrequired

    Card id (bcd_...)

Responses

  • 200OK
    Response fields
    • object"banking_card_details_iframe"required
    • card_idstringrequired
    • iframe_urlstringrequired

      Increase'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"

Freeze a card

POST/v1/garden/banking/cards/{card}/freeze

garden:managegarden_freezeBankingCard

Scope garden:manage, owner only. Purchases are declined until it is unfrozen.

Parameters

  • cardpath · stringrequired

    Card id (bcd_...)

Responses

  • 200OK
    Response fields
    • idstringrequired
    • object"banking_card"required
    • account_idstringrequired
    • descriptionstringrequired
    • last4stringrequired
    • exp_monthintegerrequired
    • exp_yearintegerrequired
    • status"active" | "frozen" | "closed"required
    • limitobjectrequired
    • limit.amountinteger
    • limit.intervalstring
    • limit.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"

Sandbox: a purchase on the card

POST/v1/garden/banking/cards/{card}/simulate/purchase

garden:managegarden_simulateBankingCardPurchase

Scope garden:manage, owner only, Increase sandbox only. Shows as a pending transaction, or is declined (frozen card, over the limit).

Parameters

  • cardpath · stringrequired

    Card id (bcd_...)

Request body application/json

  • amountintegerrequired

    min 1 · max 5000000

  • merchantstring

    max length 22

Responses

  • 201OK
    Response fields
    • object"banking_simulation"required
    • kind"inbound_ach_transfer" | "card_authorization"required
    • idstring
    • statusstring
    • transaction_idstring | null
    • approvedboolean
    • pending_transaction_idstring | null
    • declined_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
  }'

Unfreeze a card

POST/v1/garden/banking/cards/{card}/unfreeze

garden:managegarden_unfreezeBankingCard

Scope garden:manage, owner only.

Parameters

  • cardpath · stringrequired

    Card id (bcd_...)

Responses

  • 200OK
    Response fields
    • idstringrequired
    • object"banking_card"required
    • account_idstringrequired
    • descriptionstringrequired
    • last4stringrequired
    • exp_monthintegerrequired
    • exp_yearintegerrequired
    • status"active" | "frozen" | "closed"required
    • limitobjectrequired
    • limit.amountinteger
    • limit.intervalstring
    • limit.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"

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

garden:manageIdempotency-Key requiredgarden_openBankingCompanyAccount

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 · stringrequired

    The company's Auto org id

  • Idempotency-Keyheader · stringrequired

    8-128 letters, digits or _.:-; a retry with the same key answers the first result

Request body application/json

  • namestringrequired

    What the account is called min length 1 · max length 80

  • company_namestringrequired

    The 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
    • accountobjectrequired
    • account.idstringrequired
    • account.object"banking_account"required
    • account.books_idstringrequired
    • account.holder_idstringrequired
    • account.holder_kind"person" | "company"required
    • account.namestringrequired
    • account.status"pending" | "open" | "closed"required
    • account.provider"increase"required
    • account.environment"sandbox" | "production"required
    • account.routing_numberstring | null
    • account.last4string | null
    • account.created_atstring (date-time)required
    • account.closed_atstring | null (date-time)
    • account.balanceobject | null
    • account.balance.currentinteger
    • account.balance.availableinteger
    • account.balance.currency"USD"
    • onboardingobject | null
    • onboarding.urlstring | null
    • onboarding.expires_atstring
    • booksobjectrequired
    • books.idstringrequired
    • books.namestringrequired
    • books.auto_org_idstringrequired
  • 202Pending (onboarding to finish)
    Response fields
    • accountobjectrequired
    • account.idstringrequired
    • account.object"banking_account"required
    • account.books_idstringrequired
    • account.holder_idstringrequired
    • account.holder_kind"person" | "company"required
    • account.namestringrequired
    • account.status"pending" | "open" | "closed"required
    • account.provider"increase"required
    • account.environment"sandbox" | "production"required
    • account.routing_numberstring | null
    • account.last4string | null
    • account.created_atstring (date-time)required
    • account.closed_atstring | null (date-time)
    • account.balanceobject | null
    • account.balance.currentinteger
    • account.balance.availableinteger
    • account.balance.currency"USD"
    • onboardingobject | null
    • onboarding.urlstring | null
    • onboarding.expires_atstring
    • booksobjectrequired
    • books.idstringrequired
    • books.namestringrequired
    • books.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"
  }'

List your bank accounts in these books

GET/v1/garden/books/{books}/banking/accounts

garden:readgarden_listBankingAccounts

Scope garden:read. Only the caller's own accounts (the person's, or the org key's).

Parameters

  • bookspath · stringrequired

    Books id (bks_...)

Responses

  • 200OK
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].object"banking_account"required
    • data[].[].books_idstringrequired
    • data[].[].holder_idstringrequired
    • data[].[].holder_kind"person" | "company"required
    • data[].[].namestringrequired
    • data[].[].status"pending" | "open" | "closed"required
    • data[].[].provider"increase"required
    • data[].[].environment"sandbox" | "production"required
    • data[].[].routing_numberstring | null
    • data[].[].last4string | null
    • data[].[].created_atstring (date-time)required
    • data[].[].closed_atstring | null (date-time)
    • data[].[].balanceobject | null
    • data[].[].balance.currentinteger
    • data[].[].balance.availableinteger
    • data[].[].balance.currency"USD"
    • providerstring
    • environmentstring
  • 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"

Open a bank account (Increase) for the person or a company they own

POST/v1/garden/books/{books}/banking/accounts

garden:manageIdempotency-Key requiredgarden_openBankingAccount

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 · stringrequired

    Books id (bks_...)

  • Idempotency-Keyheader · stringrequired

    8-128 letters, digits or _.:-; a retry with the same key answers the first result

Request body application/json

  • holder"person" | "company"required
  • namestringrequired

    min length 1 · max length 80

  • onboarding"hosted" | "sandbox_test_identity"

    Default: sandbox_test_identity in the Increase sandbox, hosted otherwise

Responses

  • 201OK
    Response fields
    • accountobjectrequired
    • account.idstringrequired
    • account.object"banking_account"required
    • account.books_idstringrequired
    • account.holder_idstringrequired
    • account.holder_kind"person" | "company"required
    • account.namestringrequired
    • account.status"pending" | "open" | "closed"required
    • account.provider"increase"required
    • account.environment"sandbox" | "production"required
    • account.routing_numberstring | null
    • account.last4string | null
    • account.created_atstring (date-time)required
    • account.closed_atstring | null (date-time)
    • account.balanceobject | null
    • account.balance.currentinteger
    • account.balance.availableinteger
    • account.balance.currency"USD"
    • onboardingobject | null
    • onboarding.urlstring | null
    • onboarding.expires_atstring
  • 202Pending (onboarding to finish)
    Response fields
    • accountobjectrequired
    • account.idstringrequired
    • account.object"banking_account"required
    • account.books_idstringrequired
    • account.holder_idstringrequired
    • account.holder_kind"person" | "company"required
    • account.namestringrequired
    • account.status"pending" | "open" | "closed"required
    • account.provider"increase"required
    • account.environment"sandbox" | "production"required
    • account.routing_numberstring | null
    • account.last4string | null
    • account.created_atstring (date-time)required
    • account.closed_atstring | null (date-time)
    • account.balanceobject | null
    • account.balance.currentinteger
    • account.balance.availableinteger
    • account.balance.currency"USD"
    • onboardingobject | null
    • onboarding.urlstring | null
    • onboarding.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"
  }'

Books

List your organization's books

GET/v1/garden/books

garden:readTested with an API keygarden_listBooks

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[]required
    • data[].[].idstringrequired
    • data[].[].namestringrequired
    • data[].[].currencystringrequired

      pattern ^[A-Z]{3}$

    • data[].[].auto_org_idstring | nullrequired

      The Auto org whose authority covers spending

    • data[].[].status"active" | "archived"required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].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"

Open books in one currency

POST/v1/garden/books

garden:writeTested with an API keygarden_createBooks

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

  • namestringrequired

    min length 1 · max length 200

  • currencystring

    ISO 4217; default USD pattern ^[A-Z]{3}$

  • auto_org_idstring | null

    pattern ^[a-z]{2,4}_[A-Za-z0-9]{1,60}$

  • chart"standard" | "empty"

    Default standard

Responses

  • 201Books opened; the ETag header carries the version
    Response fields
    • idstringrequired
    • namestringrequired
    • currencystringrequired

      pattern ^[A-Z]{3}$

    • auto_org_idstring | nullrequired

      The Auto org whose authority covers spending

    • status"active" | "archived"required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"
  }'

Get one set of books

GET/v1/garden/books/{books}

garden:readTested with an API keygarden_getBooks

Scope garden:read.

Parameters

  • bookspath · stringrequired

Responses

  • 200The books
    Response fields
    • idstringrequired
    • namestringrequired
    • currencystringrequired

      pattern ^[A-Z]{3}$

    • auto_org_idstring | nullrequired

      The Auto org whose authority covers spending

    • status"active" | "archived"required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Archive books

DELETE/v1/garden/books/{books}

garden:manageTested with an API keygarden_archiveBooks

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 · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Responses

  • 200Archived books
    Response fields
    • idstringrequired
    • namestringrequired
    • currencystringrequired

      pattern ^[A-Z]{3}$

    • auto_org_idstring | nullrequired

      The Auto org whose authority covers spending

    • status"active" | "archived"required
    • versionintegerrequired
    • created_atstring (date-time)required
    • 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
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/garden/books/$BOOKS" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Rename books or link them to an Auto org

PATCH/v1/garden/books/{books}

garden:writeTested with an API keygarden_updateBooks

Scope garden:write. Needs If-Match. At least one of name or auto_org_id.

Parameters

  • bookspath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • namestring

    min length 1 · max length 200

  • auto_org_idstring | null

    pattern ^[a-z]{2,4}_[A-Za-z0-9]{1,60}$

Responses

  • 200Updated books
    Response fields
    • idstringrequired
    • namestringrequired
    • currencystringrequired

      pattern ^[A-Z]{3}$

    • auto_org_idstring | nullrequired

      The Auto org whose authority covers spending

    • status"active" | "archived"required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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 '{}'

Counterparties

List customers and vendors

GET/v1/garden/books/{books}/counterparties

garden:readTested with an API keygarden_listCounterparties

Scope garden:read. kind=customer or kind=vendor also returns counterparties of kind both. Archived ones are hidden unless include_archived=true.

Parameters

  • bookspath · stringrequired
  • kindquery · "customer" | "vendor"
  • include_archivedquery · boolean

Responses

  • 200Counterparties
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].books_idstringrequired
    • data[].[].namestringrequired
    • data[].[].emailstring | nullrequired
    • data[].[].kind"customer" | "vendor" | "both"required
    • data[].[].principalstring | nullrequired

      Gateway principal, when the counterparty is an agent

    • data[].[].status"active" | "archived"required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].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"

Add a customer or vendor

POST/v1/garden/books/{books}/counterparties

garden:writeTested with an API keygarden_createCounterparty

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

  • namestringrequired

    min length 1 · max length 200

  • emailstring | null (email)

    max length 254

  • kind"customer" | "vendor" | "both"

    Default both

  • principalstring | null

    max length 256

Responses

  • 201Counterparty created
    Response fields
    • idstringrequired
    • books_idstringrequired
    • namestringrequired
    • emailstring | nullrequired
    • kind"customer" | "vendor" | "both"required
    • principalstring | nullrequired

      Gateway principal, when the counterparty is an agent

    • status"active" | "archived"required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"
  }'

Get a customer or vendor

GET/v1/garden/counterparties/{counterparty}

garden:readTested with an API keygarden_getCounterparty

Scope garden:read.

Parameters

  • counterpartypath · stringrequired

Responses

  • 200The counterparty
    Response fields
    • idstringrequired
    • books_idstringrequired
    • namestringrequired
    • emailstring | nullrequired
    • kind"customer" | "vendor" | "both"required
    • principalstring | nullrequired

      Gateway principal, when the counterparty is an agent

    • status"active" | "archived"required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Update or archive a customer or vendor

PATCH/v1/garden/counterparties/{counterparty}

garden:writeTested with an API keygarden_updateCounterparty

Scope garden:write. Needs If-Match. At least one field.

Parameters

  • counterpartypath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • namestring

    min length 1 · max length 200

  • emailstring | null (email)

    max length 254

  • kind"customer" | "vendor" | "both"
  • principalstring | null

    max length 256

  • status"active" | "archived"

Responses

  • 200Updated counterparty
    Response fields
    • idstringrequired
    • books_idstringrequired
    • namestringrequired
    • emailstring | nullrequired
    • kind"customer" | "vendor" | "both"required
    • principalstring | nullrequired

      Gateway principal, when the counterparty is an agent

    • status"active" | "archived"required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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 '{}'

Events

Read the books' audit trail, oldest or newest first

GET/v1/garden/books/{books}/events

garden:readTested with an API keygarden_listEvents

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 · stringrequired
  • orderquery · "asc" | "desc"

    asc (default, oldest first) or desc (newest first)

  • afterquery · integer

    order=asc: return events with seq above this (default 0)

  • beforequery · integer

    order=desc: return events with seq below this (default: from the newest)

  • limitquery · integer

    1-500, default 100

Responses

  • 200Events
    Response fields
    • dataobject[]required
    • data[].[].seqintegerrequired
    • data[].[].idstringrequired
    • data[].[].books_idstringrequired
    • data[].[].kindstringrequired

      e.g. books.created, journal.posted, invoice.finalized, payment.succeeded

    • data[].[].subject_idstringrequired
    • data[].[].actorstringrequired
    • data[].[].actor_kindstringrequired
    • data[].[].summarystringrequired
    • data[].[].dataanyrequired

      Free-form; shape depends on kind

    • data[].[].request_idstringrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].prev_hashstringrequired
    • data[].[].hashstringrequired
    • next_afterinteger | null

      order=asc: pass as after for the next page

    • next_beforeinteger | null

      order=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"

Recompute the books' hash-chained audit trail

GET/v1/garden/books/{books}/events/verify

garden:readTested with an API keygarden_verifyEvents

Scope garden:read.

Parameters

  • bookspath · stringrequired

Responses

  • 200Whether the chain is intact
    Response fields
    • okbooleanrequired
    • eventsintegerrequired
    • headstring

      Chain head hash; present when ok

    • broken_atinteger

      seq 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"

Invoices

List invoices, newest first

GET/v1/garden/books/{books}/invoices

garden:readTested with an API keygarden_listInvoices

Scope garden:read.

Parameters

  • bookspath · stringrequired
  • statusquery · "draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"
  • customer_idquery · string
  • limitquery · integer

    1-500, default 100

  • offsetquery · integer

    0-100000, default 0

Responses

  • 200Invoices
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].books_idstringrequired
    • data[].[].numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • data[].[].customer_idstringrequired
    • data[].[].currencystringrequired
    • data[].[].issue_datestring (date)required
    • data[].[].due_datestring (date)required
    • data[].[].memostring | nullrequired
    • data[].[].linesobject[]required
    • data[].[].lines[].[].descriptionstringrequired
    • data[].[].lines[].[].quantityintegerrequired
    • data[].[].lines[].[].unit_amountintegerrequired
    • data[].[].lines[].[].amountintegerrequired
    • data[].[].lines[].[].account_idstring | nullrequired
    • data[].[].subtotalintegerrequired
    • data[].[].taxintegerrequired
    • data[].[].totalintegerrequired
    • data[].[].amount_paidintegerrequired
    • data[].[].amount_written_offintegerrequired
    • data[].[].amount_dueintegerrequired
    • data[].[].status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • data[].[].journal_entry_idstring | nullrequired
    • data[].[].created_bystringrequired
    • data[].[].finalized_atstring | null (date-time)required
    • data[].[].paid_atstring | null (date-time)required
    • data[].[].voided_atstring | null (date-time)required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].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"

Draft an invoice to a customer

POST/v1/garden/books/{books}/invoices

garden:writeTested with an API keygarden_createInvoice

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_idstringrequired
  • issue_datestring (date)required
  • due_datestring (date)required

    Not before issue_date

  • memostring | null

    max length 2000

  • linesobject[]required
  • lines[].[].descriptionstringrequired

    min length 1 · max length 500

  • lines[].[].quantityinteger

    Default 1 min 1 · max 1000000

  • lines[].[].unit_amountintegerrequired

    Minor units min 0

  • lines[].[].account_idstring | null

    Revenue account; default the books' revenue account

  • taxinteger

    Sales tax in minor units; default 0 min 0

  • finalizeboolean

    Issue at once instead of leaving a draft

Responses

  • 201Invoice created
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • customer_idstringrequired
    • currencystringrequired
    • issue_datestring (date)required
    • due_datestring (date)required
    • memostring | nullrequired
    • linesobject[]required
    • lines[].[].descriptionstringrequired
    • lines[].[].quantityintegerrequired
    • lines[].[].unit_amountintegerrequired
    • lines[].[].amountintegerrequired
    • lines[].[].account_idstring | nullrequired
    • subtotalintegerrequired
    • taxintegerrequired
    • totalintegerrequired
    • amount_paidintegerrequired
    • amount_written_offintegerrequired
    • amount_dueintegerrequired
    • status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • journal_entry_idstring | nullrequired
    • created_bystringrequired
    • finalized_atstring | null (date-time)required
    • paid_atstring | null (date-time)required
    • voided_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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
      }
    ]
  }'

Get an invoice with the payments received

GET/v1/garden/invoices/{invoice}

garden:readTested with an API keygarden_getInvoice

Scope garden:read.

Parameters

  • invoicepath · stringrequired

Responses

  • 200The invoice and its receipts
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • customer_idstringrequired
    • currencystringrequired
    • issue_datestring (date)required
    • due_datestring (date)required
    • memostring | nullrequired
    • linesobject[]required
    • lines[].[].descriptionstringrequired
    • lines[].[].quantityintegerrequired
    • lines[].[].unit_amountintegerrequired
    • lines[].[].amountintegerrequired
    • lines[].[].account_idstring | nullrequired
    • subtotalintegerrequired
    • taxintegerrequired
    • totalintegerrequired
    • amount_paidintegerrequired
    • amount_written_offintegerrequired
    • amount_dueintegerrequired
    • status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • journal_entry_idstring | nullrequired
    • created_bystringrequired
    • finalized_atstring | null (date-time)required
    • paid_atstring | null (date-time)required
    • voided_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • receiptsobject[]required
    • receipts[].[].idstringrequired
    • receipts[].[].invoice_idstringrequired
    • receipts[].[].amountintegerrequired
    • receipts[].[].currencystringrequired
    • receipts[].[].rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • receipts[].[].livemodefalserequired
    • receipts[].[].received_onstring (date)required
    • receipts[].[].deposit_account_idstringrequired
    • receipts[].[].journal_entry_idstringrequired
    • receipts[].[].created_bystringrequired
    • receipts[].[].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"

Change a draft invoice

PATCH/v1/garden/invoices/{invoice}

garden:writeTested with an API keygarden_updateInvoice

Scope garden:write. Needs If-Match. Only drafts change. At least one field.

Parameters

  • invoicepath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • customer_idstring
  • issue_datestring (date)
  • due_datestring (date)
  • memostring | null

    max length 2000

  • linesobject[]
  • lines[].[].descriptionstringrequired

    min length 1 · max length 500

  • lines[].[].quantityinteger

    Default 1 min 1 · max 1000000

  • lines[].[].unit_amountintegerrequired

    Minor units min 0

  • lines[].[].account_idstring | null

    Revenue account; default the books' revenue account

  • taxinteger

    min 0

Responses

  • 200Updated draft invoice
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • customer_idstringrequired
    • currencystringrequired
    • issue_datestring (date)required
    • due_datestring (date)required
    • memostring | nullrequired
    • linesobject[]required
    • lines[].[].descriptionstringrequired
    • lines[].[].quantityintegerrequired
    • lines[].[].unit_amountintegerrequired
    • lines[].[].amountintegerrequired
    • lines[].[].account_idstring | nullrequired
    • subtotalintegerrequired
    • taxintegerrequired
    • totalintegerrequired
    • amount_paidintegerrequired
    • amount_written_offintegerrequired
    • amount_dueintegerrequired
    • status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • journal_entry_idstring | nullrequired
    • created_bystringrequired
    • finalized_atstring | null (date-time)required
    • paid_atstring | null (date-time)required
    • voided_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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 '{}'

Journal entries

List journal entries, newest first

GET/v1/garden/books/{books}/journal-entries

garden:readTested with an API keygarden_listJournalEntries

Scope garden:read.

Parameters

  • bookspath · stringrequired
  • statusquery · "draft" | "posted" | "reversed" | "discarded"
  • fromquery · string (date)

    First day, YYYY-MM-DD

  • toquery · string (date)

    Last day, YYYY-MM-DD

  • limitquery · integer

    1-500, default 100

  • offsetquery · integer

    0-100000, default 0

Responses

  • 200Journal entries
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].books_idstringrequired
    • data[].[].numberstring | nullrequired

      Assigned when posted, e.g. JE-2026-000001

    • data[].[].entry_datestring (date)required
    • data[].[].descriptionstringrequired
    • data[].[].memostring | nullrequired
    • data[].[].status"draft" | "posted" | "reversed" | "discarded"required
    • data[].[].sourceobject | nullrequired

      The record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries

    • data[].[].reverses_idstring | nullrequired
    • data[].[].reversed_by_idstring | nullrequired
    • data[].[].linesobject[]required
    • data[].[].lines[].[].line_nointegerrequired
    • data[].[].lines[].[].account_idstringrequired
    • data[].[].lines[].[].debitintegerrequired
    • data[].[].lines[].[].creditintegerrequired
    • data[].[].lines[].[].memostring | nullrequired
    • data[].[].totalintegerrequired

      Sum of the debits

    • data[].[].created_bystringrequired
    • data[].[].posted_atstring | null (date-time)required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].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"

Record a balanced journal entry

POST/v1/garden/books/{books}/journal-entries

garden:writeTested with an API keygarden_createJournalEntry

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)required
  • descriptionstringrequired

    min length 1 · max length 500

  • memostring | null

    max length 2000

  • linesobject[]required
  • lines[].[].account_idstringrequired
  • lines[].[].debitinteger

    min 0

  • lines[].[].creditinteger

    min 0

  • lines[].[].memostring | null

    max length 500

  • postboolean

    Post at once instead of leaving a draft

Responses

  • 201Journal entry created
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when posted, e.g. JE-2026-000001

    • entry_datestring (date)required
    • descriptionstringrequired
    • memostring | nullrequired
    • status"draft" | "posted" | "reversed" | "discarded"required
    • sourceobject | nullrequired

      The record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries

    • reverses_idstring | nullrequired
    • reversed_by_idstring | nullrequired
    • linesobject[]required
    • lines[].[].line_nointegerrequired
    • lines[].[].account_idstringrequired
    • lines[].[].debitintegerrequired
    • lines[].[].creditintegerrequired
    • lines[].[].memostring | nullrequired
    • totalintegerrequired

      Sum of the debits

    • created_bystringrequired
    • posted_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • 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/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"
      }
    ]
  }'

Get a journal entry with its lines

GET/v1/garden/journal-entries/{entry}

garden:readTested with an API keygarden_getJournalEntry

Scope garden:read.

Parameters

  • entrypath · stringrequired

Responses

  • 200The journal entry
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when posted, e.g. JE-2026-000001

    • entry_datestring (date)required
    • descriptionstringrequired
    • memostring | nullrequired
    • status"draft" | "posted" | "reversed" | "discarded"required
    • sourceobject | nullrequired

      The record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries

    • reverses_idstring | nullrequired
    • reversed_by_idstring | nullrequired
    • linesobject[]required
    • lines[].[].line_nointegerrequired
    • lines[].[].account_idstringrequired
    • lines[].[].debitintegerrequired
    • lines[].[].creditintegerrequired
    • lines[].[].memostring | nullrequired
    • totalintegerrequired

      Sum of the debits

    • created_bystringrequired
    • posted_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Discard a draft journal entry

DELETE/v1/garden/journal-entries/{entry}

garden:writeTested with an API keygarden_discardJournalEntry

Scope garden:write. Needs If-Match. Only drafts can be discarded; the entry stays, with status discarded.

Parameters

  • entrypath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Responses

  • 200The discarded draft
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when posted, e.g. JE-2026-000001

    • entry_datestring (date)required
    • descriptionstringrequired
    • memostring | nullrequired
    • status"draft" | "posted" | "reversed" | "discarded"required
    • sourceobject | nullrequired

      The record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries

    • reverses_idstring | nullrequired
    • reversed_by_idstring | nullrequired
    • linesobject[]required
    • lines[].[].line_nointegerrequired
    • lines[].[].account_idstringrequired
    • lines[].[].debitintegerrequired
    • lines[].[].creditintegerrequired
    • lines[].[].memostring | nullrequired
    • totalintegerrequired

      Sum of the debits

    • created_bystringrequired
    • posted_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Change a draft journal entry

PATCH/v1/garden/journal-entries/{entry}

garden:writeTested with an API keygarden_updateJournalEntry

Scope garden:write. Needs If-Match. Only drafts change; posted entries are permanent (reverse them instead).

Parameters

  • entrypath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • entry_datestring (date)
  • descriptionstring

    min length 1 · max length 500

  • memostring | null

    max length 2000

  • linesobject[]
  • lines[].[].account_idstringrequired
  • lines[].[].debitinteger

    min 0

  • lines[].[].creditinteger

    min 0

  • lines[].[].memostring | null

    max length 500

Responses

  • 200Updated draft
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when posted, e.g. JE-2026-000001

    • entry_datestring (date)required
    • descriptionstringrequired
    • memostring | nullrequired
    • status"draft" | "posted" | "reversed" | "discarded"required
    • sourceobject | nullrequired

      The record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries

    • reverses_idstring | nullrequired
    • reversed_by_idstring | nullrequired
    • linesobject[]required
    • lines[].[].line_nointegerrequired
    • lines[].[].account_idstringrequired
    • lines[].[].debitintegerrequired
    • lines[].[].creditintegerrequired
    • lines[].[].memostring | nullrequired
    • totalintegerrequired

      Sum of the debits

    • created_bystringrequired
    • posted_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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 '{}'

Payments

List payments, newest first

GET/v1/garden/books/{books}/payments

garden:readTested with an API keygarden_listPayments

Scope garden:read.

Parameters

  • bookspath · stringrequired
  • statusquery · "requires_authority" | "succeeded" | "failed" | "cancelled"
  • limitquery · integer

    1-500, default 100

  • offsetquery · integer

    0-100000, default 0

Responses

  • 200Payments
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].object"payment" | "payout"required
    • data[].[].books_idstringrequired
    • data[].[].typestringrequired
    • data[].[].counterparty_idstring | nullrequired
    • data[].[].amountintegerrequired
    • data[].[].currencystringrequired
    • data[].[].from_account_idstringrequired
    • data[].[].to_account_idstringrequired
    • data[].[].memostringrequired
    • data[].[].rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • data[].[].livemodefalserequired
    • data[].[].status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • data[].[].authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • data[].[].failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • data[].[].requested_bystringrequired
    • data[].[].authorized_bystring | nullrequired
    • data[].[].journal_entry_idstring | nullrequired
    • data[].[].settled_atstring | null (date-time)required
    • data[].[].cancelled_atstring | null (date-time)required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].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"

Pay a vendor

POST/v1/garden/books/{books}/payments

garden:writeTested with an API keyIdempotency-Key optionalgarden_createPayment

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 · stringrequired
  • Idempotency-Keyheader · string

    8-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_idstringrequired

    The vendor

  • amountintegerrequired

    Minor units in the books currency min 1

  • memostringrequired

    min length 1 · max length 500

  • from_account_idstring

    Bank or cash account to pay from; default cash

  • expense_account_idstring

    Expense, payable or asset account to debit; default operating

  • rail"manual" | "sandbox"

    sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

Responses

  • 200Replayed with the same Idempotency-Key; the first result
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 201Settled at once within your authority (succeeded)
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 202Waiting for authority (requires_authority), with Auto's reasons and who it escalated to
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"
  }'

Record money received against an invoice

POST/v1/garden/invoices/{invoice}/payments

garden:writeTested with an API keyIdempotency-Key optionalgarden_recordInvoicePayment

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 · stringrequired
  • Idempotency-Keyheader · string

    8-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

  • amountintegerrequired

    Minor units; not more than the amount due min 1

  • rail"manual" | "sandbox"

    sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

  • received_onstring (date)

    Default today

  • deposit_account_idstring

    Default the cash account

Responses

  • 200Replayed with the same Idempotency-Key; the first result
    Response fields
    • invoiceobjectrequired
    • invoice.idstringrequired
    • invoice.books_idstringrequired
    • invoice.numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • invoice.customer_idstringrequired
    • invoice.currencystringrequired
    • invoice.issue_datestring (date)required
    • invoice.due_datestring (date)required
    • invoice.memostring | nullrequired
    • invoice.linesobject[]required
    • invoice.lines[].[].descriptionstringrequired
    • invoice.lines[].[].quantityintegerrequired
    • invoice.lines[].[].unit_amountintegerrequired
    • invoice.lines[].[].amountintegerrequired
    • invoice.lines[].[].account_idstring | nullrequired
    • invoice.subtotalintegerrequired
    • invoice.taxintegerrequired
    • invoice.totalintegerrequired
    • invoice.amount_paidintegerrequired
    • invoice.amount_written_offintegerrequired
    • invoice.amount_dueintegerrequired
    • invoice.status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • invoice.journal_entry_idstring | nullrequired
    • invoice.created_bystringrequired
    • invoice.finalized_atstring | null (date-time)required
    • invoice.paid_atstring | null (date-time)required
    • invoice.voided_atstring | null (date-time)required
    • invoice.versionintegerrequired
    • invoice.created_atstring (date-time)required
    • invoice.updated_atstring (date-time)required
    • receiptobjectrequired
    • receipt.idstringrequired
    • receipt.invoice_idstringrequired
    • receipt.amountintegerrequired
    • receipt.currencystringrequired
    • receipt.rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • receipt.livemodefalserequired
    • receipt.received_onstring (date)required
    • receipt.deposit_account_idstringrequired
    • receipt.journal_entry_idstringrequired
    • receipt.created_bystringrequired
    • receipt.created_atstring (date-time)required
  • 201Payment recorded
    Response fields
    • invoiceobjectrequired
    • invoice.idstringrequired
    • invoice.books_idstringrequired
    • invoice.numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • invoice.customer_idstringrequired
    • invoice.currencystringrequired
    • invoice.issue_datestring (date)required
    • invoice.due_datestring (date)required
    • invoice.memostring | nullrequired
    • invoice.linesobject[]required
    • invoice.lines[].[].descriptionstringrequired
    • invoice.lines[].[].quantityintegerrequired
    • invoice.lines[].[].unit_amountintegerrequired
    • invoice.lines[].[].amountintegerrequired
    • invoice.lines[].[].account_idstring | nullrequired
    • invoice.subtotalintegerrequired
    • invoice.taxintegerrequired
    • invoice.totalintegerrequired
    • invoice.amount_paidintegerrequired
    • invoice.amount_written_offintegerrequired
    • invoice.amount_dueintegerrequired
    • invoice.status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • invoice.journal_entry_idstring | nullrequired
    • invoice.created_bystringrequired
    • invoice.finalized_atstring | null (date-time)required
    • invoice.paid_atstring | null (date-time)required
    • invoice.voided_atstring | null (date-time)required
    • invoice.versionintegerrequired
    • invoice.created_atstring (date-time)required
    • invoice.updated_atstring (date-time)required
    • receiptobjectrequired
    • receipt.idstringrequired
    • receipt.invoice_idstringrequired
    • receipt.amountintegerrequired
    • receipt.currencystringrequired
    • receipt.rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • receipt.livemodefalserequired
    • receipt.received_onstring (date)required
    • receipt.deposit_account_idstringrequired
    • receipt.journal_entry_idstringrequired
    • receipt.created_bystringrequired
    • receipt.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
  }'

Get a payment

GET/v1/garden/payments/{payment}

garden:readTested with an API keygarden_getPayment

Scope garden:read.

Parameters

  • paymentpath · stringrequired

Responses

  • 200The payment
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Payouts

List payouts, newest first

GET/v1/garden/books/{books}/payouts

garden:readTested with an API keygarden_listPayouts

Scope garden:read.

Parameters

  • bookspath · stringrequired
  • statusquery · "requires_authority" | "succeeded" | "failed" | "cancelled"
  • limitquery · integer

    1-500, default 100

  • offsetquery · integer

    0-100000, default 0

Responses

  • 200Payouts
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].object"payment" | "payout"required
    • data[].[].books_idstringrequired
    • data[].[].typestringrequired
    • data[].[].counterparty_idstring | nullrequired
    • data[].[].amountintegerrequired
    • data[].[].currencystringrequired
    • data[].[].from_account_idstringrequired
    • data[].[].to_account_idstringrequired
    • data[].[].memostringrequired
    • data[].[].rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • data[].[].livemodefalserequired
    • data[].[].status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • data[].[].authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • data[].[].failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • data[].[].requested_bystringrequired
    • data[].[].authorized_bystring | nullrequired
    • data[].[].journal_entry_idstring | nullrequired
    • data[].[].settled_atstring | null (date-time)required
    • data[].[].cancelled_atstring | null (date-time)required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].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"

Pay money out of the books

POST/v1/garden/books/{books}/payouts

garden:manageTested with an API keyIdempotency-Key optionalgarden_createPayout

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 · stringrequired
  • Idempotency-Keyheader · string

    8-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"required
  • counterparty_idstring | null
  • amountintegerrequired

    Minor units in the books currency min 1

  • memostringrequired

    min length 1 · max length 500

  • from_account_idstring

    Bank or cash account to pay from; default cash

  • to_account_idstring

    Account the money is booked to; defaults to the distributions account for a distribution and is required otherwise

  • rail"manual" | "sandbox"

    sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

Responses

  • 200Replayed with the same Idempotency-Key; the first result
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 201Settled at once within your authority (succeeded)
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 202Waiting for authority (requires_authority), with Auto's reasons and who it escalated to
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • 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/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"
  }'

Get a payout

GET/v1/garden/payouts/{payout}

garden:readTested with an API keygarden_getPayout

Scope garden:read.

Parameters

  • payoutpath · stringrequired

Responses

  • 200The payout
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Picture

The one financial picture for a person or a Team

GET/v1/garden/books/{books}/picture

garden:readgarden_getPicture

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 · stringrequired
  • unit_idquery · string

Responses

  • 200The picture
    Response fields
    • object"garden_picture"required
    • books_idstringrequired
    • namestring
    • currencystringrequired
    • auto_org_idstring | null
    • as_ofstring (date-time)required
    • booksobjectrequired
    • books.total_assetsinteger
    • books.total_liabilitiesinteger
    • books.total_equityinteger
    • books.this_monthobject
    • books.this_month.fromstring
    • books.this_month.tostring
    • books.this_month.revenueinteger
    • books.this_month.expensesinteger
    • books.this_month.net_incomeinteger
    • banksarray | nullrequired
    • walletsarray | nullrequired
    • omittedstring[]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"

Reports

Unpaid invoices by how late they are

GET/v1/garden/books/{books}/reports/ar-aging

garden:readTested with an API keygarden_getArAging

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 · stringrequired
  • as_ofquery · string (date)

    YYYY-MM-DD; default today (UTC)

Responses

  • 200Receivables aging
    Response fields
    • books_idstringrequired
    • currencystringrequired
    • as_ofstring (date)required
    • invoicesobject[]required
    • invoices[].[].invoice_idstringrequired
    • invoices[].[].numberstring | nullrequired
    • invoices[].[].customer_idstringrequired
    • invoices[].[].customer_namestringrequired
    • invoices[].[].due_datestring (date)required
    • invoices[].[].days_past_dueintegerrequired
    • invoices[].[].amount_dueintegerrequired
    • invoices[].[].bucket"current" | "1_30" | "31_60" | "61_90" | "over_90"required
    • bucketsobjectrequired
    • buckets.currentintegerrequired
    • buckets.1_30integerrequired
    • buckets.31_60integerrequired
    • buckets.61_90integerrequired
    • buckets.over_90integerrequired
    • total_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"

Balance sheet as of a date

GET/v1/garden/books/{books}/reports/balance-sheet

garden:readTested with an API keygarden_getBalanceSheet

Scope garden:read. Assets, liabilities, equity and current earnings; as_of defaults to today (UTC).

Parameters

  • bookspath · stringrequired
  • as_ofquery · string (date)

    YYYY-MM-DD; default today (UTC)

Responses

  • 200Balance sheet
    Response fields
    • books_idstringrequired
    • currencystringrequired
    • as_ofstring (date)required
    • assetsobject[]required
    • assets[].[].account_idstringrequired
    • assets[].[].codestringrequired
    • assets[].[].namestringrequired
    • assets[].[].subtypestringrequired
    • assets[].[].balanceintegerrequired
    • liabilitiesobject[]required
    • liabilities[].[].account_idstringrequired
    • liabilities[].[].codestringrequired
    • liabilities[].[].namestringrequired
    • liabilities[].[].subtypestringrequired
    • liabilities[].[].balanceintegerrequired
    • equityobject[]required
    • equity[].[].account_idstringrequired
    • equity[].[].codestringrequired
    • equity[].[].namestringrequired
    • equity[].[].subtypestringrequired
    • equity[].[].balanceintegerrequired
    • current_earningsintegerrequired
    • total_assetsintegerrequired
    • total_liabilitiesintegerrequired
    • total_equityintegerrequired

      Equity 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"

Profit and loss between two dates

GET/v1/garden/books/{books}/reports/income-statement

garden:readTested with an API keygarden_getIncomeStatement

Scope garden:read. from and to are required and inclusive.

Parameters

  • bookspath · stringrequired
  • fromquery · string (date)required

    First day, YYYY-MM-DD

  • toquery · string (date)required

    Last day, YYYY-MM-DD

Responses

  • 200Income statement
    Response fields
    • books_idstringrequired
    • currencystringrequired
    • fromstring (date)required
    • tostring (date)required
    • revenueobject[]required
    • revenue[].[].account_idstringrequired
    • revenue[].[].codestringrequired
    • revenue[].[].namestringrequired
    • revenue[].[].subtypestringrequired
    • revenue[].[].balanceintegerrequired
    • expensesobject[]required
    • expenses[].[].account_idstringrequired
    • expenses[].[].codestringrequired
    • expenses[].[].namestringrequired
    • expenses[].[].subtypestringrequired
    • expenses[].[].balanceintegerrequired
    • total_revenueintegerrequired
    • total_expensesintegerrequired
    • net_incomeintegerrequired
    • margin_bpsinteger | nullrequired

      Net 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"

Trial balance as of a date

GET/v1/garden/books/{books}/reports/trial-balance

garden:readTested with an API keygarden_getTrialBalance

Scope garden:read. as_of defaults to today (UTC). Accounts with no posted activity are left out.

Parameters

  • bookspath · stringrequired
  • as_ofquery · string (date)

    YYYY-MM-DD; default today (UTC)

Responses

  • 200Trial balance
    Response fields
    • books_idstringrequired
    • currencystringrequired
    • as_ofstring (date)required
    • accountsobject[]required
    • accounts[].[].account_idstringrequired
    • accounts[].[].codestringrequired
    • accounts[].[].namestringrequired
    • accounts[].[].type"asset" | "liability" | "equity" | "revenue" | "expense"required
    • accounts[].[].subtypestringrequired
    • accounts[].[].debitsintegerrequired
    • accounts[].[].creditsintegerrequired
    • accounts[].[].balanceintegerrequired
    • accounts[].[].debit_balanceintegerrequired
    • accounts[].[].credit_balanceintegerrequired
    • total_debitsintegerrequired
    • total_creditsintegerrequired
    • 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/trial-balance" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Wallets

List the books' wallets

GET/v1/garden/books/{books}/wallets

garden:wallets:readgarden_listWallets

Scope garden:wallets:read.

Parameters

  • bookspath · stringrequired

Responses

  • 200Wallets
    Response fields
    • dataobject[]required
    • data[].[].object"wallet"required
    • data[].[].idstringrequired
    • data[].[].books_idstringrequired
    • data[].[].chain"eip155:1" | "eip155:8453" | "solana:mainnet"required
    • data[].[].addressstringrequired
    • data[].[].labelstring | null
    • data[].[].ens_namestring | null
    • data[].[].source"watch" | "self_custody" | "onepay"required
    • data[].[].verifiedbooleanrequired
    • data[].[].created_bystring
    • data[].[].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"

Add a wallet (a public address; never a key)

POST/v1/garden/books/{books}/wallets

garden:wallets:linkgarden_addWallet

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"required
  • addressstringrequired
  • labelstring | null

    max length 60

  • source"watch" | "self_custody" | "onepay"

    default "watch"

  • ens_namestring | null
  • proofobject
  • proof.kind"siwe" | "siws" | "onepay_link"required
  • proof.verified_atstring (date-time)required

Responses

  • 201The wallet
    Response fields
    • object"wallet"required
    • idstringrequired
    • books_idstringrequired
    • chain"eip155:1" | "eip155:8453" | "solana:mainnet"required
    • addressstringrequired
    • labelstring | null
    • ens_namestring | null
    • source"watch" | "self_custody" | "onepay"required
    • verifiedbooleanrequired
    • created_bystring
    • created_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"
  }'

Remove a wallet now

DELETE/v1/garden/wallets/{wallet}

garden:wallets:linkgarden_removeWallet

Scope garden:wallets:link. Immediate, no approval.

Parameters

  • walletpath · stringrequired

Responses

  • 200Removed
    Response fields
    • removedbooleanrequired
    • idstringrequired
  • 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"

Finalize

Issue a draft invoice

POST/v1/garden/invoices/{invoice}/finalize

garden:writeTested with an API keygarden_finalizeInvoice

Scope garden:write. Needs If-Match. Numbers the invoice and books the receivable; the invoice becomes open.

Parameters

  • invoicepath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Responses

  • 200The open invoice
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • customer_idstringrequired
    • currencystringrequired
    • issue_datestring (date)required
    • due_datestring (date)required
    • memostring | nullrequired
    • linesobject[]required
    • lines[].[].descriptionstringrequired
    • lines[].[].quantityintegerrequired
    • lines[].[].unit_amountintegerrequired
    • lines[].[].amountintegerrequired
    • lines[].[].account_idstring | nullrequired
    • subtotalintegerrequired
    • taxintegerrequired
    • totalintegerrequired
    • amount_paidintegerrequired
    • amount_written_offintegerrequired
    • amount_dueintegerrequired
    • status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • journal_entry_idstring | nullrequired
    • created_bystringrequired
    • finalized_atstring | null (date-time)required
    • paid_atstring | null (date-time)required
    • voided_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Uncollectible

Write off an unpaid invoice as uncollectible

POST/v1/garden/invoices/{invoice}/uncollectible

garden:writeTested with an API keygarden_markInvoiceUncollectible

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 · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • reasonstring | null

    max length 500

  • expense_account_idstring

    Default the bad-debt account

Responses

  • 200The uncollectible invoice
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • customer_idstringrequired
    • currencystringrequired
    • issue_datestring (date)required
    • due_datestring (date)required
    • memostring | nullrequired
    • linesobject[]required
    • lines[].[].descriptionstringrequired
    • lines[].[].quantityintegerrequired
    • lines[].[].unit_amountintegerrequired
    • lines[].[].amountintegerrequired
    • lines[].[].account_idstring | nullrequired
    • subtotalintegerrequired
    • taxintegerrequired
    • totalintegerrequired
    • amount_paidintegerrequired
    • amount_written_offintegerrequired
    • amount_dueintegerrequired
    • status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • journal_entry_idstring | nullrequired
    • created_bystringrequired
    • finalized_atstring | null (date-time)required
    • paid_atstring | null (date-time)required
    • voided_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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 '{}'

Void

Void a draft, or an open invoice with no payments

POST/v1/garden/invoices/{invoice}/void

garden:writeTested with an API keygarden_voidInvoice

Scope garden:write. Needs If-Match. An open invoice's receivable is reversed.

Parameters

  • invoicepath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • reasonstring | null

    max length 500

Responses

  • 200The void invoice
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when finalized, e.g. INV-2026-000001

    • customer_idstringrequired
    • currencystringrequired
    • issue_datestring (date)required
    • due_datestring (date)required
    • memostring | nullrequired
    • linesobject[]required
    • lines[].[].descriptionstringrequired
    • lines[].[].quantityintegerrequired
    • lines[].[].unit_amountintegerrequired
    • lines[].[].amountintegerrequired
    • lines[].[].account_idstring | nullrequired
    • subtotalintegerrequired
    • taxintegerrequired
    • totalintegerrequired
    • amount_paidintegerrequired
    • amount_written_offintegerrequired
    • amount_dueintegerrequired
    • status"draft" | "open" | "partially_paid" | "paid" | "void" | "uncollectible"required
    • journal_entry_idstring | nullrequired
    • created_bystringrequired
    • finalized_atstring | null (date-time)required
    • paid_atstring | null (date-time)required
    • voided_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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 '{}'

Post

Post a draft journal entry

POST/v1/garden/journal-entries/{entry}/post

garden:writeTested with an API keygarden_postJournalEntry

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 · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Responses

  • 200The posted entry
    Response fields
    • idstringrequired
    • books_idstringrequired
    • numberstring | nullrequired

      Assigned when posted, e.g. JE-2026-000001

    • entry_datestring (date)required
    • descriptionstringrequired
    • memostring | nullrequired
    • status"draft" | "posted" | "reversed" | "discarded"required
    • sourceobject | nullrequired

      The record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries

    • reverses_idstring | nullrequired
    • reversed_by_idstring | nullrequired
    • linesobject[]required
    • lines[].[].line_nointegerrequired
    • lines[].[].account_idstringrequired
    • lines[].[].debitintegerrequired
    • lines[].[].creditintegerrequired
    • lines[].[].memostring | nullrequired
    • totalintegerrequired

      Sum of the debits

    • created_bystringrequired
    • posted_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • 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/post" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Reverse

Reverse a posted manual journal entry

POST/v1/garden/journal-entries/{entry}/reverse

garden:writeTested with an API keygarden_reverseJournalEntry

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 | null

    max length 500

Responses

  • 201The reversed entry and its reversal
    Response fields
    • reversedobjectrequired
    • reversed.idstringrequired
    • reversed.books_idstringrequired
    • reversed.numberstring | nullrequired

      Assigned when posted, e.g. JE-2026-000001

    • reversed.entry_datestring (date)required
    • reversed.descriptionstringrequired
    • reversed.memostring | nullrequired
    • reversed.status"draft" | "posted" | "reversed" | "discarded"required
    • reversed.sourceobject | nullrequired

      The record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries

    • reversed.reverses_idstring | nullrequired
    • reversed.reversed_by_idstring | nullrequired
    • reversed.linesobject[]required
    • reversed.lines[].[].line_nointegerrequired
    • reversed.lines[].[].account_idstringrequired
    • reversed.lines[].[].debitintegerrequired
    • reversed.lines[].[].creditintegerrequired
    • reversed.lines[].[].memostring | nullrequired
    • reversed.totalintegerrequired

      Sum of the debits

    • reversed.created_bystringrequired
    • reversed.posted_atstring | null (date-time)required
    • reversed.versionintegerrequired
    • reversed.created_atstring (date-time)required
    • reversed.updated_atstring (date-time)required
    • reversalobjectrequired
    • reversal.idstringrequired
    • reversal.books_idstringrequired
    • reversal.numberstring | nullrequired

      Assigned when posted, e.g. JE-2026-000001

    • reversal.entry_datestring (date)required
    • reversal.descriptionstringrequired
    • reversal.memostring | nullrequired
    • reversal.status"draft" | "posted" | "reversed" | "discarded"required
    • reversal.sourceobject | nullrequired

      The record that posted it (invoice, receipt, payment, payout, reversal); null for manual entries

    • reversal.reverses_idstring | nullrequired
    • reversal.reversed_by_idstring | nullrequired
    • reversal.linesobject[]required
    • reversal.lines[].[].line_nointegerrequired
    • reversal.lines[].[].account_idstringrequired
    • reversal.lines[].[].debitintegerrequired
    • reversal.lines[].[].creditintegerrequired
    • reversal.lines[].[].memostring | nullrequired
    • reversal.totalintegerrequired

      Sum of the debits

    • reversal.created_bystringrequired
    • reversal.posted_atstring | null (date-time)required
    • reversal.versionintegerrequired
    • reversal.created_atstring (date-time)required
    • reversal.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 '{}'

Authorize

Ask Auto again, as you, for a payment waiting for authority

POST/v1/garden/payments/{payment}/authorize

garden:writeTested with an API keygarden_authorizePayment

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
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 202Waiting for authority (requires_authority), with Auto's reasons and who it escalated to
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Ask Auto again, as you, for a payout waiting for authority

POST/v1/garden/payouts/{payout}/authorize

garden:manageTested with an API keygarden_authorizePayout

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
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 202Waiting for authority (requires_authority), with Auto's reasons and who it escalated to
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • 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
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/garden/payouts/$PAYOUT/authorize" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Cancel

Cancel a payment waiting for authority

POST/v1/garden/payments/{payment}/cancel

garden:writeTested with an API keygarden_cancelPayment

Scope garden:write. Only a payment in requires_authority can be cancelled.

Parameters

  • paymentpath · stringrequired

Request body application/json

  • reasonstring | null

    max length 500

Responses

  • 200The payment or payout after the call
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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 '{}'

Cancel a payout waiting for authority

POST/v1/garden/payouts/{payout}/cancel

garden:manageTested with an API keygarden_cancelPayout

Scope garden:manage. Only a payout in requires_authority can be cancelled.

Parameters

  • payoutpath · stringrequired

Request body application/json

  • reasonstring | null

    max length 500

Responses

  • 200The payment or payout after the call
    Response fields
    • idstringrequired
    • object"payment" | "payout"required
    • books_idstringrequired
    • typestringrequired
    • counterparty_idstring | nullrequired
    • amountintegerrequired
    • currencystringrequired
    • from_account_idstringrequired
    • to_account_idstringrequired
    • memostringrequired
    • rail"manual" | "sandbox"required

      sandbox settles inside Garden in test mode; manual records money already moved outside Garden. Live rails are off.

    • livemodefalserequired
    • status"requires_authority" | "succeeded" | "failed" | "cancelled"required
    • authorityanyrequired

      Auto's latest authority check: outcome, reasons, escalate_to, check_id

    • failureanyrequired

      Why it failed, e.g. {"code":"insufficient_funds","available","amount"}; null otherwise

    • requested_bystringrequired
    • authorized_bystring | nullrequired
    • journal_entry_idstring | nullrequired
    • settled_atstring | null (date-time)required
    • cancelled_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • 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/payouts/$PAYOUT/cancel" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Whoami

Show the identity Garden sees for your credential

GET/v1/garden/whoami

garden:readTested with an API keygarden_whoami

Scope garden:read.

Responses

  • 200Org, principal, principal kind and scopes as the gateway signed them
    Response fields
    • orgstringrequired
    • principalstringrequired
    • kind"api_key" | "m2m_token" | "bridge_session"required
    • scopesstring[]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"

L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support