API DOCS

Click To Call API

GET https://api.ivrsolutions.in/api/c2c_get?token={API-TOKEN}&did={DID-NO}&ext_no={EXT-NO}&phone={PHONE-NO}
Parameter
Field Type Description
token String

Your API Token

did String

DID Number

ext_no String

Agent Extention number

phone String

Phone number you wish to call

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied
404 = Account doesn't exist
500 = Something went wrong

message String

Response message

Click To Call API

POST https://api.ivrsolutions.in/api/c2c_post
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
did String

DID Number

ext_no String

Agent Extention number

phone String

Phone number you wish to call

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied
404 = WhatsApp account doesn't exist
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/c2c_post',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'array('did' => 'XXXXXXXXXX','phone' => '98XXXXXXXX','ext_no' => 'XXXX'),
                    CURLOPT_HTTPHEADER => array(
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Customer List

GET https://api.ivrsolutions.in/api/customerlist
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

list Array

Array of list

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied
500 = Something went wrong

message String

Response message

data Array

Array of data

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/customerlist',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Create Customer List

POST https://api.ivrsolutions.in/api/create_customerlist
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
listname String

Customer list name

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Customer list already created.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/create_customerlist',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                    "listname":"list1",
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Create Text Dialer

POST https://api.ivrsolutions.in/api/create_text_dialer
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
name String

Name of dialer campaign

did_no String

did_no of your account

no_of_call int

Number of calls

start_time string

between 00:00 to 23:59

end_time string

between 00:00 to 23:59

text_template_id int

Text template id

send_call_flow_id (optional) int

//you can use this for text in kannada=>5421, Tamil=>5422, english=>102, telugu=>5423

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Customer list already created.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/create_text_dialer',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                        "name":"",
                        "did_no":"",
                        "no_of_call":"",
                        "start_time":"",//24Hr format between 00:00 to 23:59
                        "end_time":"",//24Hr format between 00:00 to 23:59
                        "text_template_id":""
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Edit Text Dialer

POST https://api.ivrsolutions.in/api/edit_text_dialer
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
id int

Id of dialer campaign

name String

Name of dialer campaign

did_no String

did_no of your account

no_of_call int

Number of calls

start_time string

between 00:00 to 23:59

end_time string

between 00:00 to 23:59

text_template_id int

Text template id

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Customer list already created.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/edit_text_dialer',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                        "id":"",
                        "name":"",
                        "did_no":"",
                        "no_of_call":"",
                        "start_time":"",//24Hr format between 00:00 to 23:59
                        "end_time":"",//24Hr format between 00:00 to 23:59
                        "text_template_id":""
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Get Call Flow

GET https://api.ivrsolutions.in/api/get_callflow
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

Flows Array

Response data

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/get_callflow',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'GET',
                    CURLOPT_POSTFIELDS =>'{
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Dialer Using Flow ID

POST https://api.ivrsolutions.in/api/dial_by_flow
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
did_no String

Your DID Number

flow_id Number

Your Call Flow ID

customer_no Number

Phone number you wish to call

schedule_datetime (optional) date time

to schedule call. format "YYYY-mm-dd H:i:s"

Ex: "2024-12-31 13:00:00"

timezone (optional) timezone

for india: "Asia/Kolkata"

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/dial_by_flow',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                    "did_no":"+111XXXXXXX",
                    "flow_id":"",
                    "customer_no":"1234567890"
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Dialer Using Text

POST https://api.ivrsolutions.in/api/dial_by_text
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
did_no String

Your DID Number

flow_id (optional) Number

Your Call Flow ID

customer_no Number

Phone number you wish to call
Add prefix zero(0) to phone number

template_name string

template_name of text template

Variable** string

**Variables as per text templates

schedule_datetime (optional) date time

to schedule call. format "YYYY-mm-dd H:i:s"

Ex: "2024-12-31 13:00:00"

timezone (optional) timezone

for india: "Asia/Kolkata"

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/dial_by_text',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                    "did_no":"+111XXXXXXX",
                    "customer_no":"1234567890",
                    "template_name":""
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Dialer Using AI VoiceBot

POST https://api.ivrsolutions.in/api/dial_by_voicebot
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
Voicechat_id String

Voicechat ID

ai_agent_ext Number

AI Agent Extension Number (for multiple ai agent use comma separated values)

customer_no Number

Phone number you wish to call
Add prefix zero(0) to phone number

text string

Start message text

system_msg (optional) string

System message text

schedule_datetime (optional) date time

to schedule call. format "YYYY-mm-dd H:i:s"

Ex: "2024-12-31 13:00:00"

timezone (optional) timezone

for india: "Asia/Kolkata"

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

Response message

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/dial_by_voicebot',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "Voicechat_id":"XXXXXXX",
    "customer_no":"1234567890",
    "ai_agent_ext":"00000",
    "text":"hi, welcome to my company"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Get Auto Dialer List

GET https://api.ivrsolutions.in/api/get_dialers_list
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

data Array

Response data

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/get_dialers_list',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'GET',
                    CURLOPT_POSTFIELDS =>'{
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Change Dialer Status

POST https://api.ivrsolutions.in/api/change_dialer_status
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
dialerid int

Dialer id

status String

Status of dialer to change

Allowed values: "on", "off"

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/change_dialer_status',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                    "dialerid":"XX",
                    "status":"on"
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Add To Dialer

POST https://api.ivrsolutions.in/api/add_to_ivrdialer
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
dialerid int

Dialer id

number String

Number to add in dialer list

Dailer Variables ** String

Send Dialer variable values

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/add_to_ivrdialer',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                    "dialerid":"XX",
                    "number":"on"
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Add To Dialer Bulk

POST https://api.ivrsolutions.in/api/add_to_ivrdialerbulk
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
dialerid int

Dialer id

numbers Array

Array of numbers to add in dialer list with variables if used

Example:[{"number":"","Dailer Variable": ""}]

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/add_to_ivrdialerbulk',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>'{
                    "dialerid":"XX",
                    "numbers":[{"number":"","Dailer Variable": ""}]
                    }',
                    CURLOPT_HTTPHEADER => array(
                    'Content-Type: application/json',
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Call Logs

POST https://api.ivrsolutions.in/api/call_logs
Headers
[ 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
from_date (optional) String

From date in Y-m-d H:i:s format

to_date (optional) String

To date in Y-m-d H:i:s format

orderby (optional) String

Order by ascending or descending

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/call_logs',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>[],
                    CURLOPT_HTTPHEADER => array(
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Call Logs By Number

GET https://api.ivrsolutions.in/api/calllog_by_number?token={API-TOKEN}&phone={PHONE-NO}
Parameter
Field Type Description
token String

Your API Token

phone String

Phone number you wish get call logs

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied
404 = Account doesn't exist
500 = Something went wrong

message String

Response message

Click To Call Logs

POST https://api.ivrsolutions.in/api/click_to_call_log
Headers
[ 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
from_date (optional) String

From date in Y-m-d H:i:s format

to_date (optional) String

To date in Y-m-d H:i:s format

orderby (optional) String

Order by ascending or descending

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/click_to_call_log',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>[],
                    CURLOPT_HTTPHEADER => array(
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Click To Call Logs By Number

GET https://api.ivrsolutions.in/api/c2clog_by_number?token={API-TOKEN}&phone={PHONE-NO}
Parameter
Field Type Description
token String

Your API Token

phone String

Phone number you wish get call logs

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied
404 = Account doesn't exist
500 = Something went wrong

message String

Response message

Dialer Logs

POST https://api.ivrsolutions.in/api/dialer_logs
Headers
[ 'Authorization: Bearer {YOUR_API_TOKEN} >' ]

Parameters

Field Type Description
dialerid (optional) Number get log by dialer id

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message String

Response message

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied
500 = Something went wrong

message String

Response message

PHP Example


                    $curl = curl_init();

                    curl_setopt_array($curl, array(
                    CURLOPT_URL => 'https://api.ivrsolutions.in/api/dialer_logs',
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_ENCODING => '',
                    CURLOPT_MAXREDIRS => 10,
                    CURLOPT_TIMEOUT => 0,
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                    CURLOPT_CUSTOMREQUEST => 'POST',
                    CURLOPT_POSTFIELDS =>[],
                    CURLOPT_HTTPHEADER => array(
                    'Authorization: Bearer {YOUR_API_TOKEN}'
                    ),
                    ));

                    $response = curl_exec($curl);

                    curl_close($curl);
                    echo $response;
                    

Get Text Template List

POST https://api.ivrsolutions.in/api/get_text_template_list
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

Data Array

template data list

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

Response message

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/get_text_template_list',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>[],
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Get Text Template List

POST https://api.ivrsolutions.in/api/create_text_template
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
template_name String

ypur template name

text_content String

text content of template

For any variable data such as client names, dates, or appointment times, use the format #variable_name# where "variable_name" is a descriptive name for the data you will provide later.

For example, use #client_name# to insert the client's name into the message.

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message string

message string

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

Response message

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/create_text_template',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "template_name":"name_of_template",
    "text_content":"text template content"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Check Text Template Status

POST https://api.ivrsolutions.in/api/check_text_template_status
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
template_name String

your template name

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message string

message string

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

template_status String

Status of template "pending","approved","rejected"

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/check_text_template_status',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "template_name":"name_of_template",
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Enable disable agent

POST https://api.ivrsolutions.in/api/enable_disable_users
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
ext_no String

Agent extension Number

status integer

value can be 0 for disable and 1 for enable

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

message string

message string

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/enable_disable_users',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "ext_no":"XXXXX",
    "status":"0"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Get Caller Info

POST https://api.ivrsolutions.in/api/caller_info
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
caller_number String

phone number of caller

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

data array

caller info in array

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

error message

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/caller_info',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "caller_number":"xxxxxxxxxx",
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Add/Update Contact

POST https://api.ivrsolutions.in/api/add_contact
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
number number

phone number (Should be 10 digits)

country_code number

country code (without + sign)

name string

contact name

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

error message

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/add_contact',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "number":"xxxxxxxxxx",
    "country_code":"1",
    "name":"John Doe"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Get Variables

POST https://api.ivrsolutions.in/api/get_variables/#phone#
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
subscriber String

phone number of subscriber

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

data array

subscriber info in array

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

error message

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/get_variables/#phone#',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "subscriber":"xxxxxxxxxx",
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Get Call Status

POST https://api.ivrsolutions.in/api/get_call_status
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

data array

call status info in array

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

error message

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/get_call_status',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Update Call Remark

POST https://api.ivrsolutions.in/api/update_call_note
Headers
[ 'Content-Type: application/json', 'Authorization: Bearer {YOUR_API_TOKEN} >' ]
Parameter
Field Type Description
record_id number

record id of call

call_type string

call type (outgoing/incoming/c2c/dialer)

call_status int

call status (get it from call status api)

call_remark string

remark for call (optional)

Success Response Format

Field Type Description
status Number

List of Codes
200 = Success

Error Response Format

Name Type Description
status Number

List of Codes
400 = Invalid parameters
405 = Access Denied/Some parameters missing.
500 = Something went wrong

message String

error message

PHP Example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.ivrsolutions.in/api/update_call_remark',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "record_id":"xxxxxxxxxx",
    "call_status":"1",
    "call_type":"outgoing",
    "call_remark":"John Doe"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer {YOUR_API_TOKEN}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;