I am trying to test the REST API with Postman. Receiving the authorization token works fine, but if I want to sent or receive data from the cloud I get 200 status code and the HTML of the dashboard.enableiot.com login page:
IoT Analytics Dashboard
For the request i followed the instructions found here: https://github.com/enableiot/iotkit-api/wiki/Data-API Data API · enableiot/iotkit-api Wiki · GitHub
My request to send data looks like this, all the IDs (account, device, component) are changed to the IDs I found on the dashboard website:
POST /data/ HTTP/1.1
Before sending data make sure you have already followed https://github.com/enableiot/iotkit-agent GitHub - enableiot/iotkit-agent: Edge agent to abstract cloud connectivity complexities . Make sure you are using the latest version as well.
I also found a similar thread to yours. Look at
Thanks a lot for your help. The python code helped, as I realized after going through the code that my URL was simply missing "/v1/api". It has to be:
In my opinion this is not very obviously stated in the API documentation on Github, as the /v1/api part is added in the Doku in the REST url to get the token but not for the Data API.