Webhook in Swift

I'm developing one project in Swift 5, in which I have to capture the response (JSON Payload) from Webhook. Is it possible to capture it via URLRequest?

Anyone is having any idea about how should I Proceed?