Network

UniFi

See how your UniFi network is doing without opening the UniFi app: whether each site’s internet is connected, how its latency looked over the day, and every gateway, switch, access point, camera and drive as a dot. Each site opens a page of its own with its latency and each WAN over a day, a week or a month. The pages read Ubiquiti’s cloud Site Manager, so one key covers every console your account owns.

Install in LegatoSet it up by hand ↓

UniFi
Network
Latency
9ms
0100
24h agoNow
Devices1 of 11 need attention
NetworkGatewayCore switchGarage switchLoft APOffice APPatio APProtectDoorbellDrivewayFront doorNVROtherStorage
Updated 12 min ago

What you’ll see

UniFi

  • Details: your sites and your consoles, as two lists. A site is red when none of its WANs is connected or its gateway is offline, and its line names the ISP and which WAN is up. A second WAN that isn’t connected is said in words and isn’t a problem for the page, so a spare left unplugged stays quiet. A console is red when it stops reporting to UniFi, which is what a console that has lost its internet looks like from the cloud, and grey when UniFi has no report from it yet. A site whose console has no report is grey too. Each site opens its page, and an account without a Network site has no Sites list. When two in one list share a name, each gets the end of its ID added. Past 60 in a list, the ones that need a look come first and the title says how many there are.
  • Network (when you have a Network site): the internet (the ISP and which WAN is up, or how many sites are connected when you have several), clients on Wi-Fi and wired, every device with how many are offline and how many have a firmware update waiting, and Wi-Fi retries.
  • Latency: the last 24 hours from UniFi’s own 5-minute ISP measurements, when your account has one site. With several, each site’s page has its own. It’s read on its own, so the rest of the page still loads if it can’t.
  • Devices: every device across your consoles as a dot, under Network, Protect and Other. Red when it’s offline, grey in any other state UniFi reports. A device waiting for firmware stays green, and says so when you point at it. When two devices share a name, each gets the end of its MAC address added. A dot that changes sends a notification. 24 show at once, offline ones first, with Show N more. Past 60, the card keeps the offline ones and says how many there are. The pages read up to 2,000 sites, 200 consoles and 2,000 groups of devices; past that, a note says the counts cover part of them.

Site

One page for each site, opened from Details or the Internet line, and titled with the site’s name (for a site still called Default, its console’s name).

  • Details: the site’s WANs now, as on the overview.
  • Today, 7 days, 30 days: a row for the span the page shows.
  • Latency: every 5 minutes for Today, hourly for 7 and 30 days. With two WANs up in the span, a line for each, and a longer stretch when one was down is a gap in its line. With one, the line is the highest average among the WANs that were up.
  • Internet: each WAN over the span: its ISP, how much of the time it was up, and how much of the time it lost packets. A WAN with no link in the whole span reads Not connected.
  • Site: clients, devices, Wi-Fi retries and the gateway’s model.

Status

  • Watches every site, console and device the key can see.
  • Red when a device is offline, when a site has no WAN connected or its gateway is offline, or when a console stops reporting to UniFi.
  • Grey while UniFi has no report from a console, or a device or console is in a state other than online or offline.
  • A spare WAN that isn’t connected and a firmware update waiting don’t count as a problem.
  • Red once Site Manager stops answering.
  • Notifies you when it turns orange or red.

How it connects

The pages read Ubiquiti’s Site Manager API at api.ui.com, with an API key in an X-API-Key header.

Requests it makes on its own 5

  • GET /v1/sites?pageSize=500, more pages with nextToken

    Each site’s WANs, ISP, client and device counts.

    BothEvery 2 minutes on UniFi, every 5 on a site

  • GET /v1/hosts?pageSize=50, more pages with nextToken

    Each console and whether it’s reporting.

    BothThe same

  • GET /v1/devices?pageSize=500, more pages with nextToken

    Every device on every console; on a site’s page, only to see whether its console is still reporting.

    BothThe same

  • GET/v1/isp-metrics/5m?duration=24h

    The last day of 5-minute latency.

    UniFiEvery 5 minutes

  • POST /v1/isp-metrics/5m/query (Today) or /1h/query (7 and 30 days)

    This site’s latency, uptime and packet loss from the start of the span chosen, read on its own so the site’s state still shows if it can’t load. It only reads, though it’s a POST.

    SiteEvery 5 minutes

Ubiquiti’s Site Manager API docs have the rest. Sources and buttons explains each part of a page.

Set it up

  1. Make a key. Sign in at unifi.ui.com with the account that owns your consoles, open Settings → API Keys and create one. UniFi shows it only once, so copy it then.
  2. Save it in Legato. In Settings → Secrets, save it under unifi, bound to api.ui.com. You can also link a 1Password reference.
  3. Add the pages. Paste the prompt into your agent, or download the two pages and run /Applications/Legato.app/Contents/Helpers/legato set unifi-site unifi-site.json, then legato set unifi unifi.json. Keep the ID unifi-site: every site opens it with its own ID.

The cards fill within two minutes. A wrong or deleted key is the usual reason they don’t: Site Manager answers 401, and the page notes that api.ui.com turned it down. A key made in the Network app on the console itself is a different kind of key, and Site Manager refuses it the same way.

Prompt for your agent

prompt
Add 2 Legato pages for UniFi, starting from https://legatobar.com/examples/unifi.json, https://legatobar.com/examples/unifi-site.json. Use the page IDs unifi, unifi-site 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 Site Manager API key as unifi in Settings → Secrets myself.

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 console red when my internet is fine?

Site Manager hears from each console over the internet. A console that stops reporting, because it lost its connection, restarted or was unplugged, is red until it reports again. Until then, its devices show what it last reported.

Why does it say a WAN isn’t connected?

UniFi reports each WAN port, including a second one kept for failover. When one has no link, the site’s line and its page say so, and the page counts it as a problem only when no WAN at all is connected.

Why don’t I see the latency chart?

The overview draws it when your account has one site. With several, open a site from Details. A site with no ISP measurements from UniFi yet shows no chart.

Can I restart a device or see my clients by name?

Not from these pages. They only read, and Site Manager doesn’t list clients one by one. The UniFi app does both.

The pages were checked on 17 Nov 2026 against a live UniFi account with two WANs and several consoles, using a Site Manager key. Every request above was read live, and both pages were drawn from live answers, the site page for Today, 7 days and 30 days. Following nextToken was checked with one item a page, including the empty pages Site Manager sends before the list ends. Not checked live: several Network sites, a console that has stopped reporting, and an offline gateway; the example pages have tests with made-up answers for those. Illustrations use made-up sites, consoles, devices and ISPs. See the service index for other examples.

Legato is independent and isn’t affiliated with or endorsed by Ubiquiti.