Access to our API is achieved via HTTPS requests to the
https://api.evrythng.com domain. Unencrypted HTTP requests are accepted via
http://api.evrythng.com for low-power devices without SSL support, but we strongly recommend using only HTTPS if you store any valuable or sensitive data in our platform.
Every request to our API must (unless otherwise stated) contain a valid API key in the
Authorization HTTP header to identify the user or application issuing the request and execute it if authorized.
Here is an example of a request to our API that returns the list of all the Thngs you have created. Note the appropriate use of the
curl -i -H "Accept: application/json" \ -H "Authorization: $APPLICATION_USER_API_KEY" \ -X GET "https://api.evrythng.com/thngs"
To make it easier for developers using embedded platforms, instead of sending the API key in the
Authorization header, you can simply append
?access_token=$APPLICATION_USER_API_KEY to any URL in the API. This request is equivalent to the one above:
curl -i -H "Accept: application/json" \ -X GET "https://api.evrythng.com/thngs?access_token=$APPLICATION_USER_API_KEY"
const operator = new EVT.Operator(OPERATOR_API_KEY); operator.thng().read().then(console.log);