Accessing Devices on a Business Shared Space w/API (Cloud IOT)

When using the cloud apis and performing a "/v2/devices" the list of devices does not contain my shared space devices that I have created. I am an admin of the business shared space.

Does the creator of the shared space need to generate the API Keys?

**Update - I tried using the account that originated the business shared space and that accounts APi Keys could also not see any devices on the business shared space.

Issue has been resolved. The following is required in the headers of the api call

"# Create the iot-api Python client with the given configuration
client = iot.ApiClient(client_config,header_name="x-organization",header_value="{id of your shared space}")

The header x-organization dictates the organization(shared space) your APIs are accessing. X-organization is referenced as an option in the headers for certain API calls; however, the documentation does not define what it is used for, I had a lucky guess. The id of your shared space can be found in Arduino Cloud in the space under settings/generalsettings/spaceID.

1 Like

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