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

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

customer_no Number

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

text string

Start message text

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;
                    

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;
                    

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;