Prerequisites and permissions
An administrator account with access to UniFi Site Manager
https://unifi.ui.com.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, the Network and Protect applications selected.
Console firmware version must be greater than 5.1
Generate an API key in UniFi
UniFi API keys allow Auvik to securely access UniFi Cloud information.
Log in to unifi.ui.com
https://unifi.ui.com.-
Select Settings from the lower-left navigation menu.
-
Select API Keys.
-
Click Create New API Key.
Enter a descriptive name, such as
Auvik Integration.Select an expiration period. You can select Never expires, subject to your organization's security policy.
Enable Site Manager.
Enable UniFi Applications, then select Network and Protect. Select All Sites or the specific sites that Auvik should access.
Click Create or Generate.
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
Log in to the Auvik platform.
Select the appropriate tenant or site.
Go to Admin > Discovery > Manage Credentials.
Select the API Credentials tab.
Click Add API Credentials.
-
Select Ubiquiti UniFi from the credential type list.
-
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.comunless instructed otherwise.
Click Test Connection.
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 Meraki 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:
-
Select the integration’s name
-
Then edit the site you want mapped to an Auvik site
-
Then map the child site in Auvik, to the site listed at unifi.ui.com
Repeat through all Auvik Sites.
Update an existing credential
Update the Auvik credential when the UniFi API key is rotated or its configuration changes.
Go to Admin > Discovery > Manage Credentials.
Select the API Credentials tab.
Find the Ubiquiti UniFi credential and open its action menu.
Select Edit.
Enter the new API key or update the required settings.
Click Test Connection.
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.comand that the selected Auvik collector can reach the required UniFi Cloud services.