APIs & Integrations

hemal108
メンバー

Get contact profile url and portal-id with V3 APIS

With V3 contact search API, i am unable to get portal-id or profile-url in response. As its not part of properties, someone please can help me how can i get these details.

7件の返信
01009
参加者

Get contact profile url and portal-id with V3 APIS

You can get your portal ID from this endpoint as of this writing.

0 いいね!
kimihom
参加者

Get contact profile url and portal-id with V3 APIS

Are there any updates about this issue?

Because of this issue, I decided not to upgrade from v1 to v3..

 

Maybe, the only way to solve this, it'll be below.

<form>

<p>https://app.hubspot.com/contacts/<input class="portal-id" placeholder="123456" >/</p>

<submit>

</form>

 

Of course, I don't want to implement this. Please help me..

0 いいね!
alekseenko
参加者

Get contact profile url and portal-id with V3 APIS

@Lnnrt @GBradley hey guys, the legacy API `/oauth/v1/access-tokens/:token` still works and returns "hub_id", which is the same as "portal_id"

0 いいね!
GBradley
メンバー

Get contact profile url and portal-id with V3 APIS

I'm also wondering how to achieve this. It does seem strange that (unless I'm mistaken) there's no way to determine which portal ID my OAuth token is associated with, in order to, among other things, be able to construct the contact URLs.

Lnnrt
メンバー

Get contact profile url and portal-id with V3 APIS

Hi Wendy, any updates on this? Was wondering how to fetch the portalId on v3 as well

WendyGoh
HubSpot Employee
HubSpot Employee

Get contact profile url and portal-id with V3 APIS

Hey @hemal108,

 

At the moment, both the `portal-id` and `profile-url` isn't something that we return on the crm v3 api. 

 

Having said that, if you want to get equivalent profile URLs using the v3 api, one workaround would be to construct the URL yourself - it's in the format https://app.hubspot.com/contacts/{portalId}/{objectType}/{objectId}

 

As for the `portal-id`, I'll have to check in with the internal team to see if there's any workaround for it.

 
0 いいね!
kmuenze
参加者 | Platinum Partner
参加者 | Platinum Partner

Get contact profile url and portal-id with V3 APIS

I've been using v1 contacts and getting contacts using https://api.hubapi.com/contacts/v1/contact/vid/ but it looks like today the portal-id and profile-url have stopped returning.

 

Would be great if those were avalaible to us so we can link people back to the right hubspot profile url.