Typescript definition for the webhook payloads | Community
Skip to main content
Answered

Typescript definition for the webhook payloads

  • March 28, 2023
  • 3 replies
  • 178 views

Are there Typescript definitions somewhere of the webhook payloads? 

Thank you!

Best answer by Racheal

Hey@UserOpenDog Racheal from the support engineer team here👋 

 

Depending on the specific web hook you can always field the field definitions within the model. For example, this is a payload for the contact.lead.updated web hook:



so I would look at the Contact Model for those definitions:

 

3 replies

Racheal
Intercom Team
Forum|alt.badge.img+5
  • Customer Support Engineer
  • Answer
  • March 29, 2023

Hey@UserOpenDog Racheal from the support engineer team here👋 

 

Depending on the specific web hook you can always field the field definitions within the model. For example, this is a payload for the contact.lead.updated web hook:



so I would look at the Contact Model for those definitions:

 


  • Author
  • New Participant
  • March 29, 2023

Thank you, Rachel. I take this as a no. Yes, I know the definitions from the docs. I was just hoping for typedefs. No problem. I will create them. Thanks again!


Racheal
Intercom Team
Forum|alt.badge.img+5
  • Customer Support Engineer
  • March 29, 2023

Oh shoot, totally skipped over the Typescript piece- sorry about that! No we do not have typescript definitions.