Create Lead

Creates a single lead in a campaign.

POST/api/v1/leads/create

Description

Verifies the campaign belongs to your company, normalizes the phone number, rejects duplicate active leads (same campaign + phone), and returns the created lead. If the campaign has auto-calling enabled, the lead is auto-enrolled for calling.

Request body (JSON)

FieldTypeDescription
campaign_id POSTUUIDCampaign to add the lead to. Required.
first_name POSTstringLead's first name. Required.
phone_e164 POSTstringPhone number (country code inferred from country_code). Required.
country_code POSTstringCountry code. Optional. Default: IN.
custom_fields POSTobjectExtra campaign variables. Optional.

Errors

StatusDetail
400Campaign not found or not in your company.
400Invalid phone number format.
400Lead with this phone already exists for this campaign.
400Invalid first_name after preprocessing.