{
  "name": "Verifly List Cleaning Webhook",
  "nodes": [
    {
      "parameters": {
        "path": "verifly-list-cleaning",
        "httpMethod": "POST",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "Webhook",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [280, 260]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://verifly.email/api/v1/clean",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer {{$env.VERIFLY_API_KEY}}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ emails: $json.body.emails || $json.body.email_list || [] }) }}"
      },
      "id": "CleanList",
      "name": "Clean list with Verifly",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [520, 260]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ $json }}"
      },
      "id": "Respond",
      "name": "Respond",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [760, 260]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [[{ "node": "Clean list with Verifly", "type": "main", "index": 0 }]]
    },
    "Clean list with Verifly": {
      "main": [[{ "node": "Respond", "type": "main", "index": 0 }]]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
