Chetanya Pabbly Lead Capture API
Chetanya Pabbly Lead Capture API
This API captures lead information from an external source and inserts it into the CRM system.
It assigns the lead to a random agent and sends relevant alerts.
Endpoint:
POST https://chetanya.innerxcrm.com/api/pabbly
Request Body:
The request body should be sent as raw JSON with the following parameters:
Paramete
Type Description Required
r
Phone number of the lead. (Without country code for India or with
phone string Yes
+91 prefix)
fullname string Full name of the lead No
email string Email address of the lead No
city string City of the lead No
message string Additional message from the lead No
campaign string The name of the campaign (if any) No
platform string The platform from which the lead originated No
Sample Request:
json
"phone": "+911234567890",
"fullname": "John Doe",
"email": "johndoe@example.com",
"city": "Mumbai",
"message": "Interested in your services.",
"campaign": "Facebook Ads",
"platform": "facebook"
}
Response:
The API will return a JSON response with the status and message.
json
"response": {
"status": "200",
"msg": "lead inserted successfully.",
"code": "success"
}
}
json
"response": {
"status": "400",
"msg": "phone number missing.",
"code": "missing"
}
}
Business Logic:
The phone number can be provided with or without the +91 country code prefix. The API
automatically removes the +91 prefix if provided.
If a phone number is not provided, the API will return an error (400 Bad Request).
The lead is assigned to a randomly selected agent.
Error Handling:
The API handles errors gracefully and returns the following error responses:
Notes:
This API supports inserting leads into the system via HTTP POST requests.
If the phone number is missing or invalid, the request will be rejected with a 400 error.
Ensure proper validation on the client-side before making requests to avoid errors.