CallFire has a new API!
We are proud to announce the launch of our API 2.0! Learn more about our streamlined, transactional and broadcast APIs. This version of the API documentation will remain available for reference only. There will be no new development, only bug fixes. We highly recommend upgrading to our newer and more sophisticated documentation.
Use ID returned from CreateBroadcast
or from QueryBroadcast
to retreive information on indivual Broadcast. Include info such as campaign name, type, status, ect...
Request Parameters
Parameter | Demo Value | Description | Data Type |
---|---|---|---|
GetBroadcast | Broadcast request by unique ID | object | |
Id | Unique ID of resource | long |
* indicates choice value, bolded parameters are required
Response Parameters
Parameter | Description | Data Type |
---|---|---|
Broadcast | A TEXT, IVR, or VOICE Broadcast | |
id | Unique ID of Broadcast | long |
Name | Name of Broadcast | string |
Status | Status of Broadcast (response only)[START_PENDING, RUNNING, STOPPED, FINISHED, ARCHIVED, TEST, SETUP, SCHEDULED, SUSPENDED, VALIDATING_EMAIL, VALIDATING_START, BLOCKED_SUSPICIOUS, APPROVED, DECLINED, PAUSED, CANCELED] | BroadcastStatus |
LastModified | Last Modified 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
Type | Type of Broadcast[VOICE, IVR, TEXT, CCC] | BroadcastType |
Label | Labels on Broadcast | string |
ResumeNextDay | If 'true' resumes the unfinished campaign to the next day | boolean |
VoiceBroadcastConfig | Configuration needed for a Voice Broadcast | |
id | Unique ID of BroadcastConfig | long |
Created | DateTime Broadcast was created 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
FromNumber | E.164 11 digit number or short code | PhoneNumber |
LocalTimeZoneRestriction | Restrict the times your compaign can run | |
BeginTime | Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
EndTime | Latest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
RetryConfig | Retry logic for broadcast | |
MaxAttempts | Max attempts to retry broadcast (default: 1) | int |
MinutesBetweenAttempts | Minutes between broadcast attempts (default: 60) | int |
RetryResults | Conditions to retry on[LA, AM, BUSY, DNC, XFER, NO_ANS, XFER_LEG, SENT, RECEIVED, DNT, TOO_BIG, INTERNAL_ERROR, CARRIER_ERROR, CARRIER_TEMP_ERROR, UNDIALED, SD, POSTPONED, ABANDONED, SKIPPED, INVALID_NUMBER] | List[Result] |
RetryPhoneTypes | Phone types to call in retry[FIRST_NUMBER, HOME_PHONE, WORK_PHONE, MOBILE_PHONE] | List[RetryPhoneType] |
AnsweringMachineConfig | Action to take if machine answers[AM_ONLY, AM_AND_LIVE, LIVE_WITH_AMD, LIVE_IMMEDIATE] | AnsweringMachineConfig |
LiveSoundText | string | |
LiveSoundId | ID of Sound to play if call answered by live person | long |
LiveSoundTextVoice | Voice | |
MachineSoundText | string | |
MachineSoundId | ID of Sound to play if call answered by machine | long |
MachineSoundTextVoice | Voice | |
TransferSoundText | string | |
TransferSoundId | ID of Sound to play if call transfered | long |
TransferSoundTextVoice | Voice | |
TransferDigit | Phone digit call transfers on if pressed | PhoneDigit |
TransferNumber | Number to transfer call to | PhoneNumber |
DncSoundText | string | |
DncSoundId | Do Not Call unique ID of sound | long |
DncSoundTextVoice | Voice | |
DncDigit | Do Not Call Digit | PhoneDigit |
MaxActiveTransfers | Max Transfers | int |
TextBroadcastConfig | Configuration needed for a Text Broadcast | |
id | Unique ID of BroadcastConfig | long |
Created | DateTime Broadcast was created 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
FromNumber | E.164 11 digit number or short code | PhoneNumber |
LocalTimeZoneRestriction | Restrict the times your compaign can run | |
BeginTime | Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
EndTime | Latest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
RetryConfig | Retry logic for broadcast | |
MaxAttempts | Max attempts to retry broadcast (default: 1) | int |
MinutesBetweenAttempts | Minutes between broadcast attempts (default: 60) | int |
RetryResults | Conditions to retry on[LA, AM, BUSY, DNC, XFER, NO_ANS, XFER_LEG, SENT, RECEIVED, DNT, TOO_BIG, INTERNAL_ERROR, CARRIER_ERROR, CARRIER_TEMP_ERROR, UNDIALED, SD, POSTPONED, ABANDONED, SKIPPED, INVALID_NUMBER] | List[Result] |
RetryPhoneTypes | Phone types to call in retry[FIRST_NUMBER, HOME_PHONE, WORK_PHONE, MOBILE_PHONE] | List[RetryPhoneType] |
Message | 160 char or less message to be sent in text broadcast. Use rented 'keyword' in message if need response | string |
BigMessageStrategy | Set strategy if message is over 160 chars (default: SEND_MULTIPLE)[SEND_MULTIPLE, DO_NOT_SEND, TRIM, MMS, RCS] | BigMessageStrategy |
IvrBroadcastConfig | Configuration needed for an IVR Broadcast | |
id | Unique ID of BroadcastConfig | long |
Created | DateTime Broadcast was created 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
FromNumber | E.164 11 digit number or short code | PhoneNumber |
LocalTimeZoneRestriction | Restrict the times your compaign can run | |
BeginTime | Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
EndTime | Latest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
RetryConfig | Retry logic for broadcast | |
MaxAttempts | Max attempts to retry broadcast (default: 1) | int |
MinutesBetweenAttempts | Minutes between broadcast attempts (default: 60) | int |
RetryResults | Conditions to retry on[LA, AM, BUSY, DNC, XFER, NO_ANS, XFER_LEG, SENT, RECEIVED, DNT, TOO_BIG, INTERNAL_ERROR, CARRIER_ERROR, CARRIER_TEMP_ERROR, UNDIALED, SD, POSTPONED, ABANDONED, SKIPPED, INVALID_NUMBER] | List[Result] |
RetryPhoneTypes | Phone types to call in retry[FIRST_NUMBER, HOME_PHONE, WORK_PHONE, MOBILE_PHONE] | List[RetryPhoneType] |
DialplanXml | IVR xml document describing dialplan | string |
CccBroadcastConfig | Configuration needed for a CCC Broadcast | |
id | Unique ID of BroadcastConfig | long |
Created | DateTime Broadcast was created 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
FromNumber | E.164 11 digit number or short code | PhoneNumber |
LocalTimeZoneRestriction | Restrict the times your compaign can run | |
BeginTime | Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
EndTime | Latest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
RetryConfig | Retry logic for broadcast | |
MaxAttempts | Max attempts to retry broadcast (default: 1) | int |
MinutesBetweenAttempts | Minutes between broadcast attempts (default: 60) | int |
RetryResults | Conditions to retry on[LA, AM, BUSY, DNC, XFER, NO_ANS, XFER_LEG, SENT, RECEIVED, DNT, TOO_BIG, INTERNAL_ERROR, CARRIER_ERROR, CARRIER_TEMP_ERROR, UNDIALED, SD, POSTPONED, ABANDONED, SKIPPED, INVALID_NUMBER] | List[Result] |
RetryPhoneTypes | Phone types to call in retry[FIRST_NUMBER, HOME_PHONE, WORK_PHONE, MOBILE_PHONE] | List[RetryPhoneType] |
AgentGroupId | Unique ID of AgentGroup | long |
SmartDropSoundId | Unique ID of SmartDropSound | long |
ScriptId | Unique ID of Script | long |
TransferNumberIdList | ID List of TransferNumbers | List[long] |
AllowAnyTransfer | Allow any transfer | boolean |
TransferCallerId | Transfer caller Id | string |
Recorded | Recorded | boolean |
<?php
/**
* You'll need your login/password pair when you create the SOAP client.
* Don't use the fake login/password provided here; it's just for show and
* won't work.
*/
$wsdl = "http://callfire.com/api/1.1/wsdl/callfire-service-http-soap12.wsdl";
$client = new SoapClient($wsdl, array(
'soap_version' => SOAP_1_2,
'login' => 'YourLoginId',
'password' => 'YourPassword'));
/**
* GetBroadcast
*/
$request = new stdclass();
$request->Id = 332; // required
$response = $client->GetBroadcast($request);
print_r($response);
// Sample response for Text campaign:
// stdClass Object (
// [Name] => Sample Outbound SMS Broadcst
// [Status] => RUNNING
// [Type] => TEXT
// [TextBroadcastConfig] => stdClass Object (
// [FromNumber] => 67076
// [Message] => Hi Birdie
// )
// [id] => 3
// )
// Sample response for Voice campaign:
// stdClass Object (
// [Name] => Test API SendCall Broadcast
// [Status] => RUNNING
// [Type] => VOICE
// [VoiceBroadcastConfig] => stdClass Object (
// [FromNumber] => 13105551212
// [RetryConfig] => stdClass Object (
// [MaxAttempts] => 1
// [MinutesBetweenAttempts] => 60
// [RetryResults] => BUSY NO_ANS
// )
// [AnsweringMachineConfig] => LIVE_IMMEDIATE
// [LiveSoundId] => 9
// )
// [id] => 332
// )
?>