PCMO Outbound Call

The PCMO Outbound call API is used to connect the call, between phone number and the PCMO Object. Using app id and app secret you can able to make a pcmo outbound call API request.

Base URL

Send your POST method request with valid parameters, to the following base URL.

https://piopiy.telecmi.com/v1/pcmo_make_call

Required Parameters

These are the required POST method parameters with description

Parameter NameTypeDescription
*appidnumberYour app id
*secretstringYour app secret
*fromnumberYour caller id for this call
*answer_urlstringYour webserver URL contains list of action
*pcmostringPIOPIY call management object is a JSON, that is used to control all the voice calls
Note
The * marked property is mandatory.

Sample JSON Request

Below is the following sample JSON POST method request

{
"appid": 2222226,
"secret": "xxxx-xxxx-xxxx-xxxx",
"from": 914471000000,
"to": 9100000000,
"pcmo": [
{
"action": "bridge",
"duration": 300,
"timeout": 20,
"from": 4471000000,
"loop": 2,
"connect": [
{
"type": "pstn",
"number": 9100000000
}
]
}
]
}

Sample Response

If the provided information is valid, your web server will get a sample response from TeleCMI Platform as given below

{
"data": {
"status": "progress",
"request_id": "FrTckxcdYpJQFwSwki7ee2qY90MOYhgRyFzqgSlK5uT"
},
"status": "progress",
"request_id": "FrTckxcdYpJQFwSwki7ee2qY90MOYhgRyFzqgSlK5uT",
"code": 200
}

Properties

These are the list of properties and its description

PropertyTypeDescription
statusstringThe Status of the call
request_idstringThe Unique ID for this call

HTTP status codes

TeleCMI API platform represents the following status code to identity the errors.

Status codeStatus codeDescription
200OKWe received the request
420ErrorInvalid app id or secret, failed to authenticate token
422ErrorMissing required property
502ErrorThe property required is missing