Developer API

In general, API stands for Application Programming Interface. It is a set of functions and procedures that allow you to create applications which access the features or data of MobiLock Pro. For example, the battery status API from MobiLock Pro can be embedded into your application or website to display your data as collected by our application. The following steps will show you how to access MobiLock Pro’s features via API, currently supporting GET requests only.

  1. Log in to your admin panel and click on the Utilities -> Developer API tab on the left of your dashboard. You will see a screen similar to the one shown in the image below. Click on GENERATE/REGENERATE API KEY.

  2. Developer api1
  3. You will see your API Key as shown below. You can choose to regenerate it if it gets compromised, which will automatically disable the old key. Right click and copy this key, then click on the Read API Docs button below.

  4. Developer api2
  5. Paste the API Key as shown in the image below, and click on Explore API Responses.

  6. Developer api3
  7. You can now see a list of MobiLock Pro features available via API. For all but one of the features, you will be asked to enter a Device ID, which can be obtained by fetching the devices for the account. Click on the second feature to expand, and click on Try it out!

  8. Developer api4
  9. This will give you a list of all devices associated with the account, along with the device ID, as shown in the image below.

  10. Developer api5
  11. Use the device ID for the remaining features. For example, enter the device ID, to retrieve battery information for the device, as shown in the image below.

  12. Developer api6

    Follow the same for the remaining features.