Making an Outbound Voice Call to Send an OTP

In this section, you will be acquainted with making an outbound call that could be achieved by using Unifonic Voice APIs.

curl --location --request POST '' \
--header 'AppsId: 'XXXXXXXXXXXXX'\
--header 'Content-Type: application/json' \
	"type" : "otp",
	"callerId" : "+966115219232",
		"code" : "1111",
		"loop" : "2",
		"audioUrl" : ""


This is a sample payload that creates a phone call to the recipient +966111111111 and plays an OTP notification.

    "status": "Request has been sent.",
    "callId": "1c9ebf6a-dd62-4c49-b0b3-c1b1494e01f1"
  • Once an API attempt is accepted, an API response will be returned.


Each call status can be tracked using GET/Call Status API or via a Webhook. (Insert link)