All guides

Connect UniFi (Ubiquiti)

UniFi Site Manager uses a single API key tied to your UI account. The key covers every UniFi console (host) under that account, so one paste gets every customer's network into Vectis.

What you'll need

  • UniFi Site Manager account at unifi.ui.com with at least one console adopted under it
  • API key — generated from your UI account profile
The Site Manager API is the cloud-hosted, MSP-scoped surface — not the per-controller local API. Keys live on your UI account, so a single paste covers every customer console you’ve adopted.

1. Generate the API key

  1. Sign in to unifi.ui.com with the UI account that owns your customer consoles.
  2. Click your profile avatar (top-right) and open API — on the early-access UI it lives at Settings → API Keys.
  3. Click Create API Key. Give it a name like “Vectis” so you can revoke it later without disrupting other tools.
  4. Copy the key immediately. It’s only displayed once — if you lose it, you’ll have to revoke it and mint a new one.
The key inherits the permissions of the UI account that creates it. Use a dedicated MSP-owner account rather than a personal one so revocation doesn’t cascade if a staff member leaves.

2. Paste the key into Vectis

  1. Go to Admin → Integrations and click Configure on UniFi (Ubiquiti).
  2. Paste the API key into API Key.
  3. Click Test. You should see “Connected to UniFi Site Manager” with the number of consoles visible to the key.
  4. Click Save, then Sync now.

Vectis sends the key as X-API-Key on every Site Manager call — the same header pattern UniFi’s official SDK uses.

3. Map sites to Vectis customers

After the first sync, a UniFi site mapping panel appears under the integration tile. Each row is one (host, site) pair Vectis discovered through your account. Pick the right Vectis customer for each row, or leave it unmapped if it shouldn’t surface (e.g. your own home network on the same UI account).

Only mapped sites surface on customer hubs and customer portals. Unmapped sites stay hidden — no risk of surfacing the operator’s personal Wi-Fi to a customer.

What gets synced

  • UniFi consoles (hosts) under your Site Manager account
  • Sites per host with device count and online %
  • Devices per site — firewalls, switches, access points, gateways, cameras — with model, status, last-seen, firmware
  • Per-site ISP performance metrics (latency p95, uptime %) rolled up over the last 24 hours

The Site Manager API is read-only, so Vectis never writes back to UniFi.

Common errors

401 Unauthorized — the key was revoked or mistyped. Re-copy from unifi.ui.com → profile → API Keys.

403 Forbidden — the key’s account doesn’t have access to the console it’s asking about. Adopt the console under the same account or generate the key from an account that already owns it.

429 Too Many Requests — Site Manager rate-limits per key. Vectis paces sync so this should be rare; if you see it, another tool is likely sharing the same key.

No sites visible after Test — the account owns no adopted consoles. Adopt at least one customer console first; the key only sees what the account does.

Still stuck?

Email support@mspvectis.com with the error message and we’ll unblock you.

UniFi (Ubiquiti) | Vectis