getSmsData

Request Method: GET

Description: Collects all SMS data

URL: https://api.iovox.com:444/SMS?v=3&method=getSmsData

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES
pageThe page number to return. Use together with limit to achieve paginated results1INTEGERNO
limitDetermines how many results to return. Use together with page to achieve paginated results. Maximum here is 2000020000INTEGERNO
order

Determines which field to order the output result by. Use a field name from the req_fields list and suffix with ASC or DESC for ascending or descending respectively. For example, "date_DESC" will return results ordered by date with the most recent first.

cs_DESCSTRINGNO
sdtReturns all calls received since a given date. Start date format is YYYY-MM-DD HH:MM:SS with hours, minutes and seconds being optional. Hours, minutes and seconds defaults to 00:00:001st day of current month at 00:00:00DATETIMENO
edtReturns all calls received before a given date. End date format is YYYY-MM-DD HH:MM:SS with hours, minutes and seconds being optional. Hours, minutes and seconds defaults to 23:59:59Current day at 23:59:59DATETIMENO
sms_activity_idReturns the Call with the specified SMS Activity ID
STRINGNO
node_idReturns all calls for the specified Node ID
STRINGNO
node_typeReturns all calls for the specified Node Type
STRINGNO
link_idReturns all calls for the specified Link ID
STRINGNO
link_typeReturns all calls for the specified Link Type
STRINGNO
rule_resultReturns all data under the given rule result
STRINGNO
originReturns all data under the given origin, e.g. 447966111222
STRINGNO
voxnumberReturns all data under the given VoxNumber, e.g. 448456111222
INTEGERNO

destination

Returns all data under the given destination, e.g. 447966123456
STRINGNO
directionReturns all data under the given direction e.g. IN
ENUM ['IN,'OUT']NO
req_fieldsComma separated list of abbreviated fields to return in response. sms_activity_id = SMS Activity ID, direction = Direction, origin = Origin, destination= Destination, message = Message, date = Date, link_id = Link ID, link_name = Link Name, link_type = Link Type, node_id = Node ID, node_name = Node Name, node_type = Node Type, template_name = Template Name, rule_result = Rule Result, voxnumber = VoxNumber, voxnumber_country = VoxNumber Country, voxnumber_city = VoxNumber City
STRINGNO
outputSpecifying XML or JSON returns data in XML or JSON format XMLSTRINGNO

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be GET. x attemptedSwitch request method x to GET
400Order Field InvalidCheck the allowed abbreviation fields in the documentation
400Order Direction InvalidCorrect the direction in the order
400Page number not an integerRemove non-numerics from page
400Limit not an integerRemove non-numerics from limit
400Limit must be between 1 and 20000Correct the limit parameter
400Start Date InvalidCorrect sdt parameter
400End Date InvalidCorrect edt parameter
400VoxNumber not an integerCorrect VoxNumber parameter
400Required Fields Invalid: fieldone, fieldtwoCorrect or remove fieldone and fieldtwo
400Output Type InvalidCorrect output parameter
500Internal Server ErrorRetry later

Success Result

<?xml version="1.0" encoding="utf-8"?>
<response>
     <total_pages>1</total_pages>
     <total_results>8</total_results>
     <results>
        <result>
            <sms_activity_id>d120ed6e-a82b-11e6-9852-d43d7ed6ce4c</sms_activity_id>
            <direction>IN</direction>
            <origin>44790123123</origin>
            <destination>44772346123</destination>
            <message>Example of message</message>
            <date>2016-11-11 16:28:03</date>
            <link_id>The Link Id</link_id>
            <link_name>Link Name</link_name>
            <link_type>Link Type</link_type>
            <node_id>Node ID</node_id>
            <node_name>The Node Name</node_name>
            <node_type>Node Type</node_type>
            <template_name>Template of VoxNumber</template_name>
            <rule_result></rule_result>
            <voxnumber>44771456782</voxnumber>
            <voxnumber_country>UNITED KINGDOM</voxnumber_country>
            <voxnumber_city>MOBILE</voxnumber_city>
         </result>
         <result>
             ...
         </result>
     </results>
 </response>