devicesV2List

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.

Hello!

First of all, thank you for using our API!

The option across_user_ids it's only for Arduino internal use.

If you just need to list your devices, GET /iot/v2/devices is enough :slight_smile:

Let us know if you need more help!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.