ReportEmailsent Method - GET

Description

Lists all emails sent with numerous filters.. Be careful, by default only a small amount of result is returned regarding the last emails sent. Use the "limit" parameter to obtain as many results as you want.

Request URL

api.mailjet.com/0.1/reportEmailsent

Code Sample

<?php
 
# Call
$response = $mj->reportEmailSent();
 
# Result
$emails = $response->emails;
$count = $reponse->cnt;
 
?>

Parameters

campaign_id (Integer, optional)
Description: Mailjet's campaign ID
from (String, optional)
Description: Filter on Sender email
from_domain (String, optional)
Description: Filter on Domain
from_type (Integer, optional)
Description: Filter on email type. [0]: all; [1]: transactional only; [2]: campaigns only
limit (Integer, optional)
Description: Limit amount of results you want
start (Integer, optional)
Description: Start offset
status (String, optional)
Default value: queued, sent, opened, clicked, bounce, blocked, spam or unsub.
ts_from (Timestamp, optional)
Description: Beginning of the period
ts_to (Timestamp, optional)
Description: End of the period

Return

status (String)
Description: Status of the response
cnt (Integer)
Description: Amount of distinct emails tracked
emails (Array)
Description: List of emails
LabelTypeDescription
blockedInteger[0]: yes; [1]: no;
bounceInteger[0]: yes; [1]: no;
clickInteger[0]: yes; [1]: no;
cnt_recipientsStringNumber of recipients
email_idStringMailjet's email ID
from_emailStringSender address
from_idIntegerMailjet's Sender ID
from_nameStringSender name
idInteger
openInteger[0]: yes; [1]: no;
queuedInteger[0]: yes; [1]: no;
sendtime_endTimestampDate of last email sent
sendtime_startTimestampDate of first email sent
sentInteger[0]: yes; [1]: no;
spamInteger[0]: yes; [1]: no;
statusStringqueued, sent, opened, clicked, bounce, blocked, spam or unsub.
subjectStringEmail's subject
to_emailStringEmail address
to_idIntegerMailjet's contact ID