Skip to main content

Lead Upload Custom

Each API request in TeleCMI platform includes App id and secret. Get your App id and secret in TeleCMI dashboard. This documentation covers the endpoints for creating leads in the TeleCMI Dialer system. Use this endpoint when you want to provide your own unique identifiers (UUIDs) for each lead.

Base URL

Send your POST method request with valid parameters and application/json content type, to the following base URL.

https://rest.telecmi.com/v3/leads/add-custom

Required Parameters

These are the required POST method parameters with description

Parameter NameTypeDescription
*lead_namestringUnique name for this lead group/campaign.
*inet_nointegerYour account identification number.
*secretstringAPI authentication token.
*leadsarrayArray of lead objects (Min: 1, Max: 1000).

Lead Object (leads array)

FieldTypeRequiredDescription
*lead_idstringYesMust be a valid UUID. Used as the primary key.
*phonestringYesLead phone number (e.g., 919876543210).
firstnamestringNoFirst name of the lead.
lastnamestringNoLast name of the lead.
emailstringNoEmail address (must be a valid format).
commentstringNoAdditional notes.
addressstringNoPhysical address.
citystringNoCity.
countrystringNoCountry.
Note
The * marked parameter is mandatory.

Sample JSON Request

Below is the following sample JSON POST method request

{
"lead_name": "Sales_Q2_Campaign",
"inet_no": 1111112,
"secret": "your_api_secret_token",
"leads": [
{
"lead_id": "550e8400-e29b-41d4-a716-446655440000",
"phone": "919876543210",
"firstname": "John",
"email": "john.doe@example.com"
}
]
}

Sample Response

If the provided information is valid, your web server will get a sample response from TeleCMI Platform as given below

{
"code": 200,
"msg": "Leads Added Successfully"
}

Properties

These are the list of properties and its description

PropertyTypeDescription
codenumberThe response code.
msgstringLeads Added Successfully

HTTP status codes

TeleCMI API platform represents the following status code to identity the errors.

Status codeStatus TypeDescription
200SuccessLeads Added Successfully
400ErrorDuplicate lead_id Found
400Errorlead_id Already Exists
400ErrorDuplicate Phone Numbers Found
400ErrorLead Name Already Exists
404ErrorAccount Not Found (Invalid secret or inet_no)
422ErrorSchema validation failed (e.g., missing required field)