How to build a custom webhook for member updates in JSON & Node.js ? Answered
Hey Tyler Bell or Julian Galluzzo has the webhook for member updated changed to include updates to member JSON?
Hey Tyler Bell or Julian Galluzzo has the webhook for member updated changed to include updates to member JSON?
Comments
12 comments
Hi John, yes it has đ
If the json updates the reason will include âjson.updatedâ
Ack! and Yay!
I got slammed with an influx of webhooks into one of my scenarios.
I just need to filter out the JSON updates for this particular workflow so it doesn't fire off unintentionally. đ
Ah okay!
Also, we havenât made this update public yet - so there is an opportunity for us to make changes to it.
Perhaps a member.json.updated event would be better.
Because the member updated payload still doesnât include JSON
Hmm - yea that could be a better way to go. It would give us more granularity and control. But I personally don't have a specific use case for it at this moment. So maybe one of the others could chime in
Do you have a list of the reasons?
I think Johnâs point about separating the watch events is a really good one. It prevents accidentally causing an influx of triggers on existing operations that run on a âwatch member updateâ event, it offers granularity (as John mentioned), also at least for me, thereâs a higher probability that I am aiming to watch for custom field updates with the current âwatch member updateâ. Especially for those who use 3rd party systems like Make.com having the update JSON watch and update watch separate is quite a cost saver as even triggering just 1 watch operation across multiple scenarios before filtering it out could add up in extra cost.
Just my 2 cents :)
John Matias Possible reasons are
Awesome thanks! Thatâs super helpful.
Hi, i want to make webhook when i update my member, how can i do it?
Hey Nikita Sukhanov, yes you can head to Dev Tools in memberstack dashboard and scroll down to find Webhooks section. There you can create endpoint to subscribe to member.updated event and you will receive information in that webhook whenever a member is updated. This is a custom route, in case you are using tools like Make / Zapier, you don't need to do this via Memberstack dashboard, you can directly setup triggers in Make / Zapier which listens to member updated event. Hope this helps.
i dont use make/zapier, i am using node.js, and i cant find how to make webhook on my url adress
In that case, I believe you can create an endpoint with Svix play using the first approach shared above and explore the developer docs on how to verify the webhook signature and process the webhook accordingly. Hope this helps.
Okey, thanks
Please sign in to leave a comment.