API used to get a list of SMS enabled numbers
Use the SMS Get Numbers API to retrieve a list of SMS enabled numbers
The SMS Get Numbers API is used to retrieve a list of SMS enabled numbers from within a DialogTech account
Base URL for SMS Get Numbers
Parameter List
Parameter | Required | Accepts | Max Length | Notes | Usage |
---|---|---|---|---|---|
action | Yes | String: sms.get_numbers | n/a | Only accepts sms.get_numbers to retrieve SMS enabled numbers | Defines the API Call as "SMS Get Numbers" type |
access_key | Yes | String | n/a | Access Key from the Key Manager within a DialogTech account | Credentials used for access to the API for a particular DialogTech account |
secret_access_key | Yes | String | n/a | Secret Access Key from the Key Manager within a DialogTech account | Credentials used for access to the API for a particular DialogTech account |
Using this API
These code examples are meant to show a basic method of accessing DialogTech's IVR Report API.
<?php
https://secure.dialogtech.com/ibp_api.php?access_key=ACCESS_KEY&secret_access_key=SECRET_ACCESS_KEY&action=sms.get_numbers
?>
curl -X ""
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE response [
<!ELEMENT response (result, result_description, data)>
<!ELEMENT result (#PCDATA)>
<!ELEMENT result_description (#PCDATA)>
<!ELEMENT data (number+)>
<!ELEMENT number (#PCDATA)>
<!ELEMENT url (#PCDATA)>
]>
<response>
<result></result>
<result_description>[1] Number(s) Returned</result_description>
<data>
<number sms_enabled="1" url="http://example.net/sms_listener.php">5559990000</number>
</data>
</response>