MessageContacts Method - GET

Description

Retrieve the complete list of subscribers to a specific message.

Request URL

api.mailjet.com/0.1/messageContacts

Code Sample

<?php
 
# Parameters
$params = array(
    'id' => '123'
);
 
# Call
$response = $mj->messageContacts($params);
 
# Result
$contacts = $response->result;
$count = $response->total_cnt;
 
?>

Parameters

id (Integer, required)
Description: Mailjet's Campaign ID
limit (Integer, optional)
Description: Limit amount of results your want
start (Integer, optional)
Description: Start offset
status (String, optional)
Description: Message status filter: queued, sent, opened, clicked, bounce, blocked, spam or unsub

Return

status (String)
Description: Status of the response
result (Array)
Description: List of your campaigns
LabelTypeDescription
emailStringEmail of your contact
idIntegerMailjet's Email ID
sent_atTimestampSending time of the message
statusStringMessage status filter: queued, sent, opened, clicked, bounce, blocked, spam or unsub
total_cnt (Integer)
Description: Total amount of campaigns