{
  "name": "LookValid: Check both the email and the phone of a new lead",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "check-new-lead-email-and-phone",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "webhook",
      "name": "Lead webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://YOUR_API_HOST/v1/email-domain-check",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ email: $('Lead webhook').item.json.body.email }) }}",
        "options": {}
      },
      "id": "check-email",
      "name": "LookValid email-domain-check",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "",
          "name": "LookValid API key"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://YOUR_API_HOST/v1/phone",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ phone: $('Lead webhook').item.json.body.phone }) }}",
        "options": {}
      },
      "id": "check-phone",
      "name": "LookValid phone",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        520,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "",
          "name": "LookValid API key"
        }
      }
    }
  ],
  "connections": {
    "Lead webhook": {
      "main": [
        [
          {
            "node": "LookValid email-domain-check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LookValid email-domain-check": {
      "main": [
        [
          {
            "node": "LookValid phone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  }
}