Skip to content

Device Management

UniFi
API integration

Ship Device Management features without building the integration. Full UniFi API access via Proxy and 10+ MCP-ready tools for AI agents — extend models and mappings to fit your product.

Talk to us
UniFi

Use Cases

Why integrate with UniFi

Common scenarios for SaaS companies building UniFi integrations for their customers.

01

Automate MSP billing based on deployed UniFi hardware

MSP business management platforms can poll UniFi hosts, sites, and devices to count active access points, switches, and gateways per client, then feed exact fleet counts into recurring billing and compliance workflows.

02

Zero-touch guest Wi-Fi for hospitality and coworking software

PMS and workspace booking platforms can provision and revoke UniFi guest access by creating and bulk-deleting console paths, tying network access directly to check-ins, bookings, or membership status.

03

Multi-site ISP and SD-WAN observability for retail chains

Network observability SaaS can ingest UniFi ISP metrics and SD-WAN config status across hundreds of branch locations to correlate WAN health with in-store systems and surface SLA violations in real time.

04

Unified physical security dashboards

Security aggregation platforms can proxy requests through UniFi console paths to fetch UniFi Protect camera state and liveview metadata, letting operators view UniFi alongside other vendors in a single pane.

05

Firmware and asset compliance reporting for IT platforms

IT asset management and RMM tools can sync UniFi device inventory, firmware status, and connectivity state to auto-generate compliance tickets and populate CMDB records without manual audits.

What You Can Build

Ship these features with Truto + UniFi

Concrete product features your team can ship faster by leveraging Truto’s UniFi integration instead of building from scratch.

01

Fleet inventory sync across sites and hosts

Continuously ingest UniFi hosts, sites, and devices to maintain an up-to-date asset hierarchy with models, MAC addresses, firmware, and online/offline state inside your product.

02

Automated guest voucher lifecycle

Programmatically create UniFi console paths to issue Wi-Fi vouchers on demand and use bulk delete to revoke them when a stay, booking, or session ends.

03

SD-WAN and ISP health dashboards

Surface UniFi SD-WAN configs, config status, and ISP metric queries in your app to visualize WAN latency, tunnel state, and uptime trends across every customer site.

04

Firmware compliance and drift alerts

Detect devices running outdated firmware from the UniFi device list and trigger tickets or notifications in your workflow when a fleet falls out of compliance.

05

UniFi Protect camera metadata embedding

Use console path proxying to fetch UniFi Protect camera state, model, and liveview references so users can access footage context without leaving your product.

06

Bulk console path management for provisioning workflows

Use bulk update and bulk delete operations on UniFi console paths to script large-scale network configuration changes across multi-tenant deployments.

SuperAI

UniFi AI agent tools

Comprehensive AI agent toolset with fine-grained control. Integrates with MCP clients like Cursor and Claude, or frameworks like LangChain.

list_all_uni_fi_devices

List UniFi devices managed by hosts where the calling UI account is the owner or a super admin. Returns: hostId, hostName, devices, updatedAt. The devices array includes per-device id, mac, model, status, version, and firmwareStatus. Optional filters: host_ids, time.

list_all_uni_fi_hosts

List UniFi hosts associated with the UI account making the API call. Returns: id, hardwareId, type, ipAddress, owner, isBlocked, registrationTime, lastConnectionStateChange, latestBackupTime, userData, reportedState. The structure of userData and reportedState may vary depending on the UniFi OS or Network Server version.

get_single_uni_fi_host_by_id

Get a UniFi host by id. Returns the full host object including id, hardwareId, type, ipAddress, owner, isBlocked, registrationTime, lastConnectionStateChange, latestBackupTime, userData, and reportedState. The structure of userData and reportedState may vary depending on the UniFi OS or Network Server version. Required: id.

list_all_uni_fi_sites

List all UniFi sites associated with the UI account making the API call. Returns: siteId, hostId, meta, statistics, permission, isOwner. The meta and statistics field structures may vary by UniFi Network version.

list_all_uni_fi_sd_wan_configs

List all hub-and-spoke SD-WAN configurations associated with the UniFi account. Returns: id, name, type.

get_single_uni_fi_sd_wan_config_by_id

Get detailed information about a specific SD-WAN configuration in UniFi by id. Returns the full config object including id, name, type, variant, settings, hubs, and spokes. Required: id.

list_all_uni_fi_sd_wan_config_status

Get the deployment status of a specific UniFi SD-WAN configuration, including hub and spoke WAN status, tunnel connections, errors, and warnings. Returns: id, fingerprint, updatedAt, hubs, spokes, lastGeneratedAt, generateStatus, errors, warnings. Required: sd_wan_config_id.

list_all_uni_fi_isp_metrics

List UniFi ISP metrics for all sites linked to the API key using 5m or 1h intervals. Returns: metricType, periods, hostId, siteId. The `duration` parameter is mutually exclusive with `begin_timestamp` and `end_timestamp`. 5m metrics are retained for at least 24 hours, 1h metrics for at least 30 days. Required: type.

list_all_uni_fi_isp_metric_queries

