What you’ll see
Todoist
- Due, Upcoming and Inbox, one tab each, every row a task you can tick. Due is today’s tasks, then the overdue ones. Upcoming is the next 7 days after today, under each day. Seven show at a time, with Show N more for the rest.
- Each row says its day, its time when it has one, and its project; a subtask names its parent instead (
↳ Clean the gutters). A repeating task has a small repeat mark after its name. - Projects: the projects with open tasks, the most first, each with its count. Each one opens its own page.
- Completed, a closed section: what you’ve completed today and in the last 7 days, each day’s count, and the latest ones.
Project
One page for every project. It shows the project’s open tasks under their sections, in Todoist’s order, fifteen at a time, to tick off as on Due.
When Todoist has more than Legato reads (see below), a note says so and links to Todoist.
Status
Nothing counts as a problem: a to-do list is its own status, so overdue tasks don’t turn the page orange.
How it connects
Legato asks Todoist’s API v1 at https://api.todoist.com, sending the access token from your connection, or your API token, in an Authorization header. Everything goes from your Mac to Todoist; nothing passes through Legato’s servers.
Requests it makes on its own 9
- GET
/api/v1/tasks/filter?query=today Today’s tasks, the start of Due.
TodoistEvery 5 minutes
- GET
/api/v1/tasks/filter?query=overdue Overdue tasks, after today’s in Due.
TodoistEvery 5 minutes
- GET
/api/v1/tasks/filter?query=7 days & !today & !overdue Upcoming: the next 7 days after today.
TodoistEvery 5 minutes
- GET
/api/v1/tasks/filter?query=#Inbox The Inbox.
TodoistEvery 5 minutes
- GET
/api/v1/tasksEvery open task: each project’s count, and a subtask’s parent.
TodoistEvery 5 minutes
- GET
/api/v1/projectsYour projects’ names.
TodoistEvery 5 minutes
- GET
/api/v1/tasks/completed/statsTasks completed each day.
TodoistEvery 5 minutes
- GET
/api/v1/activities?event_type=completed The latest completed tasks.
TodoistEvery 5 minutes
GET /api/v1/projects/<id>,/tasks?project_id=<id>,/sections?project_id=<id>One project: its name, open tasks and sections.
ProjectEvery 5 minutes while it’s open
Requests it makes when you act 1
- POST
/api/v1/tasks/<id>/closeCompletes the task, as ticking it in Todoist does: a repeating task moves to its next date.
BothWhen you tick a task
Sources and buttons explains each part of a page.
Set it up
- Add the pages. Paste the prompt into your agent, or download both pages and run
/Applications/Legato.app/Contents/Helpers/legato set todoist-project todoist-project.json, then the same fortodoist. Keep those page IDs: each project on Todoist opens its page bytodoist-project. - Connect Todoist. In Settings → Secrets, choose Connect Todoist on the
todoistrow. Sign in to Todoist in your browser and allow access. Legato asks to read and change your tasks, so you can tick them off.
The cards fill within a minute.
To use an API token instead, open Settings → Integrations → Developer in Todoist and copy the token. In Settings → Secrets, set todoist to it for api.todoist.com. A 1Password reference works too.
Prompt for your agent
Add 2 Legato pages for Todoist, starting from https://legatobar.com/examples/todoist.json, https://legatobar.com/examples/todoist-project.json. Use the page IDs todoist, todoist-project 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 both pages as they are, keeping their IDs and the API address. I’ll connect Todoist, or save an API token as todoist, in Settings → Secrets myself. Don’t tick any task 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
Why is Due today’s tasks, then overdue?
So what’s due today stays at the top, however many overdue tasks there are. Each group has its own heading, Today and Overdue.
What does ticking a repeating task do?
What ticking it in Todoist does: Todoist moves it to its next date, and the row goes when the page next reads Todoist.
Why does a project show a lot of tasks at once?
Its page lists every open task, including those due later and those with no date, as Todoist’s project view does. Fifteen show at a time, with Show N more for the rest.
What if I have a lot of tasks?
Each request reads Todoist’s first page of answers, up to 200 tasks, and each list shows up to 60. Todoist says when it has more, and then the page does too: a note links to Todoist for the full list, and project counts read “At least”. A count without “At least” is complete.
Why is Recently completed empty?
On Todoist’s free plan, the activity log behind it keeps only a short history. Done each day comes from your completion stats and still counts.