Voice Call API V3.0

Video Guide

Last Update: 17th July 2026

Developer Guide

Introduction

Voice Call API allows you to send automated voice call utilizing Text-To-Speech (TTS) technology. It is highly effective for delivering Time-Sensitive alerts such as OTPs, Emergency Notifications, and Appointment Reminders.

Voice Call Tips:
  • Voice call are billed per minute based on the estimated call duration.
  • Use commas (,) or periods (.) to force the robot to pause naturally.
  • For OTPs, use commas between digits to slow down the speaking speed (e.g., 1, 2, 3, 4).
  • Do not include URLs or website links, as the robot will try to spell them out.

This document will cover the following areas of connectivity:

Summary Changes

This release are launched based on our internal feedback and achievement to increase the capacity to handle more traffics. Upon your API request, we will accept the traffic as long as you have provided the correct credentials, IP whitelisted and enabled; we will return send status (such as Delivered, Failed, Insufficient balance, Account suspended) in Delivery Notification [DN].

Overview of Voice Call Flow

Below figure shows the Voice Call outbound flow. The concept and mechanism of Implementing Voice Call is very similar to SMS.

Voice Call Flow

  1. Client requests to send an Outbound Voice Call via SMSguru API V3.0.
  2. SMSguru acknowledges upon receiving the request, and returns a Unique Reference ID. The returning values are specified in HTTP Response.
    Note that the Status here is not final.
  3. SMSguru transmits the Voice Call request to the Voice Provider.
  4. Delivery Notification [DN] returns from the Voice Provider in real-time.
  5. SMSguru returns the final DN with the Reference ID to the Client's Webhook. Refer to Delivery Notification for returned values.

Sending Voice Call

Our HTTP API is designed for developers to easily integrate SMSguru Voice services into various solutions.

To initiate a Voice Call, POST / GET request shall be submitted to the following URL:
Actual working example with mandatory parameters:
Below table explanation for all Parameters:
# Parameter Description Mandatory Example
1 user APP_KEY capture from Configurations > HTTP API > Create Connection Yes 7LrdwRb1Ya
2 pass APP_SECRET capture from Configurations > HTTP API > Create Connection Yes aAjc9I7mW5eGzxwYs
3 to Maximum 150 characters

Recipient's mobile number in international format (without the "+" sign)

IMPORTANT: Must include 'voice:' as prefix.
eg. voice:60166600267

To send multiple recipients in a single request, separate each entry with a comma (,)
eg. voice:60123240066,voice:60102200533
Yes voice:60123240066
4 text The text content to be converted into speech. Max 500 characters. Yes Your OTP is 8, 8, 1, 2
5 language The language and accent the robot should use.
Supported Language Codes
Yes en-US
6 repeat Number of times to repeat the message. (1, 2, or 3)
Yes 2
7 detail To show additional info of:
- Account Balance
- Currency
No 1
* All parameters must be encoded in URL format if API triggered via GET Request
Following sample source code in different languages:

If detail=1 is provided, the API will return 4 values as specified in HTTP Response
If detail=1 is not provided, the API will only return 3 values without Currency and Account Balance

Sending Multi Lingual Call

You are able to make the robot speak in any language such as Chinese, Malay, or Thai with ease. Simply encode your content into URL format and provide the correct language parameter.

Actual working example:

Supported Language Codes

Use the codes in the left column for your language parameter.

Language Code Description
en-US English (United States)
en-GB English (United Kingdom)
de-DE German (Germany)
de-AT German (Austria)
de-CH German (Switzerland)
cmn-CN Chinese Mandarin (China)
ja-JP Japanese (Japan)
ko-KR Korean (Korea)
ms-MY Malay (Malaysia)
id-ID Indonesian (Indonesia)
th-TH Thai (Thailand)
vi-VN Vietnamese (Vietnam)
ru-RU Russian (Russia)
zh-CN Mandarin (Mainland China)
zh-TW Mandarin (Taiwan)
zh-HK Cantonese (Hong Kong)

HTTP Response

Upon the API is called, it will return the following JSON values:
  • code - The real-time delivery status, refer to following table Response Code
  • desc - Description of the code
  • to - Recipient mobile number
  • ref - Reference ID returned by SMSGuru
  • optional - [with parameter 'detail=1']
    • Currency
    • Account Balance

Note that due to MT are queued for process later, the return Balance is not included the charges incur by current request.

