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 namefrom_email (String, optional)› Description: Sender addressfrom_name (String, optional)› Description: Sender namelimit (Integer, optional)› Description: Limit amount of results your wantmj_campaign_id (Integer, optional)› Description: Mailjet's Campaign IDsent_after (Timestamp, optional)› Description: Minimum date of sending.sent_before (Timestamp, optional)› Description: Maximum date of sending.start (Integer, optional)› Description: Start offsetto_email (String, optional)› Description: Recipient's email address
Return
status (String)
› Description: Status of the response
result (Array)› Description: List of your campaigns| Label | Type | Description |
| create_time | Timestamp | Date of creation |
|---|
| from_email | String | Sender address |
|---|
| from_name | String | Sender name |
|---|
| id | Integer | Mailjet's Campaign ID |
|---|
| sendtime_end | Timestamp | Date of last email sent |
|---|
| sendtime_start | Timestamp | Date of first email sent |
|---|
| subject | String | Subject of the campaign |
|---|
total_cnt (Integer)› Description: Total amount of campaigns