Create Contact
mailjet.create_contact
ActionEmailconnection required
Calls the Mailjet API with the connection's credentials.
Add a contact to the account by email address.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Username & password
- Providers
- Mailjet
- Secret shape
- {"username": "<public API key>", "password": "<private API key>"} (+ "sms_token" for the SMS API)
- Config it needs
- sender_email, sender_name, sms_from, contacts_list_id, base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
email Email address of the contact to create. | string | Yes | — | email format | jane@example.com |
name Display name to store alongside the address. | string | No | — | — | — |
is_excluded_from_campaigns Create the contact already excluded from every campaign. | boolean | No | false | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"email": "jane@example.com",
"is_excluded_from_campaigns": false
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id Mailjet's numeric id for the new contact. | string | — |
email The address the contact was created with. | string | — |
created True when Mailjet accepted the contact. | boolean | — |
contact The contact record Mailjet returned. | object | — |
{
"contact": {},
"created": false,
"email": "",
"id": ""
}See Create Contact run in a workflow.
In a technical demo we add the Mailjet connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.