Contact

Contact objects represent the email addresses you intend to send (or have already sent) messages to.

post

Create a new contact

post

/contact

Add a new unique contact to your global contact list and select its exclusion status.

Full API path

https://api.mailjet.com/v3/REST/contact

Body parameters

IsExcludedFromCampaigns

boolean

Indicates whether the contact is added to the exclusion list for campaigns or not. An excluded contact will not be receiving any marketing emails.

Name

string

User-selected name for this contact.

Email

string, required

Contact email address. Must be unique (not present already in the global contact list).

Responses

Note: You can find all the errors related to API in the error page

Count

integer

Data

array

IsExcludedFromCampaigns

boolean

Indicates whether the contact is added to the exclusion list for campaigns or not. An excluded contact will not be receiving any marketing emails.

Name

string

User-selected name for this contact.

CreatedAt

string

Indicates when the contact was added to the global contact list.

DeliveredCount

integer

Number of messages delivered to this contact.

Email

string

Contact email address.

ExclusionFromCampaignsUpdatedAt

string

Timestamp of the last time the exclusion status of this contact has changed.

ID

integer

Unique numeric ID of this contact.

IsOptInPending

boolean

Indicates whether the contact's subscription to a contact list is pending or not.

IsSpamComplaining

boolean

Indicates whether any spam complaints have been received for this contact or not.

LastActivityAt

string

Timestamp of last registered activity for this contact - receiving an email, open, click, unsubscribe etc.

LastUpdateAt

string

Timestamp of the last time this contact's name or exclusion status was changed.

UnsubscribedAt

string

Timestamp of the last request to unsubscribe from all lists.

UnsubscribedBy

string

Description of who initiated the request to unsubscribe from all lists.

Total

integer