Cloud API
API Overview
The myDevices 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.mydevices.com
danger
Hostname deprecation warning: api.iotinabox.com is not longer supported, please use api.mydevices.com
Getting Started Quickly
- Sign up for an myDevices account.
- Login and obtain the API Client Credentials for the account.
- Authorize yourself using OAuth2.
- 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.mydevices.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.mydevices.com/v1.0/oauth/token
- Authorize URL:
https://api.mydevices.com/v1.0/oauth/auth