Lead forms and CSV import
What Is It?
Two ways to capture leads in bulk: a public web form that writes straight into CRM, and a CSV importer with a mapping step.
Why Would I Use It?
Typing leads one by one does not scale, and a website form should not lose enquiries in an inbox.
Who Can Use It?
Managing forms requires crm.lead_form.* (OWNER/ADMIN/MANAGER
can create; USER can view). Import requires crm.lead.import (OWNER/ADMIN/MANAGER).
Where Can I Find It?
CRM → Leads, then the Forms or Import tab.
Part 1 — Public lead forms
Create a form
- Open CRM → Leads → Forms and create a form.
- Name it (for example "Website demo request") and choose which fields it collects and which are required.
- Choose the default source recorded on each lead (for example Website or Landing page).
- Set the success message the visitor sees.
- Save and make it active.
Each form gets a public key in its URL. The key is the credential: anyone with the link can submit, without signing in.
Share the form
Use the form's public URL in a landing page, email, or ad. The public address is:
/api/v1/crm/public/lead-forms/<public_key>/Submissions are limited per IP address (30 per minute by default, configurable by environment). That protects the endpoint from casual abuse, not from a determined attacker.
What happens on submission
- The form validates the payload against its field list.
- Duplicate submissions are detected and suppressed.
- A lead is created with the form's source and UTM/referrer attribution when present.
- The submission is stored with its outcome (created, duplicate, rejected), the submitter's IP, user agent, and page URL.
You can review submissions separately from the leads they produced, which is how you tell "the form is broken" from "nobody filled it in".
Pause a form
Deactivate or archive the form. The public URL stops accepting submissions; existing leads are untouched.
Part 2 — Import leads from CSV
The importer is a three-step, non-destructive flow:
- Analyze — upload the file. The backend reads the header and sample rows and proposes a column mapping.
- Evaluate — review the mapping and the validation report. Rows that will fail (bad email, missing name, duplicate) are listed before anything is written.
- Execute — import the accepted rows. The response reports created, skipped, and failed rows individually.
What the importer never does. It does not partially commit a row: a row is either created or reported as failed. It does not overwrite existing leads.
Before you import
- One header row, comma-separated, UTF-8.
- At least a name column; email or phone strongly recommended.
- Clean obvious duplicates first. Deduplication is limited and does not fuzzy-match.
- Map the source column so reporting is meaningful.
Important things to know
- Public form submissions create real leads and consume lead numbers.
- The public key is not a secret in the cryptographic sense — treat the form URL as public and rely on the throttle and validation.
- Import does not create accounts or opportunities; imported leads still need to be qualified and converted.
- A failed import is safe to fix and re-run; already-created rows will be reported as duplicates on the second attempt.
- Form submissions and imports both record activities, so the timeline explains where a lead came from.
Common problems
| Symptom | Likely cause | What to do |
|---|---|---|
| Form returns 429 | Per-IP throttle exceeded | Wait; raise the limit only if the traffic is genuine |
| Form submissions not creating leads | Form inactive/archived, or all submissions deduped | Check form status and the submissions list |
| Import mapping wrong | Similar column names | Re-run analyze and correct the mapping |
| Every row fails | Missing required column or wrong delimiter | Open the CSV in a plain editor and confirm headers |
| Imported leads show no source | Source column not mapped | Re-import with the mapping, or edit the leads |