What you’ll see
Vercel
- Details: domains bought through Vercel and your access token. The health card turns orange when a domain has 30 days left with auto-renew off, or the token has 14 days left (with its date saved), and red when a domain has a week or less left or the token has run out. Otherwise it names the next renewal. The page reads your first 100 domains, and says so when you have more.
- Team: what’s building or queued now, the last 24 hours’ deployments and how many failed (“At least” when there were more than the 100 the page reads), and the newest production deployment.
- Deployments: a column for each of the last 7 days. A busy team that makes more than 100 deployments in a week sees the newest 100, and the card says from which day.
- Projects: every project as a dot, by name. Orange when its newest production build failed or was blocked and an older one still serves the site, red when a failed build left nothing serving, grey while it’s paused or before its first production deployment. A failed preview stays green, with a note when you point at it. A dot that changes sends a notification. 24 show at once, what needs attention first, with Show N more. The page reads 40 projects, and the card says so when you have more. Each dot opens its project’s page.
- Recent deployments: the four newest, with their commit message, project, Production or Preview, and state. A click opens the deployment in Vercel. A build that’s running or queued has Cancel build at its right, which asks first.
Project
One page for every project, opened from its dot and titled with its name.
- Production: when the live build was deployed. If the newest production build failed, it says so and when the build still serving went live; after a rollback, it says newer builds are waiting for Promote. A click opens the site. Redeploy in its corner builds the deployment serving production again, from the same commit, after asking.
- Build time: how long each of the newest builds took.
- Project: the last 24 hours’ deployments (“At least” past the 20 the page reads), the production branch, and the framework and Node version.
- Domains: the project’s domains, with a note on one that redirects, follows a branch or isn’t verified yet (in orange). Past 20, the card’s title says it shows the first 20.
- Deployments: the seven newest, with Show N more up to 20. The one serving production says so. Each can have one button, and each asks first:
- Promote to production on a newer production build that isn’t live: one made without taking traffic, or one a rollback passed over.
- Roll back to this on an earlier production build Vercel can return to. On the Hobby plan only the build just before works, and Vercel says so if you press an older one.
- Cancel build on a build that’s running or queued.
Status
- Watches each project’s production builds.
- Orange when the newest production build failed or was blocked and an older one still serves, red when a failed build left nothing serving.
- A failed preview doesn’t count as a problem.
- Grey for a paused project or one never deployed, which never needs attention.
- Details turns orange when a domain bought through Vercel has 30 days left without auto-renew, or when the token has 14 days left.
- Notifies you when it turns orange or red.
How it connects
The pages read Vercel’s REST API at api.vercel.com with an access token as a bearer token.
Requests it makes on its own 11
- GET
/v7/deployments?limit=100 &since=… The week’s deployments, newest first.
VercelOnce a minute
- GET
/v10/projects?limit=40 Each project with its newest production build and newest deployments.
VercelEvery 2 minutes
- GET
/v4/aliases?limit=100 Which deployment each production address points at, so a failed build can be told from a site that’s down.
VercelEvery 2 minutes
- GET
/v5/domains?limit=100 Domains, with the renewal date of those bought through Vercel.
VercelOnce an hour
- GET
/v9/projects/{param.id}The project and what serves production.
ProjectOnce a minute
- GET
/v7/deployments?projectId={param.id} &limit=20 The project’s newest deployments.
ProjectOnce a minute
- GET
/v4/aliases?projectId={param.id} &limit=100 Which deployment the project’s addresses point at.
ProjectOnce a minute
- GET
/v9/projects/{param.id}/domains?production=true &redirects=false &limit=20 The project’s production addresses.
ProjectOnce a minute
- GET
/v7/deployments?projectId={param.id} &rollbackCandidate=true &limit=20 The builds Vercel can roll back to.
ProjectOnce a minute
- GET
/v7/deployments?projectId={param.id} &target=production &limit=1 The newest production deployment, however many previews came after it.
ProjectOnce a minute
- GET
/v9/projects/{param.id}/domains?limit=20 The project’s domains.
ProjectOnce a minute
Requests it makes when you act 4
- PATCH
/v12/deployments/{uid}/cancelStops a build.
BothWhen you press Cancel build
- POST
/v13/deploymentsBuilds the deployment serving production again.
ProjectWhen you press Redeploy
- POST
/v1/projects/{projectId}/rollback/{uid}Serves an earlier production build.
ProjectWhen you press Roll back to this
- POST
/v10/projects/{projectId}/promote/{uid}Serves a production build that hasn’t taken traffic yet.
ProjectWhen you press Promote to production
Vercel’s REST API docs and its limits have the rest. Sources and buttons explains each part of a page.
Set it up
- Make a token. At vercel.com/account/tokens, create a token, set its Scope to the team you want to watch, and choose when it expires. A token scoped to one project can’t read the team’s domains. Full Account works too and watches your default team.
- Save it in Legato. In Settings → Secrets, save it under
vercel, bound toapi.vercel.com, with the date it expires. You can also link a 1Password reference. - Add the pages. Paste the prompt into your agent, or download the two pages and run
/Applications/Legato.app/Contents/Helpers/legato set vercel-project vercel-project.json, thenlegato set vercel vercel.json. Keep the IDvercel-project: every dot opens it with its project’s ID.
The cards fill within a minute. A missing, expired or mistyped token is the usual reason they don’t: Vercel answers 403, and the page notes that api.vercel.com turned it down.
Prompt for your agent
Add 2 Legato pages for Vercel, starting from https://legatobar.com/examples/vercel.json, https://legatobar.com/examples/vercel-project.json. Use the page IDs vercel, vercel-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 page IDs. I’ll save my Vercel access token as vercel in Settings → Secrets myself. Don’t press Redeploy, Roll back, Promote or Cancel to test them.
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 a project orange when the site is up?
Vercel keeps serving the last good production build when a new one fails. Orange means the newest production build failed while an older one is still live: the site is up, and your latest change isn’t on it. Red means a production build failed and nothing serves production.
Does Redeploy use my latest commit?
No. It builds the deployment that serves production now again, with the same commit and the project’s current settings and environment variables. Push a commit to ship a newer one.
What happens after Roll back to this?
Vercel serves that earlier build and stops sending new production builds to your domains until you promote one. After a rollback, Promote to production shows on the newer builds; pressing it, or Promote in Vercel, puts things back. Vercel’s Instant Rollback page has the details.
Why don’t I see usage or costs?
Vercel sends usage and charges as JSON Lines, one record a line, which Legato doesn’t read yet.
Can it watch more than one team?
One team at a time: the team the token is scoped to.