portalId in Webhook payload

What is exacly the “portalId” that comes into the webhook

“contact.propertyChange” payload? Is this something related with the owner ID? Is there a way for me to get the contact’s owner information from this portalId? If not, how can I get the owner info from the payload that comes from webhook?

Hi @RAraujo0

The objectId is what you can use to get the Contact.

The portalId is the “Hub ID” of the HubSpot Portal that sent the payload.

Here’s a full list of the properties in the Webhook Payload.

Have fun

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of Webalite a HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world’s first automated HubSpot Portal Audit that helps you work smarter with HubSpot.

Hello Mike, thank you for your response.

I’m not able to get the contact only with the "objectId ". I need some information about the owner so I can retrieve the token information. I would need the ownerId or userId for example.

Hi @RAraujo0

You will need to get the Contact from the Contacts API and specify the Owner Property (hubspot_owner_id) in your request, you can then use the API to get the Owner.

Not sure what you mean by “retrieve the token information”.

Have fun

Mike

Hello Mike, the problem is that to use the Contact API I will need the “hubspot_owner_id”, but I dont know what is the owner ID from the webhook payload. I only have the object ID.

Hi @RAraujo0

Just to clarify - the process to find the Owner of a Contact is:

  1. The Webhook sends the Contact JSON to your system
  2. Your system uses the Contact ID (object ID) to get the Owner ID (hubspot_owner_id) from the HubSpot API
  3. Your system uses the Owner ID (hubspot_owner_id) to get the Owner from HubSpot.

Is this what you wanted to acheive?

Mike

I figured out on how to use the portal Id to authenticate and get the cotact info using the contat API. Thank you.

Hello Mike_Eastwood, thank you for your responses. I figured out on how to use the portal Id to identify the owner of the contact.