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;
                    

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

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

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;
                    

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;
                    

Call Logs

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

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} >' ]

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} >' ]

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;