SOLUTION: Big thanks to @doug.burden & @jonah.deleseleuc for working through this with me. In order to get a webhook from Monday.com to work with Bubble the following is needed:
Setup your call as follows and use the “detect data” feature to initialize your call. This will allow you to get the Challenge token and return it accurately.
Then rerun the webhook connection on Monday.com (be sure to remove “/initialize” from the URL) and you should connect. You’ll be able to setup a webhook as normal now.
Original Question:
I’ve been trying to validate a webhook coming from Monday.com and can’t seem to get the proper response sent back to Monday.com for verification. I’ve set up a backend API to receive the webhook as follows:
I know this question has been asked for a lot of other services, and I’ve tried every suggestion, but I can’t crack this one. Any insight would be appreciated.
You’re gonna wanna use detect data as apposed to manual definition, then use the url the detect data provides you to initialize the response. And unless you’re sending data to a requester, you don’t need the return data from api action
One time I had to do something very similar. The solution for me was to create an arbitrary text and recreate the JSON perfectly (and I mean down to the correct spaces). Then when the api request comes in, return the JSON (arbitrary text)
From what I can tell Monday doesn’t give an endpoint to send the response to. It just says to respond directly to the request. But maybe I’m missing something.
I’ve tried returning the raw body text, writing it out in plain text, and inputting it in arbitrary text as well. I’m not getting any events in the server logs when trying to connect this webhook, so I have no way to see what errors it’s throwing.
Thanks for the idea to run it in Postman, I don’t know why that didn’t cross my mind. I was able to send a challenge in Postman and this is the response I received:
UPDATE!(I couldn’t edit the original post, so hopefully you find this if you need it)
@claverdiere ran into an issue with my instructions and was able to find a solution. If anyone doesn’t know where to get the payload of the event info after connecting to Monday.
I get the Monday integration setup and initialized with this post, but am at a loss for where to get the payload of event info after that.
I was absolutely zero help in finding a solution, so they went and found it themselves. Here is what @claverdiere figured out:
After you do the initial initialization (that your post goes over), you need to go back to the backend workflow’s ‘Modify Types’ > scroll down to ‘show raw data’ and click that > click ‘edit raw data’ > paste in the applicable sample payload from the documentation (Webhooks) in place of the ‘challenge’ payload.
Thanks for your contribution to this, @claverdiere!
Hope you’re doing well. I’m currently working on a ticketing project where the internal team is using Monday.com as the primary platform. Whenever there’s an update in the CRM on Monday.com, I need to receive it via a webhook that connects to Bubble.io’s backend workflow API.
I’ve initialized a call with the ‘challenge’ parameter, but I’m stuck and can’t move forward from this step.
I would really appreciate it if you could provide some guidance.