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. To receive responses in JSON, post to the URL below, unless otherwise specified.
https://www.slybroadcast.com/gateway/vmb.json.php Other ItemsField 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_method | Text | new_campaign | Required when sending a slybroadcast campaign. |
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.*Not required if c_listid is provided. |
c_listid | Text | 94454 | List ID attached to each list uploaded to website. Use c_method=get_phone_list to obtain list of IDs. *Not required if c_phone is provided. |
c_callerID | Text | 6173999982 | Caller ID of campaign. This will appear within the recipient's voicemail-box. |
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.slybroadcast.com/gateway/vmb.json.php |
c_method | Text | get_audio_list_with_duration | Use to view your full list of audio files with duration. Duration in seconds. Posts must be made to the url: https://www.slybroadcast.com/gateway/vmb.json.php |
c_method | Text | get_phone_list | Use to retrieve a full list of your phone number lists uploaded to the website, along with their specific ID's. |
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 cheduled to be delivered and are in your que. |
Below is a sample of a successful campaign submission, using the POST method. We will return an acknowledgement 'OK' if successful. Otherwise, we will send back an error message indicating the missing variables.
The base URL for all API calls, unless otherwise noted, is https://www.slybroadcast.com/gateway/vmb.json.php
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.
JSON Response
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 JSON format below:
Below is example PHP code to handle the post back. *Users must acknowledge receipt of each call status by returning 'OK'.
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.
JSON Response
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 in JSON may include:
To request the number of remaining message credits in your account, the following parameters below must be used.
JSON Responses
To retrieve a full list of your phone number lists uploaded to the website along with their specific ID's, the following parameters below must be used:
JSON Responses
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:
JSON Responses
To retrieve a full list of the audio files in your account, please post to the URL: https://www.slybroadcast.com/gateway/vmb.json.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 delete an audio file in your account, post to the URL: https://www.slybroadcast.com/gateway/vmb.json.php
The system file name must be included.
*If an audio file is currently scheduled to be used in a future campaign, the camapign will still complete. You must delete the campaign to stop it from going out.
We will return one of the following responses.
Corrections? Email us at support@slybroadcast.com.