Sitego, Пробуй
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/dns_records");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"type\":\"A\",\"name\":\"example.com\",\"content\":\"127.0.0.1\",\"ttl\":120,\"priority\":10,\"proxied\":false}");
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = "X-Auth-Email: user@example.com";
$headers[] = "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41";
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);