Hi, I am creating an integration to post calls to hubspot, and i want to send the ownerId with the call record, how can i get the users ownerId without knowing the users information like email etc.?
Hi @jlandau hmm I'm not too versed with the flow for public apps. It seems that you only need the user_id of the user initiating the api. Do you think the meta data of the access token would help in your case?
Hi @jlandau - could you help me understand a little more about your application. Is it a private app? If so, how many api tokens are you using?
Do you mean that you want to firstly create a contact, then assign a call engagement record to a HubSpot user based on the api tokens "owner"? I don't think there is a native solution for that, but since you are already know which token you use for calling the api endpoints, would you be able to incorporate a switch statement to set the owner ID accordingly?
Let me know if I understood it right, perhaps you could share a little more about your app and we can all spin off ideas together.
Thanks for your response @weiliang_lee! we have a phone system, and people want to integrate it with there hubspot account, so i direct them to hubspot oauth with my clientId, and a redirect to my api to get the code from hubspot, then i exchange the code to get the access and refresh tokens, and save it to my database, now when a user wants to post a phone call to hubspot , he can select an existing contact or post it without a contact to hubspot, but how can I get the users hubspot ownerId for the user who posts the call?
Hi @jlandau hmm I'm not too versed with the flow for public apps. It seems that you only need the user_id of the user initiating the api. Do you think the meta data of the access token would help in your case?
Hi @jlandau yup I would guess that v1 is the one and only. Even on the latest documentation site, https://developers.hubspot.com/docs/api/oauth/tokens it also shows that the endpoint is for v1. The Oauth endpoints are used by every single app out there, I don't believe they'll change it anytime soon 😂