Query UniFi ISP metrics for specified sites and time ranges, returning WAN performance data per interval. Returns: metricType, periods, hostId, siteId. 5m metrics are retained for at least 24 hours and 1h metrics for at least 30 days. Required: type.

list_all_uni_fi_console_paths

Forward a GET request to a UniFi console's proxied API path via the UniFi Site Manager connector. Returns: id, internalReference, name. Required: console_id, path.

create_a_uni_fi_console_path

Forward a POST request to a UniFi console's Network or Protect application via the UniFi Site Manager connector proxy. The request body is whatever the proxied upstream endpoint expects, and the upstream API response is passed through directly. Required: console_id, path.

uni_fi_console_paths_partial_update

Forward a PATCH request to a UniFi console's proxied API path via the cloud connector. Returns the upstream response passed through directly — the shape depends on the path being proxied (e.g., id, liveview, modelKey, name, state, streamLimit for a Protect viewer, or vouchersDeleted for a Network voucher operation). Required: id, path. Console firmware must be >= 5.0.3.

uni_fi_console_paths_bulk_update

Forward a PUT request to a UniFi console's Network or Protect application via the UniFi Site Manager connector proxy. Returns: id, metadata, name, liveview, modelKey, state, streamLimit, vouchersDeleted, applicationVersion. Required: id, path.

uni_fi_console_paths_bulk_delete

Forward a DELETE request to a UniFi console's proxied API path via the cloud connector. Returns the upstream response passed through directly — the shape depends on the path being proxied (e.g., vouchersDeleted for a Network voucher deletion, or success for a guest access revocation). Required: id, path. Console firmware must be >= 5.0.3.

Why Truto

Why use Truto’s MCP server for UniFi

Other MCP servers give you a static tool list for one app. Truto gives you a managed, multi-tenant MCP infrastructure across 650+ integrations.

01

Auto-generated, always up to date

Tools are dynamically generated from curated documentation — not hand-coded. As integrations evolve, tools stay current without manual maintenance.

02

Fine-grained access control

Scope each MCP server to read-only, write-only, specific methods, or tagged tool groups. Expose only what your AI agent needs — nothing more.

03

Multi-tenant by design

Each MCP server is scoped to a single connected account with its own credentials. The URL itself is the auth token — no shared secrets, no credential leaking across tenants.

04

Works with every MCP client

Standard JSON-RPC 2.0 protocol. Paste the URL into Claude, ChatGPT, Cursor, or any MCP-compatible agent framework — tools are discovered automatically.

05

Built-in auth, rate limits, and error handling

Tool calls execute through Truto’s proxy layer with automatic OAuth refresh, rate-limit handling, and normalized error responses. No raw API plumbing in your agent.

06

Expiring and auditable servers

Create time-limited MCP servers for contractors or automated workflows. Optional dual-auth requires both the URL and a Truto API token for high-security environments.

How It Works

From zero to integrated

Go live with UniFi in under an hour. No boilerplate, no maintenance burden.

01

Link your customer’s UniFi account

Use Truto’s frontend SDK to connect your customer’s UniFi account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

02

We handle authentication

Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

03

Call our API, we call UniFi

Truto’s Proxy API is a 1-to-1 mapping of the UniFi API. You call us, we call UniFi, and pass the response back in the same cycle.

04

Unified response format

Every response follows a single format across all integrations. We translate UniFi’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about UniFi on Truto

Authentication, rate limits, data freshness, and everything else you need to know before you integrate.

How does authentication work for the UniFi integration?

UniFi's Site Manager API uses API key authentication issued from a Ubiquiti account. Truto handles secure storage and injection of the API key on behalf of your end users, so they only need to paste it once during connection.

Can we perform write operations on UniFi through Truto?

Yes. In addition to read operations for devices, hosts, sites, SD-WAN configs, and ISP metrics, you can create, partially update, bulk update, and bulk delete UniFi console paths — which is how most provisioning and configuration actions (like guest vouchers or Protect calls) are executed.

How do we access data that isn't exposed as a dedicated endpoint, like UniFi Protect cameras or guest vouchers?

UniFi's Site Manager acts as a cloud proxy to local consoles. You can use the console path tools (create, partial update, bulk update, bulk delete) to send arbitrary requests to a customer's UniFi Network or Protect console, giving you access to endpoints beyond the standard list resources.

What UniFi data can we pull for multi-site customers like MSPs?

You can list all hosts (consoles), sites under each host, and devices across the fleet, plus per-host details. This gives you a complete hierarchy of consoles → sites → devices suitable for multi-tenant MSP or franchise use cases.

How fresh is the ISP and SD-WAN telemetry?

UniFi exposes ISP metrics at 5-minute and 1-hour intervals via its metric queries endpoint, and SD-WAN config status reflects near-real-time tunnel and hub-and-spoke state. Truto passes these through so your polling cadence determines freshness in your app.

Are there rate limits we should design around?

Ubiquiti enforces per-API-key rate limits on the Site Manager API. Truto surfaces rate limit responses and supports retry and backoff patterns, and for high-volume scenarios we recommend batching via the bulk console path operations rather than issuing many single requests.

UniFi

Get UniFi integrated into your app

Our team understands what it takes to make a UniFi integration successful. A short, crisp 30 minute call with folks who understand the problem.