Rest api endpoint

is this api endpoint working?
github doc link

yes, this endpoint is to send data as HTTP and is available. You need to get the base64 string of your username and password. Go to http://www.utilities-online.info/base64/#.XIkQx88zZR0 and enter your MQTT username:password and encode it.

1 Like

Hi,

I tried to use Postman app to test the api endpoint. I followed the instructions from link eamirg posted:

  • I made HTTP POST request to https://api.mydevices.com/things/CLIENT_ID/data
  • under Authorization tab I entered MQTT username and password from - Cayenne
  • under Headers tab, I entered Content-Type with value ‘application/json’, and also there is auto-generated Authorization header whose value is ‘Basic ’
  • in the Body tab, I selected type Raw (JSON) and entered:

[
{
“channel”: 1,
“value”: 16.4,
“type”: “temp”,
“unit”: “c”
}
]

I think I followed the directions correctly, but when I send the request, I get only “400 Bad Request” which isn’t really helping. Could you please help?

have a look at this topic How to access Cayenne API using Insomnia, Node-red and Thunkable only for https://api.mydevices.com rest other endpoints are deprecated