How to test webhooks

  • 23 November 2022
  • 2 replies
  • 156 views

Userlevel 5

Hi everyone, I’m Roberto Moscatelli from the Docebo Support team and I would like to share something about testing Webhook.

If you are not familiar with Webhooks you can use a test website and check how they works.

 

So, first of all go to https://webhook.site 

 

You will see a page like this:

 

Kw5M4oytQn0toc5lbWgMreeWdRs8Owo588nbSVJhey3D6dGIC_PnJEaiwSPj2TNsYCIeseLaItpFX74SuZN5e_IljBQFqnS2DzfZTCZtr86IwwUdt5WfEgcZsJI5TqQf2-6_fGg4cFlS28wDQn_ja2guM9OuVfmJX59epLMLuXxxLRwT7N413YLNnPIj8Q

 

Then copy the “Unique URL” clicking on “copy to clipboard”:

 

Bq2Dj9Nh2ibWCDhUQROGkQgjl5HM7whBdaU-Y18NZlfCc63c3xFRaOGr6LqZ_msu7gdzfukqW73YScfdr_njs96JLa_XrZocS9yHDHoRlp5iplmKt-3pAOvMJ9QgP96UM7IeEKq9goZ5SqG3UAtwDYzUJ65pJRkwYpHKKr5ZUtrr-w4W_crTHbdMM0mLfA

 

Now move to your platform and go to Admin Menu-Webhooks and click on “+” icon to create a new webhook:

 

Wpe6yrmy2VklPWlo_WoCvDwbJZFZb5IfIVwwEe4pyd0Cb3UODYfpDGWqukXtCs6HxTn_be30kCgeFi4nRnWnPvpmY_ldIdvfpc0pZXsPM9mFi21_Iapf-Y8U7gmzDw8MTZBkXjluM9iGOBmACtaFVPzR14_Qu3mC2qD_AAAWPYwQjCuQ1oZSREeDmObY4A

 

Now Just insert a name (like “test”), paste the payload URL and select an event:


 

gBfBacqbkV4lhQlNcLRpg0nMZvyg-WuNHByIOp7TkXIzI0fnUrNqqATss0pSKF0TppdkbBMGzknFtJWrfEnoAwDowGH8vceDQSLcIHewZpNPzMum3Yk2JB21fVqeCwR60fh612sa2sqDUYzGI1FDbmh16ErYEbX2DYTUTeDBjwTfJGNGJeyFvcmJV44P2Q

 

In this example I selected “User has been created”.

Then Save and make sure to activate the webhook clicking on the status as below:

 

c1Nzptui9hkTZBzOJm7zo5HgvmAHNT27VSfh6NwIf0x8d7uwi9GlpSjtPynQubd4j8Gj93-HMusXY22K-7Rvo_F59ZjmqJcGUgNa1TPqZsxSJiPjTFN_CTamYFhFGUk7IhrNeu3gqW82qUnvXTZAy3iCFmOqhaKlzbjx4Twt41Eh7yzjJXYFu7ETNePSKQ

 

So now create a user under “Admin Menu-User management” and go back to the website https://webhook.site

 

You should see the event like this:


 

mRCTmNAIo_CR5cdLKnRI8A1sj3-S28QO1Jd75q8gpDCJQAMqBWdKXIff6Mr49fME1OsHFyo8p7pgFAjorNYr8ObEP7tBCaxK0k7xanjK6N9F0UrCkkk5cHVsb1_fxJOhTROwuklli2VLejUCgzWblOWM3rISuk_5s01R1BfB1Z0IcX0S8o0lRCSzOiU3Yw

 

Now you can do the test using also the other events!


 


2 replies

Userlevel 7
Badge +3

Nice! There’s a couple other similar options shown here too in case folks are interested in testing and then using the webhook data too:

 

I used the same website for testing and the webhooks arrive very very slow, like 30 minutes or more after the trigger. Is it an expected behavior or what can I do to make it quicker? I don’t expect it in the same second, I understand there’s is a queue system, a few minutes should be decent, but 20-30 minutes doesn’t seem odd?

Reply