Skip to main content
Answered

Typescript definition for the webhook payloads


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:

 

View original
Did this topic help you find an answer to your question?

3 replies

Racheal
Intercom Team
Forum|alt.badge.img+5
  • Customer Support Engineer
  • 512 replies
  • 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
  • 1 reply
  • 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
  • 512 replies
  • March 29, 2023

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings