What you’ll see
Budget
Ready to Assign and Age of Money for the month, then what you assigned, your activity and income, and how many categories are overspent or underfunded. Each category has a bar: what it spent this month against what it had to spend, overspent ones first, then those that have used the most of their money. Click a category to see its transactions, with each piece of a split under its own category. Spending from a category with nothing assigned is listed under its own heading. Below that, the transactions waiting for your approval, newest first, each with an Approve button. The arrows step to earlier months; the approval list always shows what’s waiting now.
Accounts
Cash in your budget accounts, what’s on your credit cards, and your net worth over the last 60 days. Below that, each open account with its balance: budget accounts first, then tracking accounts. Details says whether any account linked to a bank needs reconnecting, and the health card turns orange while one does. That account comes first in the list.
Upcoming
What’s scheduled to go out and come in over the next 30 days, and each scheduled transaction on its next date for the next 7 or 30 days.
Status
- Watches the bank links on your accounts.
- Orange when one needs reconnecting in YNAB.
- Shows on Accounts and notifies you when it turns orange or red.
How it connects
Legato connects to api.ynab.com with your personal access token in a Bearer header, using YNAB’s API. last-used stands for the plan you opened most recently in YNAB. Amounts are the _currency and _formatted values YNAB sends beside each milliunit amount, labelled with your plan’s currency from its settings.
Requests it makes on its own 6
- GET
/v1/plans/last-used/months/{month}That month’s Ready to Assign, Age of Money and totals, and every category’s assigned, activity and available amounts.
BudgetEvery 15 and every 30 minutes, and for each month you step to
- GET
/v1/plans/last-used/months/{month}/transactions?since_date={month} That month’s transactions, for the list under each category.
BudgetEvery 30 minutes, and for each month you step to
- GET
/v1/plans/last-used/transactions?type=unapproved &since_date=2000-01-01 The transactions waiting for approval, dated 2000 or later.
BudgetEvery 15 minutes
- GET
/v1/plans/last-used/accountsEach account’s type, balance, and whether its bank link needs attention.
AccountsEvery hour
- GET
/v1/plans/last-used/scheduled_transactionsEach scheduled transaction’s next date, amount and frequency.
UpcomingEvery hour
- GET
/v1/plans/last-used/settingsYour plan’s currency, which labels the amounts.
All threeWith each of the others
Requests it makes when you act 1
- PUT
/v1/plans/last-used/transactions/{id}Marks that one transaction approved, the same as approving it in YNAB.
BudgetWhen you press Approve and confirm
A personal access token can read and change everything in your YNAB account, so treat it like a password. YNAB doesn’t offer read-only personal tokens. These pages only read, apart from Approve, which sends YNAB approved: true for that one transaction and nothing else. Make your budget changes in YNAB itself.
Together the pages use about 22 of the 200 requests an hour YNAB allows each token, plus a few more for each month you step to. Other tools that use the same token share that allowance. The Mac must be awake and Legato running to fetch the pages.
Sources and buttons describes the supported authentication methods.
Set it up
- Install Legato and connect your local agent, or use the bundled
legatocommand. See Quickstart. - In YNAB, open Account Settings, then Developer Settings, and under Personal Access Tokens click New Token. YNAB shows it once. Never paste it into an agent chat.
- Download the three pages. They work as they are: keep the API address and the mappings.
- Add them using the agent prompt, or run
/Applications/Legato.app/Contents/Helpers/legato set ynab-budget ynab-budget.json, then the same forynab-accountsandynab-upcoming. Keep those page IDs: the pages link to each other by them. Don’t replace an existing page without reading it first. - In Settings → Secrets, save the token under
ynab, bound toapi.ynab.com. All three pages use it. You can also link a 1Password reference. - If you have more than one plan, replace
last-usedin every path with your plan’s ID, the long code afterapp.ynab.com/when the plan is open. - Open each page and check its source status. A missing or mistyped token is the usual reason the readings don’t fill.
Prompt for your agent
Add 3 Legato pages for YNAB, starting from https://legatobar.com/examples/ynab-budget.json, https://legatobar.com/examples/ynab-accounts.json, https://legatobar.com/examples/ynab-upcoming.json. Use the page IDs ynab-budget, ynab-accounts, ynab-upcoming if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.
Add the pages as they are, keeping their page IDs. I’ll save my YNAB personal access token as ynab in Settings → Secrets myself. If I have more than one plan, ask me for the plan ID and put it in place of last-used in every path. Don’t press Approve to test it.
Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.Download the pages
Questions
Which plan do the pages show?
The one you opened most recently in a YNAB app, which YNAB calls last-used. With one plan that’s always yours. With two, the pages follow whichever you opened last, and the net-worth chart would mix both. Put your plan’s ID in place of last-used to keep them on one plan.
What does a category’s bar measure?
What the category spent this month against what it had to spend: its Available plus what went out, so money rolled over, assigned and moved in all count. A bar past its end is overspent. A category with nothing to spend, one whose only activity this month is a refund, and Credit Card Payments categories get no bar, since their activity isn’t spending. Overspending from a category with nothing assigned is listed under its own heading instead. The bars use YNAB’s own figures; the transactions under a bar are listed, not added up. The page shows 20 categories: overspent ones first, then those that have used the most of their money. A note says so when there are more.
Why does a weekly bill show only once in Upcoming?
YNAB gives each scheduled transaction’s next date and how often it repeats, not every date ahead. The pages show that next date and don’t work out the ones after it, so the 30-day totals count each schedule once. A note says so while a schedule repeats within the month. Transfers between your accounts aren’t counted as money in or out.
Are pending transactions included?
No. YNAB’s API leaves pending transactions out until they post. Uncleared transactions that have posted are included.
What does Approve do?
It marks that transaction approved in YNAB, as the check in YNAB’s own list does, after you confirm. It doesn’t clear, categorize or reconcile it. To undo it, unapprove the transaction in YNAB. To make the page read only, remove the card’s row_actions.
Why does the net-worth chart start empty?
Legato draws it from its own readings, one a day while it’s running, starting the day you add the page. YNAB’s API doesn’t give past balances. Until there are two readings a day apart, the card says it’s collecting them.
We are not affiliated, associated, or in any way officially connected with YNAB or any of its subsidiaries or affiliates. The official YNAB website can be found at www.ynab.com. The names YNAB and You Need A Budget, as well as related names, tradenames, marks, trademarks, emblems, and images are registered trademarks of YNAB.