$app_id, "filters" => [ ["field" => "tag", "key" => "Blackhound", "relation" => "=", "value" => "DP"] ], "headings" => ["en" => "Dewald - Login Notice"], "contents" => ["en" => "Please authorise login!"] ]; $json_data = json_encode($data); $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Content-Type: application/json", "Authorization: Basic $api_key" ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data); $response = curl_exec($ch); curl_close($ch); //echo $response; ?>