f
MobileSphere has developed and deployed an API solution for the Slybroadcast platform in order to facilitate the integration of its solution for third party providers. All transactions require specific information that indicate to the gateway that the transaction is authentic and that it has been submitted for processing with the client’s knowledge. The API can handle all the necessary steps in the secure transaction process — data collection, data submission and audio file delivery to voicemail — while keeping the process virtually transparent to its end user. View our API on Postman here.
All requests must be submitted as a form using the POST method. Post to the URL below, unless otherwise specified:
https://www.mobile-sphere.com/gateway/vmb.php
Field Name | Type | Example Value | Definition |
---|---|---|---|
c_uid | Text | test@slybroadcast.com | Login email address. Required for each request. |
c_password | Password | xxxxxxxx | Password. Required for each request. |
c_record_audio | Text | My First Message | Audio file name as seen within your account. *Case Sensitive. Not required if c_url provided. |
c_url | Text | http://www.yourwebsite.com/MeetingReminder.wav | To send a campaign using your own audio file, use c_url. You must designate the file type you are using (WAV, Mp3 or M4a files only) with c_audio. Audio files must be greater than five seconds. |
c_audio | Text | wav | Audio file type (WAV, Mp3 or M4a). Required only if c_url is used. |
c_phone | Text | 6173999980,6173999981 | Destination phone numbers. Max: 10,000 per submission. |
c_callerID | Text | 6173999982 | Caller ID of campaign. This will appear within the recipient's voicemail-box. Must be a valid phone number. |
c_date | Text | now | Date/Time of delivery in Eastern Time.
YYYY-MM-DD HH:MM:SS
*Must use 24-hour time format. Example: 5:00pm = 17:00:00 |
c_title | Text | My First Broadcast | Campaign name or title. (Optional). Session ID must be used in requesting results or statuses. |
mobile_only | Hidden | 1 | By sending 1, campaign will be sent to mobile numbers only. (Optional). |
Field Name | Type | Example Value | Definition |
---|---|---|---|
c_option | Hidden | callstatus | Use when requesting the call status of one phone number in a slybroadcast campaign. Session ID & c_phone must be included. |
c_option | Hidden | campaign_result | Use when requesting the call results for each phone number in a single campaign. Session ID must be included. |
c_option | Hidden | pause | Campaign will be paused. Session ID must be included. |
c_option | Hidden | run | Use to resume a campaign that is currently paused. Session ID must be included. |
c_option | Hidden | cancel | Use this parameter when cancelling a scheduled campaign. Session ID must be included. |
c_option | Hidden | stop | By using this parameter, campaigns that are currently running will be stopped. Stopped campaigns cannot be restarted. Session ID must be included. |
c_option | Hidden | do_not_dial | Use this when adding telephone numbers to your account's Do Not Dial List. All numbers included on this list will never receive voicemails sent from your account. |
c_option | Hidden | remove_do_not_dial | To remove phone numbers from your account's Do Not Dial List, use this parameter. |
c_option | Hidden | campaign_by_date | To view all Session IDs from a specific date. YYYY-MM-DD. |
Field Name | Type | Example Value | Definition |
---|---|---|---|
c_method | Text | get_audio_list | Use to view your full list of audio files. Posts must be made to the url: https://www.mobile-sphere.com/gateway/vmb.aflist.php |
c_method | Text | get_audio_list_with_duration | Use to view your full list of audio files with duration, in seconds. Posts must be made to the url: https://www.mobile-sphere.com/gateway/vmb.aflist.php |
Field Name | Type | Example Value | Definition |
---|---|---|---|
session_id | Text | 2103524120 | Created automatically by system when creating a campaign. |
c_dispo_url | Text | https://www.yoursite.com/results | URL that will receive call status postbacks. (Optional) You must acknowledge receipt of each call status by returning 'OK'. |
c_sys_audio_name | Text | r18904b140407197964.wav | Use ONLY if sending the system file name of your audio file. Not required if c_url or c_record_audio provided. |
c_endtime | Text | 2019-12-31 15:30:00 | Campaign will stop at time provided, regardless of its' completion. YYYY-MM-DD HH:MM:SS |
remain_message | Text | 1 | Response will include the remaining message credits in your account. Pending message credits are messages scheduled to be delivered and are in your que. |
Below is a sample of a successful campaign submitted via HTML form, using the POST method. We will return an acknowledgement 'OK' if successful. Otherwise, we will send back an error message indicating the missing variables.
IMPORTANT: All campaigns are sent out in Eastern Time and use the 24-hour clock. (YYYY-MM-DD HH:MM:SS)
Example: December 31, 2019 at 5:00pm = "2019-12-31 17:00:00"
To send a campaign using your own audio file, use c_url. You must designate the file type you are using (.WAV, .Mp3 or .M4a files only) with c_audio. Audio files must be greater than five seconds.
To set an End Time to your campaign, use c_endtime. By inserting an End Time, your campaign will not run past the time chosen, regardless of its percentage of completion.
The following data will be returned if a campaign is successfully received.
Users can provide a URL to which each call status will be posted, automatically using c_dispo_url . However, this is optional.
*Users must acknowledge receipt of each call status by returning 'OK'.
Your campaign information will be returned in the following format:
Below is example PHP code to handle the post back. *Users must acknowledge receipt of each call status by returning 'OK'.
You can request the status of your current campaign by using the parameters below. Future scheduled campaigns include 90 days out.
Your status will be returned in the following format:
To request the call results for each phone number in a single campaign, the following parameters must be included. Be sure the session_id is the one received in response to your initial campaign submission.
Your status will be returned in the following format:
To temporarily pause a running campaign or resume a campaign that was previously paused, you must include the session_id of the campaign received in the response to your initial campaign. We will return an 'OK' or an error if the session_id was not found.
Possible return responses may include:
To cancel a running campaign or a scheduled campaign, you must include the session_id of the campaign received in the response to your initial campaign. We will return an 'OK' or an error if the session_id was not found.
*Once a campaign is cancelled, it cannot be restarted.
To request the number of remaining message credits in your account, the following fields must be used. The response will include the remaining message credits in your account. Pending message credits are messages scheduled to be delivered and are in your que.
The following data will be returned:
With the Do Not Dial List feature, you can add or remove phone numbers that you do not want to include in your slybroadcast campaigns. Adding a phone number to this list ensures that the recipient will not receive voice messages sent from your slybroadcast account.
To add or remove phone numbers from your personal Do Not Dial List, the following parameters below must be used:
To retrieve a full list of the audio files in your account, please post to the URL:
https://www.mobile-sphere.com/gateway/vmb.aflist.php
Use get_audio_list_with_duration to include each audio file's duration, in seconds.
We will return our system file name along with your self-created file name and the date/time created.
To download an audio file referencing the 5-digit name assigned when recording via the Slybroadcast Recording Center or our system name, please post to the URL:
https://www.mobile-sphere.com/gateway/vmb.dla.php
If referencing our system file name, use c_sys_audio_name.
Corrections? Email us at support@slybroadcast.com.