Execute CLI commands when server receives WEBHOOK (or other)

Hi!

I’m looking for a way to integrate frontend with server.

For example, I’m building a SAAS with WP:

WPULTIMO doesn’t have a tutorial on how to integrate with CyberPanel, it integrates with other popular panels…

But talking to them, they told me that a webhook event is fired when a new site is purchased, if there was a way to listen to the webhook on the server, I could run the CLI needed to map this new domain.

Right?