We are using Hubspot OAuth in our app. I need some "foreign key" to connect our app-internal User model to the Hubspot User which has been authenticated.
I assume we can use the
user_id from https://api.hubapi.com/oauth/v1/access-tokens/:token or the
ownerId from https://api.hubapi.com/owners/v2/owners/
- Which one should I use and why?
- Are these ID's globally unique or unique per portal
Thanks a lot!