$api_token = '';
$webhook = array (
'subscription_url' => '',
'event_action' => 'added',
'event_object' => 'activity'
);
$url = 'https://ibex3.pipedrive.com/v1/webhooks?api_token='. $api_token;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $webhook);
$output = curl_exec($ch);
curl_close($ch);
$result = json_decode($output, true);
Hi @Jinson_Jose007,
Are you not adding a URL here: 'subscription_url' => '',
?
This is required to create a Webhook