Skip to content

Mautic: Create Contact

Plugin ID: mautic_eca_create_contact

Create a new contact in the selected Mautic connection.

Fields

Mautic connection — config key: mautic_connection

Select the Mautic connection to use for this action.

Type: select · Required: yes · Default: empty string

Name of token — config key: token_name

Provide the name of a token where the value should be stored. Please provide the token name only, without brackets.

Type: textfield · Required: no · Default: empty string

JSON Data — config key: json_data

Enter the JSON data to create the contact in Mautic. This field must contain valid JSON and can contain tokens.

Type: textarea · Required: yes · Default: empty string

Example json data

Basic Contact

1
2
3
4
5
{
  "email": "john.doe@example.com",
  "firstname": "John",
  "lastname": "Doe"
}

Contact with Tags and Custom Fields

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
  "email": "john.doe@example.com",
  "firstname": "John",
  "lastname": "Doe",
  "tags": ["newsletter", "customer"],
  "customFields": {
    "company": "Acme Corp",
    "phone": "+1234567890"
  }
}