Webhook - Headless CMS

Hi,

I would like to use WordPress as an Headless CMS. And each time, someone add a new blog entry (post), I would like to trigger a job (to build a static site) .

In the documentation, there is a chapter about resource where I could find some details on webhook_token. But until now, I did not succeed in making it work.

Are some examples available, describing:

  • how to set correctly the webhook resource in the pipeline,
  • how to deal with authentication

Thx,
Thomas.

Possible duplicate of How to trigger webhook on a resource?