Determining Product ID of SoM

Is there an endpoint I can call to determine what product a som is in?

I have tried GET /v1/devices/:deviceId but this only seems to work if I claimed a device or if its in my sandbox. Do I have to make this request for each of my products?

That endpoint will only work if you’ve claimed the device.

You do need to use the product endpoint for unclaimed devices, or for devices claimed to multiple accounts or customers. This of course means you need to know which product the device belongs to, which could require iterating all products.

One common workaround is to claim all devices to a single account. Then you can use that account’s access token and the non-product endpoint to find which product the device is in.

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