Hi. I am trying to get my devices details following this guide Resources - Balena Documentation but I get no response. I used my fleet session token or generated API key, the outcome is the same no response.
What am I missing or doing wrong?
Hi. I am trying to get my devices details following this guide Resources - Balena Documentation but I get no response. I used my fleet session token or generated API key, the outcome is the same no response.
What am I missing or doing wrong?
Hi, it looks like you are keeping the angle braces in your curl. I think those impair requests (trying locally, the requests succeeds without them but fails with them), could you please try without them? Like if the doc says to run the following
curl -X GET \
"https://api.balena-cloud.com/v6/device" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>"
you would enter:
curl -X GET \
"https://api.balena-cloud.com/v6/device" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer 123456abcdef"
instead of:
curl -X GET \
"https://api.balena-cloud.com/v6/device" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <123456abcdef>"
Oh yes. This was it. Thanks a lot!
This helped! Thanks a lot
Awesome, glad to hear it