/meanyThe company and scopes this key has.
{ "company": "Acme Inc", "key": { "name": "Claude Code", "prefix": "tyr_3fK9xQ2a" }, "scopes": ["transactions:write"] }Agents
A Tyrese key lets an AI agent or script bring in transactions from anywhere. People approve what reaches the books.
In the app, open Agent keys. Name the key, choose what it can do, and set an expiry. It's shown once.
Paste the key and the short instructions into Claude Code or any agent or script.
PDF statements, CSV exports, or rows from any app the agent can reach.
Everything lands in your review queue. Nothing reaches the books until a person approves it.
Keys add transactions to review. They can't post entries or close a month.
Each key acts with its creator's role, narrowed to its scopes.
A revoked or expired key stops working on its next request.
The audit log shows which key sent what, and when.
Create a key in the app under Agent keys, then:
export TYRESE_KEY=tyr_…
# what this key can do
curl https://app.tyrese.ai/api/v1/me -H "Authorization: Bearer $TYRESE_KEY"
# pick a feed, then send rows
curl https://app.tyrese.ai/api/v1/feeds -H "Authorization: Bearer $TYRESE_KEY"
curl -X POST https://app.tyrese.ai/api/v1/transactions \
-H "Authorization: Bearer $TYRESE_KEY" -H "Content-Type: application/json" \
-d '{"feedId":"…","transactions":[{"date":"2026-03-14","amount":"-12500.00","description":"Wire to Northbeam LLC"}]}'Start at GET /api/v1: it lists every endpoint, no key needed.
Send the key as Authorization: Bearer tyr_….
Owners and finance operators create keys, each for one company, with one or both scopes:
transactions:write sends transactions and statements, and adds feedsbooks:read reads transactions and reportsKeys can expire after 30, 90 or 365 days, or never. Only a hash is stored, so a lost key can't be recovered; create a new one.
Base URL https://app.tyrese.ai/api/v1
/meanyThe company and scopes this key has.
{ "company": "Acme Inc", "key": { "name": "Claude Code", "prefix": "tyr_3fK9xQ2a" }, "scopes": ["transactions:write"] }/accountsanyThe chart of accounts, for mapping a new feed.
{ "accounts": [{ "code": "1010", "name": "Operating Cash — Primary Bank", "type": "asset" }, …] }/feedsanyFeeds you can send transactions into. A feed is one bank account, card, payroll provider or other source.
{ "feeds": [{ "id": "a3bd97ee-…", "name": "Chase Checking", "kind": "bank", "mapsTo": "1010 Operating Cash — Primary Bank" }] }/feedstransactions:writeAdd a feed. kind is bank, card, payroll or generic; mapsToAccountCode is the ledger account it posts to.
{ "name": "Coinbase", "kind": "generic", "mapsToAccountCode": "1490" }201 { "id": "f793c66f-…", "name": "Coinbase", "kind": "generic" }/transactionstransactions:writeSend up to 1,000 rows. Amounts are signed USD strings: negative is money out. Rows that fail checks come back in rejected; the rest are recorded.
{
"feedId": "a3bd97ee-…",
"transactions": [
{ "date": "2026-03-14", "amount": "-12500.00", "description": "Wire to Northbeam LLC", "externalId": "wire-8812" },
{ "date": "2026-03-15", "amount": "4200.00", "description": "Customer payment" }
]
}{ "received": 2, "recorded": 2, "duplicates": 0, "rejected": [], "nextStep": "Transactions are in the review queue for a person to approve." }/tradestransactions:writeSend exchange buys, sells and rewards (side buy, sell or reward) into an exchange feed (a generic feed mapped to the exchange's cash account). Fees add to cost on buys and come off proceeds on sells. Approving them books FIFO cost basis and realized gains; a reward is income at its USD value and opens a lot at that value.
{
"feedId": "f793c66f-…",
"trades": [{ "time": "2026-10-14T15:02:00Z", "side": "buy", "asset": "BTC", "quantity": "0.25", "totalUsd": "20847.86", "feeUsd": "12.50" }]
}{ "received": 1, "recorded": 1, "duplicates": 0, "rejected": [], "nextStep": "Trades are in the review queue. …" }/statementstransactions:writeUpload a file as multipart form data with feedId and file. A PDF statement is read line by line by AI and checked against its opening and closing balances. A CSV needs template = ramp_card, brex_card or gusto_payroll; for any other CSV, parse it and use /transactions. For exchange trades into an exchange feed, set template = kraken_trades, or exchange_trades to have any exchange CSV or PDF read by AI.
curl -X POST https://app.tyrese.ai/api/v1/statements \ -H "Authorization: Bearer $TYRESE_KEY" \ -F feedId=a3bd97ee-… -F file=@chase-march.pdf
{ "recorded": 42, "duplicates": 0, "rejected": [], "balanceGap": "0.00", "nextStep": "…" }/transactions?from=2026-03-01&to=2026-03-31&status=in_review&limit=200books:readImported transactions, newest first. status is in_review or posted; limit is 1 to 1,000.
{ "transactions": [{ "id": "…", "date": "2026-03-14", "description": "Wire to Northbeam LLC", "amount": "-12500.00", "feed": "Chase Checking", "status": "in_review" }] }/reports/profit-and-loss?from=2026-01-01&to=2026-03-31books:readProfit and loss from posted entries. Defaults to the year to date.
{ "report": "profit-and-loss", "from": "2026-01-01", "to": "2026-03-31", "revenue": "182400.00", "cogs": "21000.00", "opex": "296300.00", "otherNet": "1740.00", "netIncome": "-133160.00" }/reports/balance-sheet?asOf=2026-03-31books:readBalance sheet as of a date.
{ "report": "balance-sheet", "asOf": "2026-03-31", "assets": "…", "liabilities": "…", "equityPosted": "…", "currentYearNetIncome": "…", "totalEquity": "…", "balanced": true }/reports/trial-balance?asOf=2026-03-31books:readTrial balance as of a date.
{ "report": "trial-balance", "asOf": "2026-03-31", "rows": [{ "accountCode": "1010", "name": "…", "accountType": "asset", "debit": "…", "credit": "…" }], "totalDebit": "…", "totalCredit": "…", "balanced": true }/reports/assets?from=2026-01-01&to=2026-12-31books:readPer asset: quantity held, cost basis, sale proceeds, realized gain or loss and reward income for the period (FIFO).
{ "report": "assets", "method": "FIFO per asset", "assets": [{ "symbol": "BTC", "quantity": "0.3", "costBasis": "21000.00", "proceeds": "102252.18", "disposedCost": "74050.00", "realized": "28202.18", "rewardIncome": "0.00" }] }Errors return { "error": { "code", "message" } }.
| 401 | invalid_key | Missing, unknown, revoked or expired key |
| 403 | missing_scope | The key doesn't have the scope this call needs |
| 403 | forbidden | The key's creator no longer has permission |
| 400 | bad_json, bad_date, bad_kind, … | The request didn't pass checks; the message says why |
| 404 | feed_not_found | The feedId isn't one of this company's feeds |
| 503 | ai_unavailable | PDF reading isn't switched on for this deployment |