Get HubsPot account name by portalId from API

Hello.

I’ve stuck into a really stupid problem. Here is the situation:

  • I’ve authenticated into HubSpot via OAUTH2, so I have the access key.

  • Using this key, I can get portal ID, domain and some other information:

    Token details:
    {
     "user": "dnovak@accon.services",
     "hub_domain": "accon.services",
     "hub_id": .........,
     "app_id": .....
    }
    
    Account details:
    {
     "portalId": ...............,
     "timeZone": "US/Eastern",
     "currency": "USD",
     "utcOffsetMilliseconds": -14400000,
     "utcOffset": "-04:00"
    }
    
  • However, I cannot find my account name, which is available when I connect to the HubSpot via the browser.

What is the way to get the account name from the API?

To be more specific, I need the account name which is available from this URL (yes, I’ve read the forum thread and it looks, that there is no any solution, which looks extremely strange for me).

Hey @dnovak ,

The information in that forum post is still accurate; there’s currently no public API that returns an account’s display name. I can totally understand your use case, though: If you haven’t already, I’d recommend jumping over to the HubSpot Ideas Forum and posting this idea there so that it’s visible to the HubSpot product team and other HubSpot customers and developers. If you post a link to that post here, I’ll jump over and give it a like!

Thank you, Derek. I’ve used your advice and added a new idea.

Hi, is there still no way to do this in 2022?