{
  "name": "Brevo: verify every new contact with MailTester Ninja",
  "nodes": [
    {
      "parameters": {
        "type": "marketing",
        "events": [
          "listAddition"
        ]
      },
      "id": "c1b2e3f4-0001-4000-8000-000000000001",
      "name": "New contact in a Brevo list",
      "type": "n8n-nodes-base.sendInBlueTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "webhookId": "c1b2e3f4-0001-4000-8000-0000000000aa"
    },
    {
      "parameters": {
        "operation": "verify",
        "email": "={{ $json.email }}"
      },
      "id": "c1b2e3f4-0002-4000-8000-000000000002",
      "name": "Verify email",
      "type": "n8n-nodes-mailtester-ninja.mailTesterNinja",
      "typeVersion": 1,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "resource": "contact",
        "operation": "update",
        "identifier": "={{ $json.email }}",
        "updateAttributes": {
          "updateAttributesValues": [
            {
              "fieldName": "MT_CODE",
              "fieldValue": "={{ $json.code }}"
            },
            {
              "fieldName": "MT_VERDICT",
              "fieldValue": "={{ $json.message }}"
            }
          ]
        }
      },
      "id": "c1b2e3f4-0003-4000-8000-000000000003",
      "name": "Save the verdict in Brevo",
      "type": "n8n-nodes-base.sendInBlue",
      "typeVersion": 1,
      "position": [
        480,
        0
      ]
    }
  ],
  "connections": {
    "New contact in a Brevo list": {
      "main": [
        [
          {
            "node": "Verify email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify email": {
      "main": [
        [
          {
            "node": "Save the verdict in Brevo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
