How to capture/process data from incoming webhook

Created on 28 August 2025, about 1 month ago

How to capture/process data from incoming webhook

Hi, I'm quite new to using webhooks.
I did manage to create an url for an incoming webhook.
From within another application I can call the webhook which returns status "OK".

But for the next step I need a little pointer or snippet on how to capture data send to this webhook.
I'm totally lost in my search for a solution.

Can anyone help me out on this one by pointing me in the right direction or posting a snippet to achieve this?

Thanks in advance.

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Documentation

Created by

πŸ‡³πŸ‡±Netherlands vincent rommelaars

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vincent rommelaars
  • πŸ‡ΊπŸ‡ΈUnited States freelock Seattle

    Hi,

    I think until recently, handling incoming webhook payloads involved code. The webhooks module simply published an event with the data, and any other module could subscribe to that event and do whatever it wanted with the data. I was using a custom module to do this, sending the data to code to sync with content in Drupal.

    It looks like the 4.x development version of this module is turning each incoming webhook submission into a new Drupal entity, which can then be shown in views, hooked up to actions in ECA, or do anything you can do with any other entity. I don't know the status of that version, have not tried it out yet to know whether it works or not.

    I just created an ECA plugin on 🌱 I suggest planning an ECA integration for D10 Active so you can create an ECA model that gets any incoming webhook, and can do whatever you want from there. If you create that event in an ECA model, you then get the payload in [event:webhook:payload], which you can then deserialize and do as you please!

Production build 0.71.5 2024