---
title: How can I test the Voice OTP API?
description: "You can test the API using tools like cURL, Postman, or programming languages such as PHP or Java. Sample code is available in the documentation. For example, in PHP: ``` ``` Ensure you replace YourUserId, YourPassword, and other parameters with your actual…"
url: "https://www.smsgatewaycenter.com/blog/kb/how-can-i-test-the-voice-otp-api/"
updated: "2025-06-13"
category: OBD Voice Call / Voice Call OTP
---

# How can I test the Voice OTP API?

You can test the API using tools like cURL, Postman, or programming languages such as PHP or Java. Sample code is available in the documentation. For example, in PHP:

```
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://unify.smsgateway.center/VoiceApi/send?userid=YourUserId&password=YourPassword&audioType=pin&sendMethod=quickce&mobile=919999999999&redialInterval=5&reDial=1&duplicateCheck=true&format=json&pin=906547&pinClipId=OneTimePassword&pinRepeatCount=1',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET'
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
```

Ensure you replace YourUserId, YourPassword, and other parameters with your actual credentials and values.

### More Related Articles

- [Is the Voice OTP API secure?](https://www.smsgatewaycenter.com/blog/kb/is-the-voice-otp-api-secure/)
- [How does the system handle failed deliveries?](https://www.smsgatewaycenter.com/blog/kb/how-does-the-system-handle-failed-deliveries/)
- [Can I send Voice OTPs to multiple mobile numbers?](https://www.smsgatewaycenter.com/blog/kb/can-i-send-voice-otps-to-multiple-mobile-numbers/)

Found this useful?[Add as Preferred Source on Google](https://www.google.com/preferences/source?q=smsgatewaycenter.com)
