by Jarek Nov 29, 2016

Get detailed reports for given times, results and channels for HTTP API V1.

The detailed activity log API allows you to get detailed information from your activity log on the emails that you have sent. Information can be narrowed by email status, channel and date time. Note that we only keep 30 days of email log details.

To use the Activity Log command GET to https://api.elasticemail.com/mailer/status/log?username=your username&api_key=your API key

You may also pass the following optional parameters:

  • format=xml or format=csv
  • compress=true or compress=false - True if you want the results returned as a compressed zip file
  • status=status id  value - One of the following status values: 0 or all, 1 for ReadyToSend, 2 for InProgress, 4 for Bounced, 5 for Sent, 6 for Opened, 7 for Clicked, 8 for Unsubscribed, 9 for Abuse Report
  • channel=channel name - If you included a channel name when submitting your requests you can filter here. If you did not submit a specific channel it has defaulted to the "from" email address.
  • from=from date time - Server time in the format: 5/19/2011 10:54:20 PM
  • to=to date time - Server time in the format: 5/19/2011 10:54:20 PM

For example: https://api.elasticemail.com/mailer/status/log?format=csv&compress=true&username=your username&api_key=your api key&status=0&from=5/19/2011%2010:54:20%20PM&to=5/20/2011%2010:54:20%20PM

If sent correctly you will receive a response like:

to,status,channel,date,message
"mailer@elasticemail.com","Sent","mailer@elasticemail.com","5/20/2011 10:13:25 PM",""
"mailer@elasticemail.com","Sent","mailer@elasticemail.com","5/20/2011 10:13:25 PM",""
"mailer@elasticemail.com","Sent","mailer@elasticemail.com","5/20/2011 10:13:25 PM",""
"mailer@elasticemail.com","Sent","mailer@elasticemail.com","5/20/2011 10:13:25 PM",""

or

<recipients from="5/19/2011 10:54:20 PM" to="5/20/2011 10:54:20 PM">
 <recipient to="mailer@elasticemail.com" status="Sent" channel="mailer@elasticemail.com" date="5/20/2011 10:13:25 PM" message="" />
 <recipient to="mailer@elasticemail.com" status="Sent" channel="mailer@elasticemail.com" date="5/20/2011 10:13:25 PM" message="" />
 <recipient to="mailer@elasticemail.com" status="Sent" channel="mailer@elasticemail.com" date="5/20/2011 10:13:25 PM" message="" />
 <recipient to="mailer@elasticemail.com" status="Sent" channel="mailer@elasticemail.com" date="5/20/2011 10:13:25 PM" message="" />
</recipients>

 

If you like this article, share it with friends:

Jarek

Member of the Customer Success Team. Don't hesitate to ask me, if you have any questions related to Elastic Email.

Related Articles

Ready to get started?

Tens of thousands of companies around the world already send their emails with Elastic Email. Join them and discover your own email superpowers.

Free 100 emails/day No credit card required