How can we help?

Configuring Ubiquiti UniFi Integration in Auvik

Follow

Auvik integrates with Ubiquiti UniFi exclusively through unifi.ui.com https://api.ui.com. To connect UniFi with Auvik, create an API key in UniFi Site Manager with Site Manager, Network, and Protect access, then add and validate the key in Auvik.

Prerequisites and permissions

  • An administrator account that can sign in to UniFi Site Manager https://unifi.ui.com.

  • The UniFi account used to create the API key must have permission to each console Auvik needs to monitor. Seeing a site or console in Site Manager is not enough; Auvik must be able to access each console so UniFi can proxy Network and Protect API requests to it which means the API key created must have the correct permissions.

  • Console firmware version must be greater than 5.1.

  • Access to the Auvik tenant or site where the credential will be added.

  • An API key with the Site Manager scope enabled.

  • Under UniFi Applications, select only the Network and Protect applications. Do not grant additional UniFi application permissions unless your organization specifically requires them.

Permission expectations and common scenarios

Before generating the key, confirm what the UniFi account can do. Auvik network monitoring uses UniFi cloud access to discover consoles and sites, but Network and Protect data requires UniFi to relay requests to each specific console. A key that can list a console does not always mean Auvik can retrieve Network or Protect details from that console.

Scenario

Expected outcome

What to do

The API key is created by a UniFi account that has the required permissions to the console.

Auvik can discover the console and collect Network and Protect data for the sites allowed by the key.

Use the Site Manager API key with Site Manager, Network, and Protect access.

The API key can list the site or console, but the account does not have permission to that console.

Auvik may see the console or site but may not be able to collect full Network or Protect data.

Create the API key from a user account that has permissions to the console, or have the console owner provide an appropriate key.

The key is missing Network or Protect application access.

Connection testing or discovery may succeed partially, but Network or Protect information may be missing.

Edit or regenerate the key and select only the Network and Protect applications under UniFi Applications.

A local console key is used instead of a Site Manager cloud key.

The credential may fail authentication against api.ui.com.

Use a Site Manager API key created at https://unifi.ui.com for this Auvik integration.

 

Important: For Auvik, seeing sites with a user account is not sufficient. The account creating the API key must be able to access every console Auvik needs to monitor so UniFi can proxy the required Network and Protect API requests.

Generate an API key in UniFi

UniFi API keys allow Auvik to securely access UniFi Cloud information.

  1. Log in to unifi.ui.com https://unifi.ui.com.

  2. Select Settings from the lower-left navigation menu.

    Screenshot 2026-10-12 at 11.21.01 AM.png

  3. Select API Keys.

    Screenshot 2026-10-12 at 11.20.49 AM.png

  4. Click Create New API Key.

    Screenshot 2026-10-12 at 11.16.51 AM.png

  5. Enter a descriptive name, such as Auvik Integration.

  6. Select an expiration period. You can select Never expires, subject to your organization's security policy.

  7. Enable Site Manager.

  8. Enable UniFi Applications, then select Network and Protect. Select All Sites or the specific sites that Auvik should access.

  9. Click Create or Generate.

  10. Copy the API key and store it securely. The complete key may not be displayed again after the creation window is closed.

Protect the API key as you would any other credential. Do not share it in tickets, chat messages, or unsecured documents.

Add the API key to Auvik

  1. Log in to the Auvik platform.

  2. Select the appropriate tenant or site.

  3. Go to Admin > Discovery > Manage Credentials.

  4. Select the API Credentials tab.

  5. Click Add API Credentials.

  6. Select Ubiquiti UniFi from the credential type list.

    Screenshot 2026-10-12 at 11.34.55 AM.png

  7. Complete the credential fields:

    • Type: Ubiquiti UniFi API.

    • Name: Enter a descriptive name, such as UniFi Cloud API - Main.

    • API Key: Paste the key generated in UniFi.

    • Auvik Collector: Select the designated collector.

    • Ubiquiti UniFi Host URL: Use api.ui.com unless instructed otherwise.

  8. Click Test Connection.

  9. After the connection test succeeds, click Save.

The credentials must pass the connection test before they can be saved. After saving, Auvik can begin discovering the UniFi sites and applications permitted by the API key.

Mapping Unifi Sites across multiple Auvik sites

When one Unifi dashboard contains networks belonging to multiple Auvik sites, configure the API credentials once at the appropriate scope and map each each Unifi network to the correct Auvik site.

Before saving the configuration, confirm:

  • Each Site network is mapped to the intended Auvik site.

  • The selected collector can reach the networks and devices that Auvik must discover.

  • The collector has the required routing, firewall, and protocol access.

To map to child sites:

  1. Select the integration’s name

    Screenshot 2026-10-26 at 8.09.46 AM.png

  2. Then edit the site you want mapped to an Auvik site

    Screenshot 2026-10-26 at 8.13.44 AM.png
  3. Then map the child site in Auvik, to the site listed at unifi.ui.com

    Screenshot 2026-10-26 at 8.15.33 AM.png

  4. Repeat through all Auvik Sites.

Update an existing credential

Update the Auvik credential when the UniFi API key is rotated or its configuration changes.

  1. Go to Admin > Discovery > Manage Credentials.

  2. Select the API Credentials tab.

  3. Find the Ubiquiti UniFi credential and open its action menu.

  4. Select Edit.

  5. Enter the new API key or update the required settings.

  6. Click Test Connection.

  7. When the test succeeds, click Save.

Troubleshooting connection tests

  • Collector is not approved for the site: The collector must be approved for the sites it is mapped to.

  • Invalid or failed authentication: Confirm that the complete API key was copied from UniFi and has not expired or been revoked.

  • Sites are missing: Confirm that the API key includes the Site Manager scope and that the required sites are selected.

  • Network or Protect data is missing: Confirm that both the Network and Protect applications are enabled for the API key.

  • Connection cannot be established: Confirm that the host URL is api.ui.com and that the selected Auvik collector can reach the required UniFi Cloud services.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request