{
  "name": "Enrich new signups with LinkedIn company data from Veezee",
  "nodes": [
    {
      "parameters": {
        "content": "### Enrich new signups with LinkedIn company data\n\n**Who's it for:** sales, marketing, and RevOps teams that want every new signup enriched with company details automatically.\n\n**How it works:** a webhook receives a signup event with an email or a company domain. **Get company** looks the company up through the Veezee API, and **Build enriched fields** returns its name, industry, employee count, and website in the webhook response.\n\nSend the production webhook URL a POST body like:\n\n`{ \"email\": \"jane@acme.com\" }` or `{ \"company_domain\": \"acme.com\" }`\n\nIf both are present, `company_domain` wins.",
        "height": 560,
        "width": 560
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-160, -640],
      "id": "73750c86-27e3-434c-b015-a98847b27023",
      "name": "About this workflow"
    },
    {
      "parameters": {
        "content": "### Setup (about 2 minutes)\n\n1. Mint a free key (no signup, no card): `curl -X POST https://api.veezee.io/v1/keys/mint`. The key is shown once. Free calls share 200 credits per IP per day.\n2. In n8n, create a **Header Auth** credential named `Veezee API`: header name `Authorization`, value `Bearer <your key>`.\n3. Select that credential on the **Get company** node.\n4. Activate the workflow.\n\nMore credits, same key: confirm an email at https://veezee.io/login for a one-time grant of 10,000 credits, or buy a pack at https://veezee.io/upgrade.",
        "height": 460,
        "width": 480,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [460, -640],
      "id": "b1f6d2aa-51c4-4d0e-9a77-2f3d8c4e5a01",
      "name": "Setup"
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "enrich-signup",
        "responseMode": "lastNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [0, 0],
      "id": "a3397f42-42e3-42b0-ad85-059bd7862d77",
      "name": "Receive signup event",
      "webhookId": "a3397f42-42e3-42b0-ad85-059bd7862d77"
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://api.veezee.io/v1/linkedin/companies",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "specifyQuery": "keypair",
        "queryParameters": {
          "parameters": [
            {
              "name": "identifier",
              "value": "={{ $json.body.company_domain || $json.body.email.split(\"@\")[1] }}"
            }
          ]
        },
        "sendHeaders": true,
        "specifyHeaders": "keypair",
        "headerParameters": {
          "parameters": [
            {
              "name": "Idempotency-Key",
              "value": "={{ $execution.id }}-{{ $itemIndex }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [260, 0],
      "id": "0a3bc087-0cff-4ebb-ae76-f7a9c349525d",
      "name": "Get company",
      "credentials": {
        "httpHeaderAuth": {
          "id": "PLACEHOLDER",
          "name": "Veezee API"
        }
      }
    },
    {
      "parameters": {
        "mode": "manual",
        "duplicateItem": false,
        "assignments": {
          "assignments": [
            {
              "id": "bca8b123-f7a9-4a94-8a01-368b33c60feb",
              "name": "company_name",
              "value": "={{ $json.common.name }}",
              "type": "string"
            },
            {
              "id": "f43cb38f-d7de-4e9a-ab1a-09c21adf2948",
              "name": "industry",
              "value": "={{ ($json.common.industry || []).join(\", \") }}",
              "type": "string"
            },
            {
              "id": "bd125741-29a3-4dae-92e8-bbf8fcaa2a82",
              "name": "employee_count",
              "value": "={{ $json.common.employee_count }}",
              "type": "number"
            },
            {
              "id": "1a6b9312-2c76-435b-856d-4afd987572ea",
              "name": "website",
              "value": "={{ $json.common.website_url }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [520, 0],
      "id": "88a78ac9-5357-40b0-a3a7-5e3e0aab7c1e",
      "name": "Build enriched fields"
    }
  ],
  "connections": {
    "Receive signup event": {
      "main": [
        [
          {
            "node": "Get company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get company": {
      "main": [
        [
          {
            "node": "Build enriched fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": true
  }
}
