Hi,
I'm trying to do simple GET request https://api2.arduino.cc/iot/v2/devices?across_user_ids=true with Bearer token.
API responses to me with the following message:
{
"id": "SskBf+go",
"code": "unauthorized",
"status": 401,
"detail": "not allowed to list all devices"
}
Documentation: Arduino IoT Cloud API
I'm wondering why I'm not able to list all devices? Am I missing something?
Here's my request:
GET /iot/v2/devices?across_user_ids=true HTTP/1.1
Host: api2.arduino.cc
Authorization: Bearer token-sensored
Just noting that otherwise, the API seems to work ok. I managed to get the data for a single device via devicesV2GetEvents.