Get a listing of the emails sent through this system
Query parameters
-
The ID of your mail order this will be sent through.
-
originating ip address sending mail
-
mx record mail was sent to
-
from email address
-
to/destination email address
-
subject containing this string
-
mail id
-
number of records to skip for pagination
Minimum value is
0. Default value is0. -
maximum number of records to return
Minimum value is
1, maximum value is10000. Default value is100. -
earliest date to get emails in unix timestamp format
Minimum value is
0, maximum value is9999999999. -
earliest date to get emails in unix timestamp format
Minimum value is
0, maximum value is9999999999.
GET
/mail/{id}/log
curl \
--request GET 'https://my.interserver.net/apiv2/mail/{id}/log' \
--header "X-API-KEY: $API_KEY"
Response examples (200)
{
"skip": 0,
"limit": 100,
"total": 1,
"emails": [
{
"id": "17c7eda538e0005d03",
"to": "client@isp.com",
"_id": 103172,
"seq": 1,
"from": "person@mysite.com",
"time": 1634215809,
"user": "mb5658",
"domain": "interserver.net",
"locked": 1,
"origin": "199.231.189.154",
"queued": "2021-10-14T12:50:15.487Z",
"created": "2021-10-14 08:50:10",
"subject": "sell 0.005 shares",
"assigned": "relay1",
"bodySize": 63,
"lockTime": "1634215818533",
"response": "250 2.0.0 Ok queued as C91D83E128C",
"interface": "feeder",
"messageId": "<vmiLEebsuCbSpUxD7oN3REpaN4VbN6BrdCAbNKIrdAo@relay0.mailbaby.net>",
"recipient": "client@isp.com",
"transtype": "ESMTPSA",
"mxHostname": "mx.j.is.cc",
"sendingZone": "interserver"
}
]
}