API & DOCS

My Account            

Used to initiate a phone call between any one number, or list of numbers, to a pre-configured IVR within an account.

Use the Click-to-IVR API to initiate a phone call to a pre-configured IVR

The Click-to-IVR API is used to initiate a phone call between any one number, or list of numbers, to a pre-configured IVR within an account.

📘

Base URL for Click-to-IVR

https://secure.dialogtech.com/ibp_api.php

Parameter List

ParameterRequiredAcceptsMax LengthNotesUsage
access_keyYesStringn/aAccess Key from the Key Manager within a DialogTech accountCredentials used for access to the API for a particular DialogTech account
secret_access_keyYesStringn/aSecret Access Key from the Key Manager within a DialogTech accountCredentials used for access to the API for a particular DialogTech account
public_keyYesStringn/aPublic API Key from the Key Manager within a DialogTech accountThis should only be used when doing a client-side Click-To-IVR and will be used in place of both the access_key and secret_access_key values
survo_idYesStringn/aThe ID of the IVR being used. The IDs of the various IVRs in an account can be found under Developer Tools by selecting Building Block IDsDefines the IVR which the caller(s) will be connected to.
actionYesclickto.survon/aOnly accepts clickto.survo for Click-to-IVRDefines the API call as a "Click-to-IVR" type
user_parametersNoPipe Delimitated List of parameters. See section IVR User Parameter Substitution below.n/aA list of custom parameters to use within the IVR Prompts.Custom parameters that can be utilized in text-to-speech prompts within an IVR.
p_tNoStringn/aPass-through data are parameters which can be added to a clickto.survo API call, which will be included within any subsequent webhooks from that IVR for the initiated call. (See IVR WebHooks for more detailed usage).Pass-through Data
phone_to_callNoUnformatted Phone Numbern/aThe phone number to call. Not valid when scheduleonly is usedDefines the phone number being called to be sent to the IVR.
first_calleridNoUnformatted Phone Numbern/aMust be a registered number or a tracking number within the DialogTech account.Defines the Caller ID being shown to the phone_to_call recipient
scheduleonlyNon/an/aThis parameter may consist of a name without any value. No call will be placed. (i.e &scheduleonly OR &scheduleonly=1 if that is easier)See the Scheduling Arguments Table for available scheduling parameters

Failure to provide scheduling arguments will lead to this parameter being ignored
pageNoString255Will be stored in the Smart Click-to-Call ReportDefines the "page" the Click-to-IVR originated from.
refNoString255Will be stored in the Smart Click-to-Call ReportAn available field where a custom reference can be stored

Scheduling Arguments

The following Scheduling Arguments are only available when the scheduleonly parameter is used from the table above.

ParameterRequiredAcceptsMax LengthNotesDescription
phoneYesPipe delimitated list of phone numbers OR fully qualified URL to a csv containing at least 1 column called number populated with phone numbersn/aThis parameter should not be used with phone_to_call.Defines the recipients of the Click-to-IVR
sdateYesDate/time (format YYYY-MM-DD+HH:MM)n/aThe Start time of a broadcast is the time where the Broadcast first queues up to be processed. Note: Click-to-IVR calls must be within you broadcast start/end date AND the daily start/end times to be properly scheduledDefines the Start Date/Time of the broadcast
edateYesDate/time (format YYYY-MM-DD+HH:MM)n/aThe End time of a broadcast is the time where the Broadcast can last queue up to be processed. Note: Click-to-IVR calls must be within you broadcast start/end date AND the daily start/end times to be properly scheduledDefines the End Date/Time of the broadcast
dstimeYestime (format HH:MM)n/aThe daily start time defines the beginning time of day calls should be queued and processed. Note: Click-to-IVR calls must be within you broadcast start/end date AND the daily start/end times to be properly scheduledDefines the Daily Start Time of the broadcast
detimeYestime (format HH:MM)n/aThe daily end time defines the last time of day calls should be queued and processed. Note: Click-to-IVR calls must be within you broadcast start/end date AND the daily start/end times to be properly scheduledDefines the Daily End Time of the broadcast
tzNoEastern (default)
Central
Mountain
Pacific
Alaska
Hawaii
n/aTime zone selected must be from the list of accepted values.Defines the time zone the Daily Start and End Times, as well as the Broadcast Start and End dates correlate to.
typeNo1 OR 2n/a1 - Spread Calls Evenly
2 - As Fast as Possible
Determines how calls are scheduled throughout the broadcast
attemptsNo1 (default) OR 2n/a1 - Do not retry failed calls (default)
2 - Retry any failed calls one time
Defines the maximum amount of times the call will be re-attempted if the call fails to reach the recipient due to a Busy signal, congestion, or other issue in trying to connect to the recipient. NOTE: This does not apply to voicemails as voicemails are valid recipients of broadcasts
retryNo5 (default), 10, 15, 30, 60, 90, 120n/aretry value selected must be from the list of accepted values.Defines the minutes between a call failure and any retry attempts. Note: attempts must be enabled
simulNoIntegern/aThe maximum value is based on the number of available smart broadcast ports within the account.Defines the number of simultaneous calls to be placed. This is based on the number of available smart broadcast ports within the account.
cidNoUnformatted Phone Numbern/aMust be a registered number or a tracking number within the DialogTech account.Defines the Caller ID being shown to the broadcast recipient(s)
descNoString32Default is My SurVo BroadcastIdentifier for the Voice Broadcast used on account's broadcast management page.

Using this API

When requesting the click-to-call API, the client side response will only populate after the first leg of the call is answered or not. The response will be a plain-text string indicating the success/failure of the first leg of the call.

Example Responses

"Call Connected"
<response>
<result>success</result>
<result_description>Call Connected</result_description>
<sid>1503112581994d3a</sid>
</response>
<response>
<result>success</result>
<result_description>1 Voice Broadcast(s) scheduled. Broadcast ID: 4887</result_description>
<basic_broadcast_id>4887</basic_broadcast_id>
<survo_id>890</survo_id>
</response>