APIs & Integrations

zigi
Member

Webhooks - How to understand triggering account?

SOLVE

I might be missing something, I have went through the docs, I am not sure how I understand which of the Hubspot accounts that installed my app is the account that triggered the webhook? 

 

I looked under "Webhooks payloads" in these docs

 

Thanks

0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Webhooks - How to understand triggering account?

SOLVE

@zigi , if you scroll down to the sample webhook payload, you will see portalId in the returned json objects

example:

{
    "objectId": 1246965,
    "propertyName": "lifecyclestage",
    "propertyValue": "subscriber",
    "changeSource": "ACADEMY",
    "eventId": 3816279340,
    "subscriptionId": 25,
    "portalId": 33,
    "appId": 1160452,
    "occurredAt": 1462216307945,
    "subscriptionType":"contact.propertyChange",
    "attemptNumber": 0
  }
Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show

View solution in original post

0 Upvotes
1 Reply 1
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Webhooks - How to understand triggering account?

SOLVE

@zigi , if you scroll down to the sample webhook payload, you will see portalId in the returned json objects

example:

{
    "objectId": 1246965,
    "propertyName": "lifecyclestage",
    "propertyValue": "subscriber",
    "changeSource": "ACADEMY",
    "eventId": 3816279340,
    "subscriptionId": 25,
    "portalId": 33,
    "appId": 1160452,
    "occurredAt": 1462216307945,
    "subscriptionType":"contact.propertyChange",
    "attemptNumber": 0
  }
Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes