Create an Application

Before you send API requests to Milesight Development Platform, you need to create an application and use the authentication information to request an Access Token for connecting with Milesight Open API. This topic describes how to create an application.

Restrictions & Prerequisites

Restriction

Click here to check the maximum number of applications and webhook URIs that can be added under different plans.

Prerequisites
If you want to subscribe events by webhook, you need to collect the Webhook callback URI.

Procedure

  1. Log in to Milesight Development Platform.
  2. On the top bar, select Application, then click Add.
  3. In the pop-up window, specify a name and click OK.

    You will be redirected to the application settings page, the Authentication section displays the information required to connect with the Milesight Open API.

  4. In the Request Restriction section, decide whether to only allow specified IP address to send API requests to Milesight Development Platform.
    • Only allow specified IP address to send API requests: Click Add and enter the allowed IP addresses.

      Note: You can add up to 10 allowed IP addresses.
    • Allow all IP address to send API requests: Turn off the Request Restriction switch.

  5. In the Webhook section, decide whether to subscribe Webhook events.
    • Subscribe Webhook events: Do as follow.

      1. In the Callback URI section, click Add.
      2. Enter the webhook callback URI for receiving event notifications.
      3. Click Test to check if the webhook is working properly.

        A test notification will be sent to all the Webhook callback URI you entered.

    • Do NOT subscribe webhook events: Turn off the Webhook switch.

  6. Click Save.

Result

You have create an application, you can use the authentication information to request an Access Token for connecting with Milesight Open API.