Create Lead
Create one or more leads in a single request.
When to use. Import leads into your account in bulk. To change existing leads, use PUT /leads/{id} for one lead or PUT /leads/mass-update for many.
Request body. A JSON array of lead objects. Only phone is required on each lead. Other fields are optional, including first_name, last_name, phone2, address fields, purchase details, email, birthdate, loan_amount, and a customFields object of your own field name and value pairs.
Returns. { "leads": [ ... ] } containing the created leads, each with its assigned id and any customFields.
Example. POST /api/leads with body [ { "phone": "12125551234", "first_name": "John" } ]
Request
- Base URLhttps://api.commpeak.com/dialer
- URLhttps://api.commpeak.com/dialer/{sub_domain}/api/leads
- AuthAPI key in header Authorization
Path parameters
Dialer Name (subdomain)
Request body
Response
Successful Response
Example response
{
"leads": [
{
"address1": "1st Avenue 111",
"city": "New York",
"country_id": 840,
"created_at": "2024-08-13 18:22:46",
"customFields": {
"Age": "",
"NoteA": "",
"Street": ""
},
"first_name": "John",
"hlr": 0,
"id": 594652,
"is_deleted": 0,
"is_do_not_call": 0,
"is_locked": 0,
"last_name": "Doe",
"lead_file_id": 1609,
"phone": "12125551234",
"phone_normalized": "12125551234",
"purchase_amount": 0,
"purchase_site": "DemoStore",
"support_site": "DemoSupport",
"timezone_id": 274,
"updated_at": "2024-08-13 18:22:50"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.