Skip to main content
POST
Create lead
This endpoint allows you to create a new lead in the Revti.ai system.

Request body

string
required
The phone number of the lead in E.164 format (e.g. +1234567890)
integer
required
The ID of the campaign to create the lead for
object
Custom variables for the lead. For call campaigns, use variables defined on your assistant (see Call variables). For WhatsApp/SMS campaigns, use the keys referenced by your template mapping or SMS body placeholders.
boolean
Whether to allow duplicate leads in a campaign.
array
Call campaigns only. Extra phone numbers for the same lead. Rejected for WhatsApp/SMS campaigns.

Response

string
default:"Lead created successfully"
The message of the response
object
The lead data object