jsonapicpanelwhmexim

WHM API: emailtrack_search returns empty records


I am using the WHM api to track emails in the mail delivery log, however, the JSON response using emailtrack_search return no records

I am calling the following URL

1xx.x.xx.xxx:2087/cpsess####/json-api/emailtrack_search?api.version=1

And this is the JSON response

{"metadata":{"result":1,"version":1,"command":"emailtrack_search","reason":"OK","overflowed":0,"__chunked":1},"data":{"records":[]}}

Notice that the records are empty, but i have messages in the email delivery log, I tried adding a user as parameter but it returns the same.

Does anybody know how to show email delivery logs using this API?

I would really appreciate any help

Best regards.


Solution

  • This thread might help you. Also you can ask for request on cPanel forums. There are a lot of active users there:

    https://forums.cpanel.net/threads/track-delivery-api.534501/