Tiago Alves
Tiago Alves

Reputation: 1321

Nest API - How to uniquely identify an account

I'm integrating with the Nest API and I'd like to know to whom an access_token belongs. I don't need an email or name or anything identifying the account holder, I just need a unique account identifier.

Is there something like https://developer-api.nest.com/account.json or user.json?

Documentation: API Reference

Upvotes: 2

Views: 178

Answers (1)

David W. Keith
David W. Keith

Reputation: 2254

There isn't something account specific, but both structures and devices can only belong to one account, so you could use the structure_id as the unique identifier. It is unlikely that a user would delete their primary structure (kind of hard to to) and you can guarantee that any two users don't have the same structure.

You might notice this ID is different for each developer account, this is to protect the user's privacy. (e.g. developers can't serve ads based on unique identifiers)

Upvotes: 4

Related Questions