Return cPanel account email tracking statistics
This function retrieves email tracking statistics.
Query parameters
The type of delivery to query. If you do not specify a value, this function returns all types.
- remote
- remote-or-faildefer
- local
The end date of the search window. This parameter defaults to the current time.
Note
This parameter is an alias for endtime and is provided for backwards compatibility.
The end time of the search window. This parameter defaults to the current time.
Note
You can also call this the enddate parameter.
Whether to return the TOTALSIZE parameter.
- 1 — Do not return.
- 0 — Return.
Whether to return the SUCCESSCOUNT parameter.
- 1 — Do not return.
- 0 — Return.
The start date of the search window.
Note
This parameter is an alias for starttime and is provided for backwards compatibility.
The start time of the search window.
Note
You can also call this the startdate parameter.
The cPanel username to query. If you do not specify a value, the function retrieves statistics for all of the server's accounts.
Response
HTTP Request was successful.
Example response
{
"data": {
"records": [
{
"SENDCOUNT": 14,
"SUCCESSCOUNT": 14,
"TOTALSIZE": 27444
}
]
},
"metadata": {
"command": "emailtrack_stats",
"reason": "OK",
"result": 1,
"version": 1
}
}