APIs & Integrations

roryvidal
Member

how to get current user profile info and current hub account details?

SOLVE

I would like to obtain by using access_token the current user profile data such as first name, last name, phone number, address. And also current hub data such as account name, account domain, hub address, hub phone number. Which API should I use?

1 Accepted solution
RMones
Solution
Contributor | Platinum Partner
Contributor | Platinum Partner

how to get current user profile info and current hub account details?

SOLVE

Hi @roryvidal ,

 

The most information you requested is availabe at the endpoint: https://api.hubapi.com/oauth/v1/access-tokens/{accessToken} (https://developers.hubspot.com/docs/api/oauth/tokens)

 

So far I know, is there no possibility at this moment to get further user profile information.

 

Kind regards,

 

Ronald

 

 

 

View solution in original post

6 Replies 6
ramanverma2005
Participant

how to get current user profile info and current hub account details?

SOLVE

Hi @RMones @dennisedson  any update on this I am actually looking for the currently logged-in user email address which I need in the HubSpot workflow to pass in the API.

0 Upvotes
roryvidal1
Participant

how to get current user profile info and current hub account details?

SOLVE

Thank all of you for your help. I'll work with the access tokens endpoint.

Best regards.

0 Upvotes
RMones
Solution
Contributor | Platinum Partner
Contributor | Platinum Partner

how to get current user profile info and current hub account details?

SOLVE

Hi @roryvidal ,

 

The most information you requested is availabe at the endpoint: https://api.hubapi.com/oauth/v1/access-tokens/{accessToken} (https://developers.hubspot.com/docs/api/oauth/tokens)

 

So far I know, is there no possibility at this moment to get further user profile information.

 

Kind regards,

 

Ronald

 

 

 

BeffJezos
Participant

how to get current user profile info and current hub account details?

SOLVE

Hi @RMones 

I used these endpoints and it turns out they don't always return the right user that has actually logged in, but instead they sometimes return me another user

Do you know why?
Is there any other endpoint that does the job reliably?

Thanks in advance

0 Upvotes
royletron
Participant

how to get current user profile info and current hub account details?

SOLVE

Hey all, I am also very eager to do this. I am desperately trying to add HubSpot to the popular NextAuth library but can't if I can't easily get hold of a profile for the currently logged in user. I dug around some other attempts at providing providers for other libraries (notably PassportJS) and could only find api.hubapi.com/oauth/v1/access-tokens/${accessToken} which will give you just the email of the respective token.... 

dennisedson
HubSpot Product Team
HubSpot Product Team

how to get current user profile info and current hub account details?

SOLVE

Hi @roryvidal 

Going to add @RMones to the conversation to see if we can get you some help