Voice Broadcast API

Voice API
Quick Start Guides
Methods
Types
FAQ

PHONE CALLS

AssignIncomingNumber

This method assigns an incoming number to a license key. You can get available incoming numbers with the GetAvailableIncomingNumbers method. (Numbers are billed at $5/month per number. Normal fees for transactions apply.)

Syntax

AssignIncomingNumber(IncomingPhoneNumber, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
IncomingPhoneNumberThe incoming phone number.StringTrue7575551111
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if assignment was successful. False if the number is already claimed or otherwise unavailable.

CancelConference

Use this method to cancel a conference.

Syntax

CancelConference(ConferenceKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ConferenceKeyThe key of the conference you want to cancel.StringTrueb825700e-5180-4e77-8599-2e2eb6c4c1ba

Response

Returns: void

CancelNotify

This method cancels a single call that is scheduled for the future. It will not cancel completed calls or calls in progress. You will receive credit for any successfully cancelled call.

Syntax

CancelNotify(QueueID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
QueueIDThe unique ID of a single call, as returned from any Notify* operation.LongTrue4093249
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if cancellation was successful. False otherwise.

CancelNotifyByReferenceID

This method cancels any calls that have a given reference ID. This method will not cancel completed calls or calls in progress. You will receive credit for any successfully cancelled calls. (Reference IDs can be assigned when scheduling calls with the NotifyPhoneAdvancedNotifyMultiplePhoneAdvanced, or NotifyMultiplePhoneBasicWithCPMandReferenceID methods.)

Syntax

CancelNotifyByReferenceID(ReferenceID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ReferenceIDThe reference ID of one or more calls.StringTruenotify1
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Integer

Description: Total number of calls that were cancelled.

GetAssignedNumbers

This method gets the incoming numbers assigned to a given license key.

Syntax

GetAssignedNumbers(LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Array of String values

Description: A list of assigned numbers.

GetAvailableAreaCodes

This method retrieves all the area codes that are available for incoming numbers. You can search for area codes when using the GetAvailableIncomingNumbers method.

Syntax

GetAvailableAreaCodes()

Request Parameters

This method has no request parameters.

Response

Returns: Array of AreaCode objects

Description: A list of available area codes.

GetAvailableIncomingNumbers

This method will retrieve 10 random lines available for incoming calls. You can assign these lines to your license key via the AssignIncomingNumber method.

Syntax

GetAvailableIncomingNumbers(AreaCodeFilter)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
AreaCodeFilterArea code to search for. If fewer than 10 numbers are available for this area code, numbers with other area codes will be included in the results. Use an empty string to get any available toll-free lines.StringFalse (may be an empty string)877

Response

Returns: Array of String values

Description: A list of available incoming numbers.

GetVersion

This method retrieves the current version of the Phone Broadcast API.

Syntax

GetVersion()/sms-broadcasting-software

Request Parameters

This method has no request parameters.

Response

Returns: String

Description: The current version of the Phone Broadcast API.

Sample:
1.1.0

getVoices

This method retrieves all the voices available for calls. You can use the VoiceID to change the voice used when reading a message.

Syntax

getVoices()

Request Parameters

This method has no request parameters.

Response

Returns: Array of Voice objects

LicenseKeyVariableLoad

This method retrieves the value of a variable. Variables can be used in your call scripts.

Syntax

LicenseKeyVariableLoad(VariableName, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
VariableNameThe variable name. Values longer than 50 characters will be truncated.StringTruecountry
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: String

Description: The value of the variable.

LicenseKeyVariableSave

This method saves a new value to a variable. Variables can be used in your call scripts.

Syntax

LicenseKeyVariableSave(VariableName, VariableValue, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
VariableNameWhatever name you want for the variable. Values longer than 50 characters will be truncated. Saving a variable with an existing name will overwrite the old variable.StringTruecountry
VariableValueThe value to assign to the variable. Saving a blank value will delete the variable.StringFalse (may be an empty string)Mexico
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: Whether the variable was successfully saved.

NotifyPhoneAdvanced

This method calls any phone number and read aloud the contents of TextToSay. Use NotifyMultiplePhoneAdvanced to call multiple phone numbers.

Syntax

NotifyPhoneAdvanced(Request)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumberToDialThe phone number to call. It can be in any format, as long as there are 10 digits. To dial an extension, add x followed by the extension.StringTrue7575559999
TransferNumberThe phone number that the call will be transferred to if the call recipient presses 0. Transfer behavior can be further modified with TextToSay commands.StringFalse7575558888
VoiceIDThe text-to-speech voice ID.IntegerTrue2
CallerIDNumberThe number to display on the receiving party’s Caller ID.StringFalse7575550000
CallerIDNameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalseEsendex Services
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000
TryCountThe number of times to attempt dialing if the initial call is unanswered or busy. The maximum is 3.IntegerTrue2
NextTryInSecondsThe number of seconds to wait until the next retry is performed if the original call is unanswered or busy. We recommend waiting at least 60 seconds.IntegerTrue180
UTCScheduledDateTimeThe date and time at which to send the call, specified as Coordinated Universal Time (UTC).DateTimeTrue2020-11-17T08:25:08.336Z
TTSrateThe speed that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 20 (10 being normal). This can also be controlled within the TextToSay parameter.ByteTrue10
TTSvolumeThe volume that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 100 (100 being the default). This can also be controlled within the TextToSay parameter.ByteTrue100
MaxCallLengthThe maximum time duration of the call, in seconds. We recommend you do not change this unless you absolutely need to.IntegerTrue80
StatusChangePostUrlThe URL to post call status changes to. The URL must be in lowercase. The system posts OutgoingPostback data for outgoing calls and IncomingPostback data for incoming calls.StringFalsehttps://example.com/callprogress.aspx
ReferenceIDAn optional ID to help you identify the call.StringFalsenotify1

Response

Returns: NotifyReturn object

NotifyPhoneBasic

This method calls any phone number and read aloud the contents of TextToSay. Additional options are available in the NotifyPhoneAdvanced method.

Syntax

NotifyPhoneBasic(PhoneNumberToDial, TextToSay, CallerID, CallerIDName, VoiceID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumberToDialThe phone number to call. It can be in any format, as long as there are 10 digits. To dial an extension, add x followed by the extension.StringTrue7575559999
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
CallerIDThe number to display on the receiving party’s Caller ID.StringFalse (may be an empty string)7575550000
CallerIDnameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalse (may be an empty string)Esendex Services
VoiceIDThe text-to-speech voice ID.StringTrue2
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: NotifyReturn object

NotifyPhoneBasicWithTransfer

This method calls any phone number and read aloud the contents of TextToSay. The recipient will be transferred upon pressing 0. Additional options are available in the NotifyPhoneAdvanced method.

Syntax

NotifyPhoneBasicWithTransfer(PhoneNumberToDial, TransferNumber, TextToSay, CallerID, CallerIDName, VoiceID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumberToDialThe phone number to call. It can be in any format, as long as there are 10 digits. To dial an extension, add x followed by the extension.StringTrue7575559999
TransferNumberThe phone number that the call will be transferred to if the call recipient presses 0. Transfer behavior can be further modified with TextToSay commands.StringTrue7575558888
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
CallerIDThe number to display on the receiving party’s Caller ID.StringFalse (may be an empty string)7575550000
CallerIDnameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalse (may be an empty string)Esendex Services
VoiceIDThe text-to-speech voice ID.StringTrue2
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: NotifyReturn object

NotifyPhoneBasicWithTryCount

This method calls any phone number and read aloud the contents of TextToSay. Use the TryCount parameter to specify the number of times the operation should retry the call if the original call is unanswered or busy. Additional options are available in the NotifyPhoneAdvanced method.

Syntax

NotifyPhoneBasicWithTryCount(TryCount, PhoneNumberToDial, TextToSay, CallerID, CallerIDName, VoiceID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
TryCountThe number of times to attempt dialing if the initial call is unanswered or busy. The maximum is 3.StringTrue2
PhoneNumberToDialThe phone number to call. It can be in any format, as long as there are 10 digits. To dial an extension, add x followed by the extension.StringTrue7575559999
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
CallerIDThe number to display on the receiving party’s Caller ID.StringFalse (may be an empty string)7575550000
CallerIDnameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalse (may be an empty string)Esendex Services
VoiceIDThe text-to-speech voice ID.StringTrue2
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: NotifyReturn object

NotifyPhoneEnglishBasic

This method calls any phone number and read aloud the contents of TextToSay using the voice of Diane (VoiceID: 0). Additional options are available in the NotifyPhoneAdvanced method.

Syntax

NotifyPhoneEnglishBasic(PhoneNumberToDial, TextToSay, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumberToDialThe phone number to call. It can be in any format, as long as there are 10 digits. To dial an extension, add x followed by the extension.StringTrue7575559999
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: NotifyReturn object

NotifyMultiplePhoneAdvanced

This method sends multiple calls. (We suggest using member lists for batches of over 100 messages. See the LM_DialListAdvanced method.)

Syntax

NotifyMultiplePhoneAdvanced(MultipleANR)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
MultipleANROne or more calls that you want to send.Array of AdvancedNotifyRequest objectsTrue

Response

Returns: Array of NotifyReturn objects

NotifyMultiplePhoneBasic

This method calls multiple phone numbers and reads aloud the contents of TextToSay. Additional options are available with the NotifyMultiplePhoneAdvanced method.

Syntax

NotifyMultiplePhoneBasic(PhoneNumbersToDial, TextToSay, CallerID, CallerIDName, VoiceID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumbersToDialOne or more phone numbers to call. Separate each number with a semicolon.StringTrue7575559999; 9135550102; 9135550104
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
CallerIDThe number to display on the receiving party’s Caller ID.StringFalse (may be an empty string)7575550000
CallerIDNameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalse (may be an empty string)Esendex Services
VoiceIDThe text-to-speech voice ID.StringTrue2
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Array of NotifyReturn objects

NotifyMultiplePhoneBasicWithCPM

This method calls multiple phone numbers and reads aloud the contents of TextToSay. Use the CallsPerMinute parameter to set the number of calls per minute (CPM). Additional options are available with the NotifyMultiplePhoneAdvanced method.

Syntax

NotifyMultiplePhoneBasicWithCPM(PhoneNumbersToDial, TextToSay, CallerID, CallerIDName, VoiceID, CallsPerMinute, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumbersToDialOne or more phone numbers to call. Separate each number with a semicolon.StringTrue7575559999; 9135550102; 9135550104
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
CallerIDThe number to display on the receiving party’s Caller ID.StringFalse (may be an empty string)7575550000
CallerIDnameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalse (may be an empty string)Esendex Services
VoiceIDThe text-to-speech voice ID.StringTrue2
CallsPerMinuteThe number of calls to send per minute.IntegerTrue50
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Array of NotifyReturn objects

NotifyMultiplePhoneBasicWithCPMandReferenceID

This method calls multiple phone numbers and reads aloud the contents of TextToSay. Use the CallsPerMinute parameter to set the number of calls per minute (CPM). Use the ReferenceID parameter to set a custom ID for the calls. Additional options are available with the NotifyMultiplePhoneAdvanced method.

Syntax

NotifyMultiplePhoneBasicWithCPM(PhoneNumbersToDial, TextToSay, CallerID, CallerIDName, VoiceID, CallsPerMinute, ReferenceID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumbersToDialOne or more phone numbers to call. Separate each number with a semicolon.StringTrue7575559999; 9135550102; 9135550104
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
CallerIDThe number to display on the receiving party’s Caller ID.StringFalse (may be an empty string)7575550000
CallerIDnameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalse (may be an empty string)Esendex Services
VoiceIDThe text-to-speech voice ID.StringTrue2
CallsPerMinuteThe number of calls to send per minute.IntegerTrue50
ReferenceIDAn ID to help you identify the calls.StringTruebatch1
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Array of NotifyReturn objects

STATUS REPORTS

GetMultipleQueueIdStatus

This method retrieves the statuses of one or more calls.

Syntax

GetMultipleQueueIdStatus(QueueIDs, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
QueueIDsOne or more call IDs, as returned from any Notify* operation. Separate the IDs with semicolons.StringTrue4093249; 4093250; 4093251
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Array of NotifyReturn objects

GetQueueIDStatus

This method retrieves the status of a given call.

Syntax

GetQueueIDStatus(QueueID)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
QueueIDThe unique ID of a single call, as returned from any Notify* operation.LongTrue4093249

Response

Returns: NotifyReturn object

GetQueueIDStatusesByPhoneNumber

This method retrieves the last 10 phone calls for a given phone number.

Syntax

GetQueueIDStatusesByPhoneNumber(PhoneNumber, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumberThe phone number for which you want to get statuses.StringTrue7575449510
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Array of NotifyReturn objects

GetQueueIDStatusWithAdvancedInfo

This method retrieves the status of a given call. This method retrieves variable information and more.

Syntax

GetQueueIDStatusWithAdvancedInfo(QueueID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
QueueIDThe unique ID of a single call, as returned from any Notify* operation.LongTrue4093249
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: NotifyReturn object

GetResponseCodes

This method retrieves all response codes that may be returned when invoking Notify* methods.

Syntax

GetResponseCodes()

Request Parameters

This method has no request parameters.

Response

Returns: Array of Response objects

SCRIPTS

GetIncomingCallScript

This method retrieves the call script for incoming calls to a given number. (Contact Esendex to enable incoming phone numbers.)

Syntax

GetIncomingCallScript(PhoneNumber, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumberYour incoming phone number.StringTrue8005551234
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: String

Description: The script currently in use for incoming calls to the specified phone number.

Sample:
~\Label(Begin)~
~\ClearDTMF()~
~\ActOnDigitPress(false)~
~\SetVar(Attempt|1)~
Hello. Welcome to Esendex.
Press 1 to speak to a sales representative or press…, etc.
~\EndCall()~

ScriptDelete

This method deletes a call script.

Syntax

ScriptDelete(ScriptName, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ScriptNameThe name of the script to delete.StringTrueScript1
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

ScriptList

This method retrieves a list of call scripts available for your license key.

Syntax

ScriptList(IncludeGlobalScripts, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
IncludeGlobalScriptsWhether you want to include Esendex Global Scripts in the returned list.BooleanTrueFalse
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Array of String values

Description: The names of all call scripts that were found.

ScriptLoad

This method retrieves the contents of a script.

Syntax

ScriptLoad(ScriptName, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ScriptNameThe name of the script to load.StringTrueScript1
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: String

Description: The text (contents) of the specified script.

ScriptSave

This method saves a call script.

Syntax

ScriptSave(ScriptName, ScriptText, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ScriptNameThe script name. Must be 50 characters or fewer. Using an existing name will overwrite the old script.StringTrueScript1
ScriptTextThe text-to-speech text or combination of text-to-speech and script to be read.StringTrueHello. Welcome to Esendex.
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if the save succeeded. False otherwise.

SetIncomingCallScript

This method updates the call script for incoming calls to a given number. (Contact Esendex to enable incoming phone numbers.)

Syntax

SetIncomingCallScript(PhoneNumber, Script, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumberYour incoming phone number.StringTrue8005551234
ScriptThe text-to-speech text or combination of text-to-speech and script to use for inbound phone calls.StringTrueHello. Welcome to Esendex.
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: Returns true if the operation succeeded, false if not.

SOUND FILES

GetSoundFileInMP3

This method retrieves a sound file encoded as an MP3 in a 32, 64, or 128 kbit/s bit rate.

Syntax

GetSoundFileInMP3(SoundFileID, BitRate, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
SoundFileIDThe sound file’s ID.StringTruegreeting
BitRateThe desired bit rate in kbit/s for the returned MP3 file. Valid bit rates are 32, 64, and 128.IntegerTrue128
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: GetSoundFileInMP3Response

Description: The sound file.

GetSoundFileInMP3

This method retrieves a sound file encoded as an MP3 in a 32, 64, or 128 kbit/s bit rate.

Syntax

GetSoundFileInMP3(SoundFileID, BitRate, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
SoundFileIDThe sound file’s ID.StringTruegreeting
BitRateThe desired bit rate in kbit/s for the returned MP3 file. Valid bit rates are 32, 64, and 128.IntegerTrue128
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: GetSoundFileInMP3Response

Description: The sound file.

GetSoundFileInUlaw

This method retrieves a sound file encoded in μ-law (u-law) format.

Syntax

GetSoundFileInUlaw(SoundFileID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
SoundFileIDThe sound file’s ID.StringTruegreeting
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: GetSoundFileInUlawResponse

Description: The sound file.

GetSoundFileLength

This method retrieves a sound file’s length in seconds.

Syntax

GetSoundFileLength(SoundFileID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
SoundFileIDThe sound file’s ID.StringTruegreeting
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Double

Description: The length of the file, in seconds.

Sample:
6.123

GetSoundFileURL

This method retrieves a URL to listen to a particular sound file in MP3 format.

Syntax

GetSoundFileURL(SoundFileID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
SoundFileIDThe sound file’s ID.StringTruegreeting
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: String

Description: The URL of the MP3 file.

Sample:
https://ws.esendex.us/notifyws/p.aspx?s=

GetTTSInMP3

This method returns text-to-speech (TTS) as a sound file in the MP3 format. This method returns an MP3 encoded in a 32, 64, or 128 kbit/s bit rate. (An additional license key is required for this method. Please contact Esendex to activate a TTS License Key.)

Syntax

GetTTSInMP3(TextToSay, VoiceID, BitRate, TTSrate, TTSvolume, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read.StringTrueHello, this is a sample call from Phone Notify.
VoiceIDThe text-to-speech voice ID.IntegerTrue2
BitRateThe bit rate for the MP3 file, in kbit/s. Valid bit rates are 32, 64, and 128.IntegerTrue128
TTSrateThe speed that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 20 (10 being normal). This can also be controlled within the TextToSay parameter.ByteTrue10
TTSvolumeThe volume that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 100 (100 is the default). This can also be controlled within the TextToSay parameter.ByteTrue100
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: GetTTSInMP3Response

Description: The result of the text-to-speech file in MP3 format.

GetTTSInULAW

This method returns text-to-speech (TTS) as a sound file in the μ-law (u-law) format. (An additional license key is required for this method. Please contact Esendex to activate a TTS License Key.)

Syntax

GetTTSInULAW(TextToSay, VoiceID, TTSrate, TTSvolume, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read.StringTrueHello, this is a sample call from Phone Notify.
VoiceIDThe text-to-speech voice ID.IntegerTrue2
TTSrateThe speed that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 20 (10 being normal). This can also be controlled within the TextToSay parameter.ByteTrue10
TTSvolumeThe volume that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 100 (100 being the default). This can also be controlled within the TextToSay parameter.ByteTrue100
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: GetTTSInULAWResponse

Description: The result of the text-to-speech file in μ-law (u-law) format.

RecordSoundViaPhoneCall

This method will call you in order to record a sound file. Follow the instructions during the call to record your sound.

Syntax

RecordSoundViaPhoneCall(PhoneNumberToDial, SoundFileID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
PhoneNumberToDialThe phone number the system should call to get a voice recording. To dial an extension, add x followed by the extension.StringTrue7575551234
SoundFileIDThe name you want for your file, for use in future retrieval. The ID will be converted to lowercase.StringTruegreeting
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if the call was sent. False otherwise.

RemoveSoundFile

This method deletes a given sound file.

Syntax

RemoveSoundFile(SoundFileID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
SoundFileIDThe ID of the sound file to delete.StringTruegreeting
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if the deletion was successful. False otherwise.

RenameSoundFile

This method renames a given sound file.

Syntax

RenameSoundFile(SoundFileID, NewSoundFileID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
SoundFileIDThe current sound file ID (name).StringTruehello
NewSoundFileIDThe new sound file ID (name). The ID will be converted to lowercase.StringTruegreeting
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if the renaming was successful. False otherwise.

ReturnSoundFileIDs

This method retrieves the IDs of all sound files that you can use in your calls.

Syntax

ReturnSoundFileIDs(LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Array of String objects

Description: The IDs of all uploaded or recorded sound files available on your license key.

UploadSoundFile

This method uploads a sound file. Our system accepts WAV files (PCM, u-law, A-law, or MS ADPCM). To use the sound file in a message, put tildes (~) around it and start it with a caret (^). Example: Hello ~^soundfile~, you are great. (The message would say “Hello,” then play the sound file, and then say “you are great.”)

Syntax

UploadSoundFile(FileBinary, SoundFileID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
FileBinaryThe WAV file to upload. The minimum recommended sound quality is 16-bit mono PCM. The maximum file size allowed is 2 MB. Split your sound into multiple files if it is larger than 2 MB.Array of Byte valuesTrue
SoundFileIDThe ID to use for retrieving the sound file later on. The ID will be converted to lowercase.StringTruegreeting
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: UploadSoundFileResponse object

LISTS

LM_AddListMember

This method adds a contact (member) to a list. If you don’t have a list yet, create it first using the LM_AddNewList method.

Syntax

LM_AddListMember(ListID, LicenseKey, PhoneNumber, ClientID, FirstName, LastName)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ListIDThe ID of the list that the new member will be added to.IntegerTrue1234
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000
PhoneNumberThe member’s phone number.StringTrue7575449510
ClientIDThe member’s business or consumer full name. This parameter can also be used to save additional information about the member.StringFalse (may be an empty string)client1
FirstNameThe member’s first name.StringFalse (may be an empty string)John
LastNameThe member’s last name.StringFalse (may be an empty string)Smith

Response

Returns: Integer

Description: If the operation succeeded, it returns a positive number that is the new member’s ID. (You will need this ID to alter the member.) If the operation failed, the operation returns -1 (the phone number might be invalid).

LM_AddNewList

This method creates a list. Lists are used to store a list of contacts (members). Use the LM_DialList or LM_DialListAdvanced methods to send a message to all the members of a list.

Syntax

LM_AddNewList(ListName, ParentListID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ListNameThe name you want to apply to the new list.StringTrueList Three
ParentListIDThe ID of a list which will be this list’s parent. If you don’t want your list to have a parent, set this value to 0.IntegerTrue1230
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Integer

Description: If this operation succeeded, it returns a positive number that is the new list’s ID. (You will need this ID to alter or send messages to the list.)

LM_AlterListID

This method changes the parent list or name of an existing list.

Syntax

LM_AlterListID(ListID, ParentListID, ListName, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ListIDThe list’s ID.IntegerTrue1234
ParentListIDThe ID of a list which will be this list’s parent. If you don’t want your list to have a parent, set this value to 0. To leave the parent list setting unchanged, set this value to -1.IntegerTrue1230
ListNameThe name you want to apply to the list.StringTrueList Three
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if the alteration succeeded. False otherwise.

LM_AlterListMember

This method modifies an existing list member (contact).

Syntax

LM_AlterListMember(ListMemberID, LicenseKey, ClientID, FirstName, LastName, PhoneNumber)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ListMemberIDThe member’s ID.IntegerTrue123
ClientIDThe member’s business or consumer full name. This parameter can also be used to save additional information about the member. Use an empty string to keep the previous value.StringFalse (may be an empty string)client1
FirstNameThe member’s first name. Use an empty string to keep the previous value.StringFalse (may be an empty string)John
LastNameThe member’s last name. Use an empty string to keep the previous value.StringFalse (may be an empty string)Smith
PhoneNumberThe member’s phone number.StringTrue7575449510
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if the alteration succeeded. False otherwise.

LM_DeleteList

This method deletes a list and all its sub-lists (the lists that have it as their ParentListID).

Syntax

LM_DeleteList(ListID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ListIDThe ID of the list you want to delete.IntegerTrue1234
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if the deletion succeeded. False otherwise.

LM_DeleteListMember

This method deletes a member (contact) from a list.

Syntax

LM_DeleteListMember(ListMemberID, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ListMemberIDThe ID of the member you want to delete.IntegerTrue123
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: Boolean

Description: True if the deletion succeeded. False otherwise.

LM_DialList

This method dials all the members of a list and reads aloud the contents of TextToSay. Additional options are available in the LM_DialListAdvanced method.

Syntax

LM_DialList(ListID, DialRecursiveLists, CallerID, CallerIDName, VoiceID, TextToSay, LicenseKey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ListIDThe ID of the list to dial.IntegerTrue1234
DialRecursiveListsWhether to dial child lists.BooleanTrueFalse
CallerIDThe number to display on the receiving party’s Caller ID.StringTrue7575550000
CallerIDNameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalse (may be an empty string)Esendex Services
VoiceIDThe text-to-speech voice ID.ByteTrue2
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: LM_DialReturn object

LM_DialListAdvanced

This method dials all the members of a list and reads aloud the contents of TextToSay.

Syntax

LM_DialListAdvanced(Request)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
CallerIDThe number to display on the receiving party’s Caller ID.StringTrue7575550000
CallerIDNameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringFalseEsendex Services
VoiceIDThe text-to-speech voice ID.ByteTrue2
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringTrueHello, this is a sample call from Phone Notify.
TryCountThe number of times to attempt dialing if the initial call is unanswered or busy. The maximum is 3.ByteTrue2
LicensekeyYour license key.StringTrue00000000-0000-0000-0000-000000000000
ExtensionThe phone number extension.StringFalse333
TransferNumberThe phone number that the call will be transferred to if the call recipient presses 0. Transfer behavior can be further modified with TextToSay commands.StringFalse7575558888
NextTryInSecondsThe number of seconds to wait until the next retry is performed if the original call is unanswered or busy. We recommend waiting at least 60 seconds.IntegerTrue180
TTSRateThe speed that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 20 (10 being normal). This can also be controlled within the TextToSay parameter.ByteTrue10
TTSVolumeThe volume that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 100 (100 being the default). This can also be controlled within the TextToSay parameter.ByteTrue100
ScheduledUTCDatetimeThe date and time at which to send the call. This is specified as Coordinated Universal Time (UTC).DateTimeTrue2020-11-17T08:25:08.336Z
ListIDThe ID of the list to dial.IntegerTrue1234
DialRecursiveListsWhether to dial child lists.BooleanTrueFalse

Response

Returns: LM_DialReturn object

LM_GetListIDsByLicensekey

This method retrieves all the lists from a given license key.

Syntax

LM_GetListIDsByLicensekey(Licensekey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
LicensekeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: LM_GetListIDsByLicensekeyResponse

LM_GetListMembersByListID

This method retrieves all the members (contacts) in a given list.

Syntax

LM_GetListMembersByListID(ListID, Licensekey)

Request Parameters

Parameter NameDescriptionData TypeRequiredSample Value
ListIDThe ID of the list you want to get.IntegerTrue1234
LicensekeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: LM_GetListMembersByListIDResponse

TYPES

AdvancedNotifyRequest

This type is used in the NotifyMultiplePhoneAdvanced method.

Type Properties

Property NameDescriptionData TypeSample
PhoneNumberToDialThe phone number to call. It can be in any format, as long as there are 10 digits. To dial an extension, add x followed by the extension.String7575559999
TransferNumberThe phone number that the call will be transferred to if the call recipient presses 0. Transfer behavior can be further modified with TextToSay commands.String7575558888
VoiceIDThe text-to-speech voice ID.Integer2
CallerIDNumberThe number to display on the receiving party’s Caller ID.String7575550000
CallerIDNameThe name to display on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringEsendex Services
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.StringHello, this is a sample call from Phone Notify.
LicenseKeyYour license key.String00000000-0000-0000-0000-000000000000
TryCountThe number of times to attempt dialing if the initial call is unanswered or busy. The maximum is 3.Integer2
NextTryInSecondsThe number of seconds to wait until the next retry is performed if the original call is unanswered or busy. We recommend waiting at least 60 seconds.Integer180
UTCScheduledDateTimeThe date and time at which to send the call, specified as Coordinated Universal Time (UTC).DateTime2020-11-17T08:25:08.336Z
TTSrateThe speed that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 20 (10 being normal). This can also be controlled within the TextToSay parameter.Byte10
TTSvolumeThe volume that text-to-speech (TTS) will use when speaking the text. The value ranges from 0 to 100 (100 being the default). This can also be controlled within the TextToSay parameter.Byte100
MaxCallLengthThe maximum time duration of the call, in seconds. We recommend you do not change this unless you absolutely need to.Integer80
StatusChangePostUrlThe URL to post call status changes to. The URL must be in lowercase. The system posts OutgoingPostback data for outgoing calls and IncomingPostback data for incoming calls.Stringhttps://example.com/callprogress.aspx
ReferenceIDAn optional ID to help you identify the call.Stringnotify1

AreaCode

This type is returned by the GetAvailableAreaCodes method.

Type Properties

Property NameDescriptionData TypeSample
AreaCodeNumberThe area code number.String855
LocationThe area code location.StringToll Free

GetSoundFileInMP3Response

This type is returned by the GetSoundFileInMP3 method.

Type Properties

Property NameDescriptionData TypeSample
GetSoundFileInMP3ResultThe sound file data.Array of Byte values

GetSoundFileInUlawResponse

This type is returned by the GetSoundFileInUlaw method.

Type Properties

Property NameDescriptionData TypeSample
GetSoundFileInUlawResultThe sound file data.Array of Byte values

GetSoundFileResponse

This type is returned by the GetSoundFile method.

Type Properties

Property NameDescriptionData TypeSample
GetSoundFileResultThe sound file data.Array of Byte values

GetTTSInMP3Response

This type is returned by the GetTTSInMP3 method.

Type Properties

Property NameDescriptionData TypeSample
GetTTSInMP3ResultThe sound file data.Array of Byte values

GetTTSInULAWResponse

This type is returned by the GetTTSInULAW method.

Type Properties

Property NameDescriptionData TypeSample
GetTTSInULAWResultThe sound file data.Array of Byte values

IncomingPostback

Incoming postbacks describe incoming calls. To receive postbacks, specify a StatusChangePostUrl URL in the NotifyPhoneAdvanced or NotifyMultiplePhoneAdvanced methods.

Type Properties

Property NameDescriptionData TypeSample
QueueIDThe unique ID of the call.Long4093249
ResponseCodeStatus code for the call.QueueIDStatusCode0
StartTimeThe UTC time when the call started.DateTime2020-08-28T00:53:06.608Z
EndTimeThe UTC time when the call ended.DateTime2020-08-28T00:53:43.654Z
DurationThe total duration of the call, in seconds.Integer37
incomingWhether the call was an incoming call.BooleanTrue
transfercalleridThe number displayed on the receiving party’s Caller ID, if the call is transferred.String7575550000
machinedetectionWhether the call was answered by a human or a machine.ValueDescriptionHUMANThe call was answered by a human.MACHINEThe call was answered by a machine.FAXThe call was answered by a fax machine.UNKNOWNStringHUMAN
digitsdialedThe digits pressed while the call was active.String345
extensionThe extension of the recipient dialed.String
lastrecordlengthThe duration (in seconds) for the call or portion of the call that was recorded.37
calleridThe number displayed on the receiving party’s Caller ID.String7575550000
phonenumberThe number that received the call.String8005551234

LM_DialReturn

Type Properties

Property NameDescriptionData TypeSample
SuccessWhether the operation was successful or not.BooleanTrue
BatchIDA batch ID for the dialed list.Integer
ResponseCodeStatus code for the call.QueueIDStatusCode0
ErrorTextString

LM_GetListIDsByLicensekeyResponse

This type is returned by the LM_GetListIDsByLicensekey method.

Type Properties

Property NameDescriptionData TypeSample
LM_GetListIDsByLicensekeyResultZero or more lists assigned to the license key.Array of LM_ListIDs objects

LM_GetListMembersByListIDResponse

This type is returned by the LM_GetListMembersByListID method.

Type Properties

Property NameDescriptionData TypeSample
LM_GetListMembersByListIDResultZero or more members assigned to the list.Array of LM_ListMembers objects

LM_ListIDs

This type is included in the LM_GetListIDsByLicensekeyResponse type.

Type Properties

Property NameDescriptionData TypeSample
ListIDThe ID of the list.Integer1234
ParentListIDThe ID of the parent list. This is 0 if there is no parent list.Integer1230
ListNameThe name of the list.StringList Three

LM_ListMembers

This type describes a member (contact) in a list. It is included in the LM_GetListMembersByListIDResponse type.

Type Properties

Property NameDescriptionData TypeSample
ListMemberIDThe member’s ID.Integer12
PhoneNumberThe member’s phone number.String7575449510
ClientIDThe member’s business or consumer full name. This parameter can also be used to save additional information about the member.Stringclient1
FirstNameThe member’s first name.StringJohn
LastNameThe member’s last name.StringSmith

NotifyReturn

This type includes details about a call that you created with the Phone Notify! API.

Type Properties

Property NameDescriptionData TypeSample
ResponseCodeStatus code for the call.QueueIDStatusCode1
ResponseTextStatus description of the call.QueueIDStatusTextCall Answered
CallAnsweredWhether the call was answered.BooleanTrue
QueueIDThe unique ID of the call. Use this at any time to get the call’s current status with the GetQueueIDStatus and GetQueueIDStatusWithAdvancedInfo methods.Long4093249
TryCountThe number of times to attempt dialing if the initial call is unanswered or busy.Integer2
DemoBooleanFalse
DigitsPressedThe digits pressed while the call was active.String345
MachineDetectionWhether the call was answered by a human or a machine.ValueDescriptionHUMANThe call was answered by a human.MACHINEThe call was answered by a machine.FAXThe call was answered by a fax machine.UNKNOWNStringHUMAN
DurationThe total duration of the call, in seconds.Integer37
StartTimeThe UTC time when the call started.DateTime2020-08-28T00:53:06.608Z
EndTimeThe UTC time when the call ended.DateTime2020-08-28T00:53:43.654Z
MinuteRateDecimal
CountryThe country called, if other than U.S. or Canada.String
CallCompleteWhether the call is complete.BooleanTrue
TextToSayThe text-to-speech text or combination of text-to-speech and script to be read to the receiving party.String
VariableArrayArray of Variable objects

OutgoingPostback

Outgoing postbacks describe outgoing calls. To receive postbacks, specify a StatusChangePostUrl URL in the NotifyPhoneAdvanced or NotifyMultiplePhoneAdvanced methods.

Type Properties

Property NameDescriptionData TypeSample
QueueIDThe unique ID of the call.Long4093249
ResponseCodeStatus code for the call.QueueIDStatusCode0
StartTimeThe UTC time when the call started.DateTime2020-08-28T00:53:06.608Z
EndTimeThe UTC time when the call ended.DateTime2020-08-28T00:53:43.654Z
DurationThe total duration of the call, in seconds.Integer37
isWirelessWhether the recipient number is wireless.BooleanFalse
telcoLATALocal Access and Transport Area. This is the recipient telco’s geographical area.252
telcoOCNOperating Company Number. This can tell you which company a call went to.8825
telcoCarrierNameRecipient telco carrier name.String
telcoCarrierTypeRecipient telco carrier type.
telcoLRNLocation Routing Number. The LRN is a unique 10-digit number that represents a telephone switch through which multiple phone numbers are routed.7573740000
telcoSwitchNameRecipient telco switch name.NORFOLK
digitsdialedThe digits pressed while the call was active.String345
incallringcountNumber of audible rings after a connection is made. This variable is only present if at least one ring was detected.Integer3
qasoundidUnique identifier to retrieve a call recording, if a call was recorded.
calleridThe number displayed on the receiving party’s Caller ID.String7575550000
extensionThe extension of the recipient dialed.String
phonenumberThe number that received the call.String7575559999
transfercalleridnameThe name displayed on the receiving party’s Caller ID, if the call is transferred. (Most carriers ignore this and use their own directory assistance to display name information.)StringEsendex Services
lastrecordlengthThe duration (in seconds) for the call or portion of the call that was recorded.37
qarecordWhether the call was recorded for quality assurance (QA) purposes.BooleanFalse
transfercalleridThe number displayed on the receiving party’s Caller ID, if the call is transferred.String7575550000
calleridnameThe name displayed on the receiving party’s Caller ID. (Most carriers ignore this and use their own directory assistance to display name information.)StringEsendex Services
machinedetectionWhether the call was answered by a human or a machine.ValueDescriptionHUMANThe call was answered by a human.MACHINEThe call was answered by a machine.FAXThe call was answered by a fax machine.UNKNOWNStringHUMAN

QueueIDStatusCode

This type is included in the ResponseNotifyReturnLM_DialReturnIncomingPostback, and OutgoingPostback types.

Type: Integer

Possible Values

ValueDescription
0Queued
1Call Answered
2Call Unanswered
3Invalid Phone Number
4Invalid CallerID
5Invalid VoiceID
6Invalid Number to Transfer To
7Invalid Digit for Transfer
8Busy
9Universal Error
10Demo allowance exceeded.
11Demo not allowed
12Dialing
13CallerID and PhoneNumber To Dial cannot match.
14Key Invalid. IP Address has been suspended.
15Phone Number Abuse
16Scheduled Time is not a UTC date/time
17This site has been identified as a source of abuse.
18Ringing
19Trying
20Call is being Forwarded
21In Call/Ringing
22Cancelled
23Sound File Not Found
24Transferred
25Transfer Failed
26Caller Hung up during transfer
27Administrative Hold
28Call Forbidden
29Incoming Call
30Incoming Call Complete
31Incoming Call Transferred
32TTS Error
33Time Restriction
34Congestion/Service Unavail
35Global Not Acceptable
36No Supported Media
37Telecom Timeout
38Telecom Denied
39Demo Denied due to FTC regulations
40TTS Busy – Will Try Again
41Conference Start
42Conference Join
43Telco Reported Vacant Number
44Number Changed or DisContentected
45Sound File Processing
46Ready for Dialer

QueueIDStatusText

Type: String

Possible Values

ValueDescription
QueuedStatus Code 0
Call AnsweredStatus Code 1
Call UnansweredStatus Code 2
Invalid Phone NumberStatus Code 3
Invalid CallerIDStatus Code 4
Invalid VoiceIDStatus Code 5
Invalid Number to Transfer ToStatus Code 6
Invalid Digit for TransferStatus Code 7
BusyStatus Code 8
Universal ErrorStatus Code 9
Demo allowance exceeded.Status Code 10
Demo not allowedStatus Code 11
DialingStatus Code 12
CallerID and PhoneNumber To Dial cannot match.Status Code 13
Key Invalid. IP Address has been suspended.Status Code 14
Phone Number AbuseStatus Code 15
Scheduled Time is not a UTC date/timeStatus Code 16
This site has been identified as a source of abuse.Status Code 17
RingingStatus Code 18
TryingStatus Code 19
Call is being ForwardedStatus Code 20
In Call/RingingStatus Code 21
CancelledStatus Code 22
Sound File Not FoundStatus Code 23
TransferredStatus Code 24
Transfer FailedStatus Code 25
Caller Hung up during transferStatus Code 26
Administrative HoldStatus Code 27
Call ForbiddenStatus Code 28
Incoming CallStatus Code 29
Incoming Call CompleteStatus Code 30
Incoming Call TransferredStatus Code 31
TTS ErrorStatus Code 32
Time RestrictionStatus Code 33
Congestion/Service UnavailStatus Code 34
Global Not AcceptableStatus Code 35
No Supported MediaStatus Code 36
Telecom TimeoutStatus Code 37
Telecom DeniedStatus Code 38
Demo Denied due to FTC regulationsStatus Code 39
TTS Busy – Will Try AgainStatus Code 40
Conference StartStatus Code 41
Conference JoinStatus Code 42
Telco Reported Vacant NumberStatus Code 43
Number Changed or DisconnectedStatus Code 44
Sound File ProcessingStatus Code 45
Ready for DialerStatus Code 46

Response

This type describes a possible status for a call. It is returned by the GetResponseCodes method.

Type Properties

Property NameDescriptionData TypeSample
ResponseCodeStatus code for the call.QueueIDStatusCode0
ResponseTextStatus description of the call.QueueIDStatusTextQueued

UploadSoundFileResponse

This type is returned by the UploadSoundFile method.

Type Properties

Property NameDescriptionData TypeSample
UploadSoundFileResultResult of the upload.UploadSoundFileResult

UploadSoundFileResult

This type is included in the UploadSoundFileResponse type.

Type Properties

Property NameDescriptionData TypeSample
UploadedLengthInSecondsLength of the uploaded file, in seconds.Integer8
UploadSuccessfulWhether or not the sound file was uploaded successfully.BooleanFalse
ErrorResponseIf the upload was unsuccessful, an error message describing the problem.StringInvalid License Key

Variable

Type Properties

Property NameDescriptionData TypeSample
NameThe name of the variable.String
ValueThe value of the variable.String

Voice

Voices read the messages delivered by Phone Notify. They use text-to-speech (TTS) technology to transform text into sound. You can get a list of all voices with the getVoices method.

Type Properties

Property NameDescriptionData TypeSample
VoiceIDThe voice’s ID. Use this ID when sending a message to have the text read by a specific voice.Integer2
VoiceNameThe name of the voice.StringWilliam
VoiceGenderThe gender of the voice.StringMale
VoiceAgeThe age of the voice.String30
VoiceLanguageThe language of the voice.StringUS-English
VoiceSummaryThe name, language, gender and age of the voice.StringWilliam – US-English (Male – 30)

Let’s start sending, together.