CONTROL4 UNIFI: Setup API keys correctly to avoid Error 401 / Unauthorised Error
Important Notice
UniFi Access doesn't use the same API Key as UniFi Protect/Network. Keys created for Protect / Network will not work. If the incorrect key is used, you will get a 401 / Unauthorised error in API Connection Status
Setting Up UniFi Network / Protect Keys
Please note, this key will not work in UniFi access
- This can be done by logging into the UniFi Controller and navigating to Settings > Control Plane > Integration
- Create an API Key which never expires and copy the number. Drivers will require this key
Setting Up UniFi Access Key
This key will show Unauthorised / 401 error in UniFi Network / Protect. To Set up the API key suitable for UniFi Access
1. In Access, navigate to Settings > General
2. Create an API token which never expires, and copy the key. This will be required by the driver