Add Contact to Campaign
mautic.add_contact_to_campaign
ActionCRM & salesconnection required
Calls the Mautic API with the connection's credentials.
Add a contact to a campaign so it starts at the campaign's first event.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Mautic
- Secret shape
- {"client_id": "…", "client_secret": "…", "refresh_token": "…"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 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 |
|---|---|---|---|---|---|
campaign_id The campaign to add the contact to. | string | Yes | — | — | 12 |
contact_id The contact to add. | string | Yes | — | — | 42 |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"campaign_id": "12",
"contact_id": "42"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
success True when Mautic reported the membership change applied. | boolean | — |
campaign_id The campaign id the change was applied to. | number | — |
contact_id The contact id the change was applied to. | number | — |
{
"campaign_id": 0,
"contact_id": 0,
"success": false
}See Add Contact to Campaign run in a workflow.
In a technical demo we add the Mautic connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.