Receiving webhook data and save them in db
I had to use this:
$json = file_get_contents('php://input');
$action = json_decode($json, true);
As far as I understand the json request is not automaticly split into the $_POST. Thus you have to use the input itself.
The true-parameter in json_decode is needed to get an associative array. Without it I only got an empty array.