Ubiquiti Unifi API Configuration

Checklist before proceeding with the Unifi configuration

  1. The MAC of all APs that will be broadcasting the Guest WiFi signal as well as the Unifi Controller portal URL with a valid username and password for an administrator must be reported to support.


The following instructions outline how to setup a Ubiquiti UniFi network for the Smart WiFI Platform utilizing the API integration. This guide assumes that your Unifi controller is already operational and on a live network with adopted Access Points. Please make sure any firewall rules, web content filters, and other security measures have been configured to interface with the platform.

  1. Launch the correct site in your Unifi controller and click the settings icon in the bottom left.
  2. On the menu to the left click Profiles.
  3. Click on the Default option under the Guest Hotspot section and configure with the following settings:
    • Authentication Type: External Portal Server
    • External Portal: 1.1.1.1
    • Guest Landing Page: ON
    • Advanced: Manual
    • Landing Page: Select Promotional URL and use the value you are provided.
    •  Redirection-
      1. Enabled HTTPS Redirection: Unchecked
      2. Enable encrypted redirect URL: Unchecked
      3. Use Secure Portal: Checked
      4. Redirect Using Hostname: Checked
        • You will be provided this value.
      5.  Allowed Authorization Access: Add all the Default walled garden entries.

        Please add any additional links provided with your order.

    • Press ‘Apply Changes’ to save.
  4. On the menu to the left click Wireless Networks.
  5. Create a new Wireless Network or Edit your existing Guest WiFi network.
      • WiFi Type: Guest Hotspot
      • Press Apply Changes to save.

Troubleshooting Splash page

  1. If devices present an certificate error please ensure https redirection is disabled.
  2. If a hotspot deactivated message is presented please ensure all the AP MACs have been added as gateways to the correct hotspot.
  3. If devices are redirected to the splash page URL but the page fails to load please ensure the Allowed Authorization Access list has been properly configured.

Disclaimer on hardware configuration guides in the KB:

This equipment has been integrated and tested in our labs with the Marketing4WiFi platform using the firmware versions below.

Ubiquiti UniFi CloudKey Version 7.2.92-18687-1 Firmware 1.1.19
Ubiquiti UniFi UAP-AC-Lite 6.0.21.13673

LIMITED HARDWARE SUPPORT: Hardware manufacturers frequently make changes to firmware, controllers and GUI’s. The information below may be out of date or images may be different and is to be used as a general reference guide. We do offer additional limited support to help with trouble-shooting and we highly recommend that you have a hardware support agreement and/or access to a hardware support engineering representative from the manufacturer.

Updated on December 19, 2022

Was this article helpful?

Related Articles