APIs & Integrations

Not applicable

Get Account information via the API?

SOLVE

Is there a way to get account information, such as account display name, using the API? Is there something like https://api.hubapi.com/v1/account?

To be clear, I’m not trying to get companies, just the account associated with the access token being used.

Any help would be appreciated, thanks!

1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Get Account information via the API?

SOLVE

Welcome, @AndrewWalker!

This endpoint returns meta data for the HubSpot account associated with an OAuth access token, including Hub ID and domain. Is that what you're looking for?

Isaac Takushi

Associate Certification Manager

View solution in original post

6 Replies 6
IsaacTakushi
HubSpot Employee
HubSpot Employee

Get Account information via the API?

SOLVE

Hey @AndrewWalker,

You're correct that the account name defined in Settings > Account Defaults:

is not returned by this endpoint, however the organization's hub_domain is included in the response.

The domain is more human-readable than the Hub ID, but I recognize it's not exactly what you're looking for.

Isaac Takushi

Associate Certification Manager
0 Upvotes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Get Account information via the API?

SOLVE

Welcome, @AndrewWalker!

This endpoint returns meta data for the HubSpot account associated with an OAuth access token, including Hub ID and domain. Is that what you're looking for?

Isaac Takushi

Associate Certification Manager
AndrewWalker
Member

Get Account information via the API?

SOLVE

Thanks Isaac - I basically want to display a legible account display name rather than the random 7/8 digit code.. I don't believe we can get that in the meta-data?

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Get Account information via the API?

SOLVE

Hi @scottalbertson

This isn’t something that we currently have an API for, but it’s something that we’re considering building in the future.

Is there any specific data that you’d be looking for from this?

0 Upvotes
AndrewWalker
Member

Get Account information via the API?

SOLVE

Hi - is there any way to do this yet?

Thanks in advance
Andrew

0 Upvotes
Ilya_Vishnevsky
Member

Get Account information via the API?

SOLVE

Hi @dadams

I have the same issue as @scottalbertson,
In my case i try to retrieve account display name, to show it to our customers as integration name.
Any suggestions?

0 Upvotes