Request example

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.bolead.top/lead',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "webmaster_id": "263075568239509698",
    "offer_id": "f0843993-9479-457f-850c-4337638517b5",
    "country_code": "mx",
    "phone": "5203659871563"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
curl --location 'https://api.bolead.top/lead' \
--header 'Content-Type: application/json' \
--data '{
    "webmaster_id": "263075568239509698",
    "offer_id": "f0843993-9479-457f-850c-4337638517b5",
    "country_code": "mx",
    "phone": "5203659871563"
}'
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

const raw = JSON.stringify({
  "webmaster_id": "263075568239509698",
  "offer_id": "f0843993-9479-457f-850c-4337638517b5",
  "country_code": "mx",
  "phone": "5203659871563"
});

const requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("https://api.bolead.top/lead", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));