How can I find device_id?


#1

I went to this website: https://developers.nest.com/documentation/api-reference but then how can I find the particular device_id for my camera? I tried with the Mac address but I could not. I could get the access token but after that I am clueless.

Thanks,
Raj


#2

Hi Raj,

Thanks for your question. After you have the access token, you can make an API call, like this:

curl -v -L
-H “Content-Type: application/json”
-H “Authorization: Bearer c.YOUR_TOKEN_HERE”
-X GET “https://developer-api.nest.com/devices

For examples in various languages, see: https://developers.nest.com/documentation/cloud/how-to-read-data

Thanks,
Betsy