Create Lead
Creates a single lead in a campaign.
POST
/api/v1/leads/createDescription
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)
| Field | Type | Description |
|---|---|---|
campaign_id POST | UUID | Campaign to add the lead to. Required. |
first_name POST | string | Lead's first name. Required. |
phone_e164 POST | string | Phone number (country code inferred from country_code). Required. |
country_code POST | string | Country code. Optional. Default: IN. |
custom_fields POST | object | Extra campaign variables. Optional. |
Errors
| Status | Detail |
|---|---|
400 | Campaign not found or not in your company. |
400 | Invalid phone number format. |
400 | Lead with this phone already exists for this campaign. |
400 | Invalid first_name after preprocessing. |