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?