Skip to Content
SahajFlowHelp Center
CRM

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

  1. Open CRM → Leads → Forms and create a form.
  2. Name it (for example "Website demo request") and choose which fields it collects and which are required.
  3. Choose the default source recorded on each lead (for example Website or Landing page).
  4. Set the success message the visitor sees.
  5. 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

  1. The form validates the payload against its field list.
  2. Duplicate submissions are detected and suppressed.
  3. A lead is created with the form's source and UTM/referrer attribution when present.
  4. 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:

  1. Analyze — upload the file. The backend reads the header and sample rows and proposes a column mapping.
  2. Evaluate — review the mapping and the validation report. Rows that will fail (bad email, missing name, duplicate) are listed before anything is written.
  3. 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

SymptomLikely causeWhat to do
Form returns 429Per-IP throttle exceededWait; raise the limit only if the traffic is genuine
Form submissions not creating leadsForm inactive/archived, or all submissions dedupedCheck form status and the submissions list
Import mapping wrongSimilar column namesRe-run analyze and correct the mapping
Every row failsMissing required column or wrong delimiterOpen the CSV in a plain editor and confirm headers
Imported leads show no sourceSource column not mappedRe-import with the mapping, or edit the leads

On this page