Skip to main content

Click to call Admin

The Click to call API is used to connect the call, between two numbers. Using app secret and agent id you can able to make a click to call API request. It connects the From number(User Number) first. Once the person at the From end picks up the call, then it will connect the To number provided by you. After getting the app secret and agent id, make a POST request to the below base URL to initiate the click to call.

Base URL

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

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

Required Parameters

These are the required POST method parameters with description

Parameter NameTypeDescription
*agent_idstringYour agent id
*tokenstringYour app secret
*tostringThe TO number you need to call
customstringThe custom parameter of the request
Note
The * marked parameter is mandatory.

Sample JSON Request

Below is the following sample JSON POST method request

{
"agent_id": "101_1111112",
"token": "2e0d75-d843-45-945-4171dd7a",
"to":"9100000000",
"custom":"Custom Parameter"
}

Sample Response

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

{
"code": 200,
"msg": "Call terminated",
"request_id": "s96C6XK1BUHX0oVZfOo5NhoJfZZJd0y1nmrNN6dhdkW"
}

Properties

These are the list of properties and its description

PropertyTypeDescription
msgstringThe Call terminated

HTTP status codes

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

Status codeStatus codeDescription
200OKWe received the request
401ErrorFailed to authenticate token(Invalid agent id or secret)
404ErrorInvalid Number