Skip to main content
natalie
Conversationalist
Aug 25, 2023 9:29 PM UTC
Solved

Application Webhooks for Published Application

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?

justin
justinAnswer
Fronteer
Aug 28, 2023 5:58 PM UTC

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 

1 reply

justin
justinAnswer
Fronteer
Aug 28, 2023 5:58 PM UTC

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