Solved

Application Webhooks for Published Application

  • 25 August 2023
  • 1 reply
  • 94 views

I am currently building out an application that I am hoping to get published in the app marketplace. This app relies heavily on Webhooks, and I’m trying to figure out how an application with access to multiple front instances could differentiate between events from each instance. Is there something I’m missing in the documentation?

icon

Best answer by justin 28 August 2023, 19:58

View original

1 reply

Userlevel 3
Badge +7

Hi Natalie!

Justin here with the support engineering team 👋


While the events payload will not contain an ID pertaining to the instance, you could have your application look to the URL provided in links.self. Here you should be able to implement some logic to discern between Front instances. For example:

"_links": {
        "self": "https://my-test-company-instance.api.frontapp.com/conversations/cnv_1234/messages"
    },


Using the above, your application could associate the payload with my-test-company-instance, where other payloads would have a URL pertaining to their own company’s instance. 

 

If there are any other questions, please do not hesitate to reach out!

- Justin 

Reply