This function retrieves email delivery records.
Warning:
On most servers, this function returns a large amount of output. We strongly recommend that you filter and sort the output.
The following example uses the filter and sort options:
https://hostname.example.com:2087/cpsess##########/json-api/emailtrack_search?api.version=1&api.filter.enable=1&api.filter.a.field=sendunixtime&api.filter.a.arg0=1628889719&api.filter.a.type=gt&api.filter.b.field=sendunixtime&api.filter.b.arg0=1629847321&api.filter.b.type=lt&api.sort.enable=1&api.sort.a.field=sendunixtime&api.sort.a.reverse=0&api.chunk.enable=1&api.chunk.size=25&api.chunk.start=1&success=1
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ emailtrack_search
{- "data": {
- "records": [
- {
- "actiontime": "2012-02-06T14:17:51.000Z",
- "actionunixtime": 1328559471,
- "deliveredto": null,
- "deliverydomain": null,
- "deliveryuser": null,
- "domain": "example.com",
- "host": null,
- "ip": null,
- "message": "Domain example.com has exceeded the max defers and failures per hour (5/5 (100%)) allowed. Message discarded.",
- "msgid": "1RuV0Z-0005NR-BN",
- "recipient": "user@example.com",
- "router": "enforce_mail_permissions",
- "sender": "user@example.com",
- "senderauth": "localuser",
- "senderhost": "localhost",
- "senderip": "127.0.0.1",
- "sendunixtime": 1328559471,
- "size": 1653,
- "spamscore": 5,
- "transport": null,
- "transport_is_remote": 0,
- "type": "success",
- "user": "cpanel1"
}
]
}, - "metadata": {
- "command": "emailtrack_search",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}