iMonnit REST API Authentication

The Rest API allows users to integrate their sensor data into 3rd party applications. REST API calls can be made from programming language of your choice. Responses are served as either XML (Extensible Markup Language) or JSON (JavaScript Object Notation).

Note: Overuse can result in revocation of API portal.

Overuse Example: making the same call more often than the data is updated (Datamessage Methods: 1 request per 10 minutes). Please utilize the webhook for real time Datamessages.

We have implemented a new policy and all users are now limited to running API calls serially, one at a time. If your system previously made calls to API endpoints in parallel, you will need to modify your processes to wait for the return of each call before making the next one. Otherwise, your parallel calls may encounter an error indicating API call rate exceeded.

To request a larger data load, Please contact support (support@monnit.com)

*All Dates are in UTC (Universal Coordinated Time) both for the input and for the output.

Menu - Skip to

Authorization

Parameters

How to create API Key & Secret Key

Test iMonnit's REST API's

Using the iMonnit API Explorer

Using Postman

Authorization

APIs use authorization to ensure that client requests access data securely. The APIKeyID and the APISecretKey both need to be included as headers in the posted request.

Select Api Keys in the iMonnit Online Portal to create API keys.

Parameters

Our parameters will need to be passed in the request as Param entries. The Parameter name will be set as the Key and the parameter value will be set as the Value.

How to create API Key & Secret Key

A User must be an Administrator on the account to manage API Keys.

  1. Log In imonnit.com.
  2. Select <>API.
  3. Select API Keys.

  1. Select + Generate Key.

  1. Name the Key to your preference.
  2. Select Generate.

  1. Make sure to store the API Key ID and the API Secret Key securely.
  2. Select "I have finished copying!".

Note: The API Secret Key will only be displayed once, if the mentioned key is lost it will be necessary to generate new API Key IDs and API Secret Key.


Test iMonnit's REST APIs

Using iMonnit API Explorer

To test API calls the iMonnit Online Portal offers an API Explorer.


Using Postman

You can also test REST API calls using a third-party application such as Postman:

Download and install Postman.

Choose the REST API Call you wish to test.

  1. Log In iMonnit Online.
  2. Select <> API on the Main Menu.
  3. Select the Select API Type dropdown list at the bottom of the page.

  1. Expand the REST API section you'd like to test.
  2. Select Try this API.

  1. The Response Format choice, Request URL, Headers and parameters for that call will be displayed; this information will be necessary to test the call using Postman.

Using Postman

  1. Open Postman.
  2. Select "Workspaces".
  3. Select an existing Workspace or create a new Workspace.

  1. Select the + button.

  1. Make sure POST is selected on the type of call section.
  2. Paste the URL found in the API Explorer in iMonnit Online.
  3. Select Headers.
  4. On the "Key" Column:
    1. First Row: APIKeyID
    2. Second Row: APISecretKey
  5. On the Value column fill out the APIKeyID and APISecretKey with the authentication values generated by following the steps mentioned above.

Note: The default "hidden" headers will be set appropriately, but you will want to confirm:

Fields circled Green are Required, and Fields circled Orange are Recommended.

  1. Select "Params" (Parameters).
  2. Under the Key Column enter the parameter key name as displayed in the API Explorer.
  3. Under the Value Column enter the desired value according to API Explorer.

  1. Select "Send" right by the URL on the top of the page.
  2. See the Results at the bottom of the page.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.