Add or Remove One List Contact
mailjet.manage_list_contact
ActionEmailconnection required
Calls the Mailjet API with the connection's credentials.
Add, remove or unsubscribe one contact on a list, creating the contact when Mailjet has not seen the address before.
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
5 fields, 2 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 add to or remove from the list. | string | Yes | — | email format | jane@example.com |
action What to do with the membership: addforce subscribes even a previously unsubscribed contact, addnoforce leaves that unsubscribe in place, remove deletes the membership and unsub marks it unsubscribed. | string | Yes | — | one of "addforce", "addnoforce", "remove", "unsub" | addnoforce |
list_id Numeric id of the Mailjet contact list. Falls back to the list on the connection when left blank. | string | No | — | — | 10012345 |
name Display name to store when the contact is created by this call. | string | No | — | — | — |
properties Contact property values to set at the same time, as a JSON object. | object | No | — | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"action": "addnoforce",
"email": "jane@example.com",
"list_id": "10012345"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
applied True when Mailjet accepted the change. | boolean | — |
email The address that was acted on. | string | — |
action The action Mailjet applied. | string | — |
list_id The list the contact was managed on. | string | — |
contact_id Mailjet's numeric id for the contact. | string | — |
result The record Mailjet returned for the call. | object | — |
{
"action": "",
"applied": false,
"contact_id": "",
"email": "",
"list_id": "",
"result": {}
}See Add or Remove One List 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.