Response Code Description
200 OK
400 Missing parameters or invalid field type
401 Invalid Username or password
402 Insufficient Account credit
403 Message API not enabled, requested IP not whitelisted or not enabled
405 Invalid Message Type. Mobile numbers provided involved multiple services (SMS & WhatsApp), you can only trigger 1 service in 1 API request
406 Message content is not approved. If you sending Whatsapp Message, please submit your WhatsApp message content for approval
407 Banned Content detected. Your account is suspended
412 Account suspended / Terminated / Not activated
413 Account under observation mode, limited features enabled
500 Internal server error
DELIVERED Message successfully delivered to the mobile handset
UNDELIVERED Message failed to be delivered to the mobile handset
Example of HTTP response returning:
{
    "code"       : 200,
    "desc"       : "OK",
    "to"         : "voice:60123240066",
    "ref"        : "78-1633193001.0602"
}
Example of HTTP response returning with parameter 'detail=1':
{
    "code"       : 200,
    "desc"       : "OK",
    "to"         : "voice:60123240066",
    "ref"        : "78-1633193001.0602",
    "currency"   : "MYR",
    "balance"    : "187.9236"
}
Example of a wrong APP_KEY and APP_SECRET combination:
{
    "code"   : 401,
    "desc"   : "Invalid Username or password"
}
Example of a missing any mandatory field(s):
{
    "code": 400,
    "desc": "Missing parameters or invalid field type"
}

Delivery Notification (DN)

Delivery Notification represents the final call status.

If Delivery Notification is required, please fill in the Delivery Notification Hook located at Configurations > HTTP API tab. DNs will then be forwarded to your DN URL in real-time in the following format:

# Parameter Description Example
1 status Real-time Call Status DELIVERED or UNDELIVERED
2 msisdn Recipient mobile number 60123240066
3 msgid The Reference ID to tie the DN with the Call sent 78-1633193001.0602

Note:
DELIVERED means the call was successfully answered by the recipient or their voicemail.
UNDELIVERED covers all failure reasons such as No Answer, Busy, Invalid Number, or Network Error.

Error Code Description
000 No Error
20 Message sent to carrier partner
50 Unknown Error / Not specify
501 Absent Subscriber
502 Handset memory capacity exceeded. Handset has run out of free memory to store new message
503 Equipment protocol error
504 Equipment not equipped with short-message capability
505 Unknown subscriber. The IMSI is unknown in the HLR
506 Illegal subscriber. The mobile station failed authentication
507 Teleservice not provisioned. Mobile subscription identified by the mobile number does include the short message service
508 Illegal equipment. IMEI check failed, i.e. the IMEI is either black listed or not white listed
509 Call barred. Operator barred the mobile number
510 Facility not supported. VLR in the PLMN does not support MT short message service
511 Subscriber busy for MT short message
512 System failure. Task cannot be completed because of a problem in another entity
513 Data missing. Necessary parameter is not present in the primitive
514 Unexpected data value. Necessary data is badly formatted in the primitive
515 Unidentified subscriber
516 Absent subscriber. No paging response
517 Absent subscriber. IMSI detached
518 Absent subscriber. Roaming restriction
547 Application context not supported
550 Temporary error received from peer SMSC
551 SMS malformed. SMS is not formed correctly. This error is specific to IP-based protocols like SMPP
552 SMS expired
553 Insufficient credit. The user has insufficient credit/not allowed to send to that destination
554 Invalid destination. Receiver is not a valid number
555 Unable to find outbound route for this SMS
556 SMS buffered
557 Timeout waiting for response from peer
558 Throttling error. The user has exceeded allowed message limit
561 Subscriber blacklisted
562 Subscriber not white listed
569 Invalid sender ID
571 Subscriber opted out from receiving SMS
574 SMS rejected. Error received from peer SMSC
575 SMS rejected. Inappropriate SMS content
576 Sender ID blacklisted
577 Sender ID not while listed
Example of DNs for multiple numbers in single API Request:
# If you sent 3 numbers in 1 API request, eg:
https://console.smsguru.co/gw/smsguru/v3_0/send.php?user=7LrdwRb1Ya&pass=aAjc9I7mW5eGzxwYsdzGjKdkF3obLaOmrXUTZizH&to=voice:60123240066,voice:60102200533,voice:60102410102&detail=1&text=Message+from+SMSGuru+Gateway

# Respond from above:
{
    "code"       : 200,
    "desc"       : "OK",
    "to"         : "voice:60123240066,voice:60102200533,voice:60102410102",
    "ref"        : "78-1633193001.0602",
    "currency"   : "MYR",
    "balance"    : "187.9236"
}


# You would receive minimum 3 DNs
# 1st DN:
{
    "status"       : SENT,
    "error-code"   : 20,
    "msisdn"       : 60123240066,
    "msgid"        : "78-1633193001.0602-0"     # 0 refers to DN for 1st mobile number (60123240066)
}



# 2nd DN:
{
    "status"       : SENT,
    "error-code"   : 20,
    "msisdn"       : 60102200533,
    "msgid"        : "78-1633193001.0602-1"     # 1 refers to DN for 2nd mobile number (60102200533)
}



# 3rd DN:
{
    "status"       : SENT,
    "error-code"   : 20,
    "msisdn"       : 60102410102,
    "msgid"        : "78-1633193001.0602-2"     # 2 refers to DN for 3rd mobile number (60102410102)
}