Manage Contact's Lists
mailjet.manage_contact_lists
ActionEmailconnection required
Calls the Mailjet API with the connection's credentials.
Subscribe or unsubscribe one contact across one or more contact lists in a single call.
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
4 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 |
|---|---|---|---|---|---|
contact The contact to act on: Mailjet's numeric contact id, or the contact's email address. | string | Yes | — | — | jane@example.com |
list_id Numeric id of the Mailjet contact list. Falls back to the list on the connection when left blank. | string | No | — | — | 10012345 |
action What to do with the membership of 'list_id': addforce subscribes even a previously unsubscribed contact, addnoforce leaves that unsubscribe in place, remove deletes the membership and unsub marks it unsubscribed. | string | No | — | one of "addforce", "addnoforce", "remove", "unsub" | addnoforce |
contacts_lists Advanced: a JSON array of {"ListID", "Action"} objects, to change several lists at once instead of using 'list_id' and 'action'. | array | No | — | array of object | — |
- At least one of action, contacts_lists must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"action": "addnoforce",
"contact": "jane@example.com",
"list_id": "10012345"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
applied True when Mailjet accepted the change. | boolean | — |
contacts_lists The list/action pairs that were sent. | array | — |
result The record Mailjet returned for the call. | object | — |
{
"applied": false,
"contacts_lists": [],
"result": {}
}See Manage Contact's Lists 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.