0
votes

I am trying to use HTTP APIs mentioned in below link to access my IoT devices and their data: https://docs.internetofthings.ibmcloud.com/swagger/v0002.html#!/Organization_Configuration/get

I am using my 6 digit organization code to access these apis and I have created API Key from IBM Watson to access these apis.

I am attaching snapshot of postman REST Api client, which I am using to send request from my local database to server. enter image description here

Thanks in advance.

2
Your org ID does not need to be kept secret. We would need it to confirm what it looks like, which is that your API key is not valid.Paul Slater
@PaulSlater Deleted api key and regenerated it again. Now Api is working.. will update answer soon.jimish
@jimish We are also facing this problem using Postman. Actually Get request works for device using Basic Authentication, but create doesn't. Role is Standard Applicationmitsos1os

2 Answers

0
votes

Are you using the version 1 APIs for the Watson IoT Platform? Those were replaced by more powerful version 2 APIs last year and v1 has now been deprecated.

0
votes

Delete your current api and create a new api from your IBM watson.

Copy that new api secret username and password at time of creation (as you can't see it once it's created) and put it to any rest client.

This worked for me!