getEmailHistory

Request Method: GET

Description: Collects all call data

URL: https://api.iovox.com:444/Emails?v=3&method=getEmailHistory

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 (exclusive of cat_v, cat_lbl and cat_id) and suffix with ASC or DESC for ascending or descending respectively. For example, "cs_DESC" will return results ordered by call_start with the most recent first.

cs_DESCSTRINGNO
sdtReturns all emails 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
idReturns the email with the specified Email ID
STRINGNO
node_idReturns all emails for the specified Node ID
STRINGNO
node_nameReturns all emails for the specified Node Name
STRINGNO
node_typeReturns all emails for the specified Node Type
STRINGNO
link_idReturns all emails for the specified Link ID
STRINGNO
link_nameReturns all emails for the specified Link Name
STRINGNO
link_typeReturns all emails for the specified Link Type
STRINGNO
fromReturns all emails for the specified From
STRINGNO
toReturns all emails for the specified To
STRINGNO
req_fieldsComma separated list of abbreviated fields to return in response. id=id, date=date,nid=Node Id,nn=Node Name, nt=Node Type, lid=Link id, ln=Link Name, lt=Link Type, from=From, to=To, disp=disposition, rdisp=read_disposition

id,nid,nn,

lid,ln,disp,

rdisp,from,to

STRINGNO

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
400Required Fields Invalid: fieldone, fieldtwoCorrect or remove fieldone and fieldtwo
500Internal Server ErrorRetry later

Success Result

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <current_page>1</current_page>
    <total_pages>1</total_pages>
    <total_results>75</total_results>
    <results>
        <result>
            <id>7cabcd-aaa</id>
            <node_name>NODE NAME A</node_name>
            <link_name>LINK NAME A</link_name>
            <disposition>sent</disposition>
            <read_disposition>unread</read_disposition>
            <date>2020-02-13 13:45:35</date>
            <from>noreply@iovox.com</from>
            <to>destination-a@domain-a.com</to>
            <node_id>NODE ID A</node_id>
            <link_id>LINK ID A</link_id>
        </result>
        <result>
            <id>7cabcd-bbb</id>
            <node_name>NODE NAME B</node_name>
            <link_name>LINK NAME B</link_name>
            <disposition>sent</disposition>
            <read_disposition>read</read_disposition>
            <date>2020-02-13 13:56:10</date>
            <from>noreply@iovox.com</from>
            <to>destination-a@domain-a.com</to>
            <node_id>NODE ID B</node_id>
            <link_id>LINK ID B</link_id>
        </result>
        <result>
        ....
        </result>
    </results>
</response>