Skip to main content

Cloud API

API Overview

The IoT in a Box API is a RESTful API. REST is a lightweight, stateless web service standard that myDevices IoT provides to our partners so that they may access and consume their data. Our REST API is secured with OAuth2 standard, which offers increased security by using JWT access tokens. In addition to Authorization and Authentication mechanism, we encrypt all transport communications with TLS/SSL endpoints. API Host: https://api.iotinabox.com

API Reference

Getting Started Quickly

  1. Sign up for an IoT in a Box account.
  2. Login and obtain the API Client Credentials for the account.
  3. Authorize yourself using OAuth2.
  4. Start making API Calls.

Example Applications

Obtaining an Access Token

Use the following curl command to obtain an access token using the oAuth2 Resource Owner Flow.

curl --request POST \
--url https://api.iotinabox.com/v1.0/oauth/token \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'grant_type=password&client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}
&username={IOTINABOX_EMAIL}&password={IOTINABOX_PASSWORD}'

Authentication Endpoints

  • Token URL: https://api.iotinabox.com/v1.0/oauth/token
  • Authorize URL: https://api.iotinabox.com/v1.0/oauth/auth