How can I integrate with n8n?
This guide shows you how to connect LeadSwift to your n8n account and run automated lead generation workflows. Download the workflow file from the Integrations page.
STEP 1 — GET YOUR LEADSWIFT API KEY
Your API key is how n8n authenticates with LeadSwift.
- Log in to your LeadSwift account at https://leadswift.com
- Click your profile name or avatar (top-right corner)
- Go to Settings or API Keys
- Copy your API key — it is a long string of letters and numbers
Note: Keep your API key private. Do not share it with anyone or post it publicly.
STEP 2 — ADD LEADSWIFT CREDENTIALS IN N8N
Once you have the API key, add it to n8n:
- Log in to your n8n account at https://app.n8n.io
- Go to Credentials in the left sidebar
- Click Add Credential and search for LeadSwift
- Fill in the fields below and click Save
| Field | Value |
|---|---|
| API Key | Paste your API key copied from LeadSwift |
| Base URL | https://leadswift.com/api |
STEP 3 — IMPORT THE WORKFLOW
A ready-made workflow is included in your package. Import it into n8n:
- In n8n, click Workflows in the left sidebar
- Click New Workflow or the + button
- Click the three-dots menu (top right) and select Import from file
- Select the file:
LeadSwift_Full_Pipeline_v2.workflow.json - The workflow will open automatically
- Click on each LeadSwift node (there are 4) and select your credentials from the dropdown
- Click Save
STEP 4 — CONFIGURE YOUR SEARCH
Before running, set your target keyword and location in the Config node:
- Click on the Config node in the workflow
- Update the keyword field — for example:
Plumbers,Dentists, orLawyers - Update the location field — for example:
Toronto, ON, Canada - Save and close the node
STEP 5 — RUN THE WORKFLOW
Execute and monitor your workflow:
- Click Execute Workflow (the play button at the top)
- Watch each node turn green as it completes
- The workflow will automatically wait for the search to finish, then export the leads as CSV
- When complete, the last node will contain your exported lead data
Note: Searches can take anywhere from a few minutes to a few hours depending on your LeadSwift plan. The workflow checks every minute and continues automatically when done.