enrich alert using zap internal event with request /response fetching

9 views
Skip to first unread message

mohamedkhalil rouissi

unread,
Mar 19, 2026, 4:47:14 AM (13 days ago) Mar 19
to ZAP User Group
Is it possible that when the event generator raises an alert, we retrieve the source message ID, read its metadata, and then send a webhook to another API containing the alert metadata along with the related request and response?

Simon Bennetts

unread,
Mar 19, 2026, 1:55:37 PM (12 days ago) Mar 19
to ZAP User Group
Yes, you will be able to do this with an extender script.
We have an example which listens for events from one specific publisher:
You should be able to change that to meet your requirements.

If you're not sure of how to do what you want then explain what you are looking for in detail.

Cheers,

Simon

mohamedkhalil rouissi

unread,
Mar 19, 2026, 5:41:14 PM (12 days ago) Mar 19
to zaprox...@googlegroups.com
correct if am wrong if am going to send alert from zap to server using webhook first i should catch the event fir alert added then take the messagesourceid to fetch the request/response and should be done only if theres href.add event ? 

--
ZAP by Checkmarx: https://www.zaproxy.org/
---
You received this message because you are subscribed to the Google Groups "ZAP User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zaproxy-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/zaproxy-users/e22b0629-49e8-4b72-b6a2-782c07b2671en%40googlegroups.com.

mohamedkhalil rouissi

unread,
Mar 19, 2026, 5:44:00 PM (12 days ago) Mar 19
to zaprox...@googlegroups.com
using getHistoryReference()

Simon Bennetts

unread,
Mar 20, 2026, 7:45:53 AM (12 days ago) Mar 20
to ZAP User Group

It should be available at that stage, so no need to listen for the "href.added" event.

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages