Note: If you have bought OTP after 1/Mar/2025, then use below API.
1. Once you purchase the OTP SMS service, you will get your API Key in your client area.
2. Use the PHP code below to send the OTP from your website/application. If you want, you can use API to integrate in any language. We are using PHP here, because of high demand by users.
$num="Enter mobile number here";
$otp="OTP number to send";
$dv_key="Enter key here";
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$otp_url="https://dvhosting.in/api-sms-v3.php?api_key=$dv_key&number=$num&otp=$otp";
$response = file_get_contents($otp_url, false, stream_context_create($arrContextOptions));
?>

Aditya
17/May/2026 10:20Abhi bhi work nahi ke raha hai
Please ask your developer to check the code. API is working fine.