"detail": "Authentication credentials were not provided."

Actually, i want to retrieve data from a variable through GSM i.e. HTTP GET request. I am using a valid token then after i am getting a response like this:
{“detail”: “Authentication credentials were not provided.”}

it would be great to have a solution for this.

Can you share the request you are sending to verify the format?

Make sure you’re using a valid token, which can be found clicking on “API Credentials” in “My Profile”.

Thanks hackmed,
I damn sure that I am using valid token. I also had same doubt so I have recreated account and new token also. what I feel is ubidots doesn’t allow. why? I don’t know because if i want to retrieve any other URL i can get but with ubidots i can’t.

Are you sending the token in the URL or in the headers? It’d be great if you posted some code to review

URL:

/api/v1.6/variable/var_id/values/?token=XXXXX

Headers:

X-Auth-Token: XXXXXXX

Hi,
commands are posted here:
Actually I tried to use both the ways of token. But it didn’t work at all.

AT+HTTPINIT

AT+HTTPPARA = "CID",1

AT+HTTPPARA="URL","http://things.ubidots.com/api/v1.6/devices/health-monitor/temperature/values"

AT+HTTPDATA=127,50000

GET /api/v1.6/variables/57925133762542555f73c152/values/?token=lOsUZLirtBhKQtEfsZWjFyKsXRtXAp HTTP/1.1
Host: things.ubidots.com

AT+HTTPACTION=0

AT+HTTPREAD

Now, while reading I got 302 i.e.Found (status code) but I didn’t get data.

I am able to run same If I use Postman utility(Google) for Posting and getting values. But with the AT Commands I can’t.