V3 REFERENCE Messages

/messageinformation

API Key campaign/message information.

List messageinformation resources available for this apikey, use a GET request. Alternatively, you may want to add one or more filters.

# list messageinformation resources

curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/messageinformation
Properties
Name Description
CampaignID
OR
CampaignALT
CampaignID
ID reference to Campaign
CampaignALT
Value of the CustomValue field of the related Campaign resource
  • Read Only
  • [ Type TCampaign ]
ClickTrackedCount Number of click track requests.
  • Read Only
  • [ Type Int64 ]
ContactID
OR
ContactALT
ContactID
ID reference to Contact
ContactALT
Value of the Email field of the related Contact resource
  • Read Only
  • [ Type TContact ]
CreatedAt Timestamp when object was created in database.
  • Read Only
  • [ Type TRFC3339DateTime ]
ID Unique numerical ID for this object.
  • Read Only
  • [ Type Int64 ]
MessageSize Size of the message.
  • Read Only
  • [ Type Int64 ]
OpenTrackedCount Number of open track requests.
  • Read Only
  • [ Type Int64 ]
QueuedCount Number of messages waiting in send queue.
  • Read Only
  • [ Type Int64 ]
SendEndAt Timestamp indicating when last message was sent for the campaign.
  • Read Only
  • [ Type TRFC3339DateTime ]
SentCount Number of actual sent attempts.
  • Read Only
  • [ Type Int64 ]
SpamAssassinRules Matched spam assassin rules.
  • Read Only
  • [ Type TSpamAssassinRuleList ]
SpamAssassinScore Spam assassin score for this message.
  • Read Only
  • [ Type Currency ]
Filters
Name Description
CampaignID Unique numerical ID for this object.
  • [ Type Int64 ]
CampaignStatus Only retrieve campaigns with status equal to specified value.
  • [ Type SmallInt ]
ContactsList Only retrieve campaigns sent to specified Contacts list.
  • [ Type Int64 ]
CustomCampaign Only retrieve campaigns with given Custom Value.
  • [ Type AnsiString ]
From Only retrieve campaigns with given From header.
  • [ Type AnsiString ]
FromDomain Only retrieve campaigns with given domain in From header.
  • [ Type AnsiString ]
FromID Only retrieve campaigns with this sender ID.
  • [ Type Int64 ]
FromTS Only retrieve campaigns with SendStartAt after this timestamp.
  • [ Type TRFC3339DateTime ]
FromType Only retrieve campaigns with FromType equal to specified value.
  • [ Type LongInt ]
IsDeleted Only retrieve campaigns where isDeleted matches the specified value.
  • [ Type TBooleanFilter ]
IsNewsletterTool Only retrieve campaigns which were started by the newsletter tool.
  • [ Type TBooleanFilter ]
IsStarred Only retrieve campaigns which were marked as starred.
  • [ Type TBooleanFilter ]
MessageStatus Only retrieve messages with status equal to specified value.
  • [ Type TMessageStatus ]
Period Set FromTS and ToTS timestamps to beginning of indicated period and current timestamp, respectively.
  • [ Type AnsiString ]
ToTS Only retrieve campaigns with SendStartAt timestamp less than the specified value.
  • [ Type TRFC3339DateTime ]

Access a given messageinformation resource, use a GET request, providing the messageinformation's ID value.

# access the messageinformation resource identified by $ID

curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/messageinformation/$ID

    
    
Properties
Name Description
CampaignID
OR
CampaignALT
CampaignID
ID reference to Campaign
CampaignALT
Value of the CustomValue field of the related Campaign resource
  • Read Only
  • [ Type TCampaign ]
ClickTrackedCount Number of click track requests.
  • Read Only
  • [ Type Int64 ]
ContactID
OR
ContactALT
ContactID
ID reference to Contact
ContactALT
Value of the Email field of the related Contact resource
  • Read Only
  • [ Type TContact ]
CreatedAt Timestamp when object was created in database.
  • Read Only
  • [ Type TRFC3339DateTime ]
ID Unique numerical ID for this object.
  • Read Only
  • [ Type Int64 ]
MessageSize Size of the message.
  • Read Only
  • [ Type Int64 ]
OpenTrackedCount Number of open track requests.
  • Read Only
  • [ Type Int64 ]
QueuedCount Number of messages waiting in send queue.
  • Read Only
  • [ Type Int64 ]
SendEndAt Timestamp indicating when last message was sent for the campaign.
  • Read Only
  • [ Type TRFC3339DateTime ]
SentCount Number of actual sent attempts.
  • Read Only
  • [ Type Int64 ]
SpamAssassinRules Matched spam assassin rules.
  • Read Only
  • [ Type TSpamAssassinRuleList ]
SpamAssassinScore Spam assassin score for this message.
  • Read Only
  • [ Type Currency ]