1

In HubSpot webhook payload, we know that the **sourceId** which we get during **contact.creation** points to an identifier that can provide information about where the contact originated or how it was created but I am not able to find in Node.Js.

Suppose my payload is like:

export interface HubSpotWebhookPayload {
  appId: number;
  eventId: number;
  subscriptionId: number;
  portalId: number;
  occurredAt: number;
  subscriptionType: "contact.creation" | string;
  attemptNumber: number;
  objectId: number;
  changeFlag: string;
  changeSource: string;
  sourceId: string;
}

How can we retrieve the above information using **sourceId**?

I am trying to implement webhook using Node.js, therefore, I am using the @hubspot/api-client npm package but couldn't find the way to retrieve the origin and contact creation-related info. Can someone guide me on this?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.