WebHooks for Multiple Instances of HubSpot

Hi,

I am trying to implement webhooks in my PHP application. I can recieve the request in my application, but I have no way to link it to an existing HubSpot integration as all I see is a portalID identifier along with the request.

When I setup my connections for my customers HubSpot accounts, I see no way using Oauth2 to get the portal ID. I am trying to get the portalID when they initially connect my application to Hubspot but nothing I’ve found so far can get it.

What am I missing here?

There has to be a way to setup WebHooks for multiple hubspot accounts.

I’ve searched the forums and all I can find is old references to the oauth v1 documentation and things that don’t seem to exist any longer.

Thanks in advance.

Rob

Hi Rob,

When the data is sent, from HubSpot, using a Webhook the `portalId` is included in the payload.

Have a look here under Webhook Payloads.

Have fun

Mike