APIs & Integrations

dnovak
Participant

Get HubsPot account name by portalId from API

SOLVE

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).

1 Accepted solution
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Get HubsPot account name by portalId from API

SOLVE

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!

View solution in original post

3 Replies 3
MikeRepec
Member

Get HubsPot account name by portalId from API

SOLVE

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

Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Get HubsPot account name by portalId from API

SOLVE

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!

dnovak
Participant

Get HubsPot account name by portalId from API

SOLVE

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