{"id":1884,"date":"2025-06-13T20:04:08","date_gmt":"2025-06-13T14:34:08","guid":{"rendered":"https:\/\/www.smsgatewaycenter.com\/blog\/?post_type=docs&#038;p=1884"},"modified":"2025-06-13T20:04:09","modified_gmt":"2025-06-13T14:34:09","password":"","slug":"how-can-i-test-the-voice-otp-api","status":"publish","type":"docs","link":"https:\/\/www.smsgatewaycenter.com\/blog\/kb\/how-can-i-test-the-voice-otp-api\/","title":{"rendered":"How can I test the Voice OTP API?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$curl = curl_init();\ncurl_setopt_array($curl, array(\n  CURLOPT_URL => 'https:\/\/unify.smsgateway.center\/VoiceApi\/send?userid=YourUserId&amp;password=YourPassword&amp;audioType=pin&amp;sendMethod=quickce&amp;mobile=919999999999&amp;redialInterval=5&amp;reDial=1&amp;duplicateCheck=true&amp;format=json&amp;pin=906547&amp;pinClipId=OneTimePassword&amp;pinRepeatCount=1',\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n  CURLOPT_CUSTOMREQUEST => 'GET'\n));\n$response = curl_exec($curl);\ncurl_close($curl);\necho $response;\n?><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ensure you replace&nbsp;YourUserId,&nbsp;YourPassword, and other parameters with your actual credentials and values.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&nbsp;YourUserId,&nbsp;YourPassword, and other parameters with your actual credentials and values.<\/p>\n","protected":false},"author":118,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[1414],"doc_tag":[],"class_list":["post-1884","docs","type-docs","status-publish","hentry","doc_category-voice-call-otp"],"year_month":"2026-07","word_count":115,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/www.smsgatewaycenter.com\/blog\/author\/admin\/"},"doc_category_info":[{"term_name":"Voice Call OTP","term_url":"https:\/\/www.smsgatewaycenter.com\/blog\/kb-cat\/voice-call-otp\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/1884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/users\/118"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/comments?post=1884"}],"version-history":[{"count":0,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/1884\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/media?parent=1884"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_category?post=1884"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=1884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}