Customer REST API

Registering new customers

This is a non-authenticated API for registering new customers.

Type URL Params Description
GET https://mdash.net/newcustomer email=EMAIL Send an invitation to the customer's email with the confirmation link and customer's access token.

Customer access API

Every request must have a ?access_token=CUSTOMER_KEY query string attached, or a Authorization: Bearer CUSTOMER_KEY header specified.

Type URL Params Description
GET https://mdash.net/api/v2/customer - Return customer object
POST https://mdash.net/api/v2/customer {"meta": ...} Update customer's metadata

Device access API

Every request must have a ?access_token=DEVICE_PUBLIC_KEY query string attached, or a Authorization: Bearer DEVICE_PUBLIC_KEY header specified.

Type URL Params Description
GET https://mdash.net/api/v2/m/device - Return device object stripped according to the ACL
POST https://mdash.net/api/v2/m/device {"shadow": ...} Change device shadow, according to the ACL
GET https://mdash.net/api/v2/m/device/data/:name - Get stored device data using name ACL query