Mailjet tools
The 15 Mailjet operations your product runs on your customer's account through Connect. All of them use the same endpoint, POST /api/tools/{tool}/execute.
- List contactsGETLists the contacts of the account with their email, name, exclusion status and activity dates, optionally only those of a list. The response has Data, Count and Total; page with Limit and Offset.
- Get contactGETReturns one contact, found by its ID or by its email address, with its name, exclusion status and activity dates. Use it to get the ID of a contact you only know by email.
- Update contactPUTChanges the name of a contact or its exclusion from marketing emails. Only the fields sent change. An excluded contact still receives transactional emails.
- List contact listsGETLists the contact lists with their ID, name, subscriber count and deletion status. The response has Data, Count and Total; page with Limit and Offset.
- Create contact listPOSTCreates an empty contact list and returns it with its ID.
- Manage list contactPOSTAdds a contact to a list by email, creating the contact when the email is new and setting its name and properties, or unsubscribes or removes it from the list, according to Action.
- List contact propertiesGETLists the contact properties of the account with their name, data type and namespace. The names are the keys of Properties in Manage list contact. The response has Data, Count and Total; page with Limit and Offset.
- List sendersGETLists the sender addresses and domains of the account with their ID, email, name and status. Only an Active sender can send a campaign. The response has Data, Count and Total; page with Limit and Offset.
- List templatesGETLists the email templates with their ID, name, purposes and edit mode. The ID links a template to a campaign draft as its content. The response has Data, Count and Total; page with Limit and Offset.
- List campaign draftsGETLists the campaign drafts with their ID, title, subject, sender, list, status and, once sent, the CampaignID used by Get statistics. The response has Data, Count and Total; page with Limit and Offset.
- Create campaign draftPOSTCreates a campaign draft and returns it with its ID. Sending needs Sender, SenderEmail and ContactsListID, plus content: link a template with TemplateID or write the content in the Mailjet editor.
- Update campaign draftPUTUpdates a campaign draft that was not sent yet. Only the fields sent change. Status archives or deletes the draft, or takes it back from the archive.
- Schedule campaign draftPOSTSchedules the sending of a campaign draft to its list. The draft needs a sender, a list and content. Mailjet sends it at Date, and the emails go out to every subscribed contact of the list.
- Send campaign draftPOSTSends a campaign draft to every subscribed contact of its list right away. The draft needs a sender, a list and content, and the sending cannot be undone.
- Get statisticsGETReturns sent, delivered, opened, clicked, bounced, spam and unsubscribed counts of a campaign, a list, a sender or the whole API key, over the lifetime or per 5 minutes, hour or day. The response has Data, Count and Total; page with Limit and Offset.
Toolkits in the same category
See all 100 toolkitsSee Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
