MessageList Method - GET

Description

List all your messages (both transactional and campaign) with numerous filters.

Request URL

api.mailjet.com/0.1/messageList

Code Sample

<?php
 
# Call
$response = $mj->messageList();
 
# Result
$messages = $response->result;
 
?>

Parameters

custom_campaign (String, optional)
Description: Your custom campaign name
from_email (String, optional)
Description: Sender address
from_name (String, optional)
Description: Sender name
limit (Integer, optional)
Description: Limit amount of results your want
mj_campaign_id (Integer, optional)
Description: Mailjet's Campaign ID
sent_after (Timestamp, optional)
Description: Minimum date of sending.
sent_before (Timestamp, optional)
Description: Maximum date of sending.
start (Integer, optional)
Description: Start offset
to_email (String, optional)
Description: Recipient's email address

Return

status (String)
Description: Status of the response
result (Array)
Description: List of your campaigns
LabelTypeDescription
create_timeTimestampDate of creation
from_emailStringSender address
from_nameStringSender name
idIntegerMailjet's Campaign ID
sendtime_endTimestampDate of last email sent
sendtime_startTimestampDate of first email sent
subjectStringSubject of the campaign
total_cnt (Integer)
Description: Total amount of campaigns