# YNAB in your Mac’s menu bar

Legato reads your YNAB plan through YNAB’s API and shows it in your Mac’s menu bar on three pages: Budget, Accounts and Upcoming. Budget has the month’s numbers and what’s waiting for your approval. Accounts has your balances and bank links. Upcoming has your scheduled transactions. The pages don’t assign money, move it or change categories. The one button approves a transaction.

## 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](https://api.ynab.com/). `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.

| Request | Page | When | What it does |
| --- | --- | --- | --- |
| `GET /v1/plans/last-used/months/{month}` | Budget | Every 15 and every 30 minutes, and for each month you step to | That month’s Ready to Assign, Age of Money and totals, and every category’s assigned, activity and available amounts. |
| `GET /v1/plans/last-used/months/{month}/transactions?since_date={month}` | Budget | Every 30 minutes, and for each month you step to | That month’s transactions, for the list under each category. |
| `GET /v1/plans/last-used/transactions?type=unapproved&since_date=2000-01-01` | Budget | Every 15 minutes | The transactions waiting for approval, dated 2000 or later. |
| `GET /v1/plans/last-used/accounts` | Accounts | Every hour | Each account’s type, balance, and whether its bank link needs attention. |
| `GET /v1/plans/last-used/scheduled_transactions` | Upcoming | Every hour | Each scheduled transaction’s next date, amount and frequency. |
| `GET /v1/plans/last-used/settings` | All three | With each of the others | Your plan’s currency, which labels the amounts. |
| `PUT /v1/plans/last-used/transactions/{id}` | Budget | When you press Approve and confirm | Marks that one transaction approved, the same as approving it in YNAB. |

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](https://legatobar.com/docs/sources.md) describes the supported authentication methods.

## Set it up

1. Install Legato and connect your local agent, or use the bundled `legato` command. See [Quickstart](https://legatobar.com/docs/quickstart.md).
2. 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.
3. Download the three pages. They work as they are: keep the API address and the mappings.
4. Add them using the agent prompt, or run `/Applications/Legato.app/Contents/Helpers/legato set ynab-budget ynab-budget.json`, then the same for `ynab-accounts` and `ynab-upcoming`. Keep those page IDs: the pages link to each other by them. Don’t replace an existing page without reading it first.
5. In Settings → Secrets, save the token under `ynab`, bound to `api.ynab.com`. All three pages use it. You can also link a [1Password reference](https://legatobar.com/docs/1password.md).
6. If you have more than one plan, replace `last-used` in every path with your plan’s ID, the long code after `app.ynab.com/` when the plan is open.
7. 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

```prompt
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

- [Download Budget (ynab-budget.json)](https://legatobar.com/examples/ynab-budget.json)
- [Download Accounts (ynab-accounts.json)](https://legatobar.com/examples/ynab-accounts.json)
- [Download Upcoming (ynab-upcoming.json)](https://legatobar.com/examples/ynab-upcoming.json)

## 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](https://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.

## Verification

On November 11, 2026, every request the pages make went through Legato’s own fetcher to YNAB’s API (v1.91.0) for a real but new plan, with no accounts or transactions yet. That checked the sign-in, each answer’s fields, the empty pages, and that asking for a month before the plan began fails instead of answering with another month. A busy month, with overspending, splits, transfers, unapproved transactions, bank links that need attention and scheduled transactions, is checked by tests with made-up answers. Approve wasn’t pressed on a real transaction. Illustrations use made-up readings. See the [service index](https://legatobar.com/services/) for other examples.
