0% found this document useful (0 votes)
40 views3 pages

Chetanya Pabbly Lead Capture API

Uploaded by

Lovepreet Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

Chetanya Pabbly Lead Capture API

Uploaded by

Lovepreet Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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.

Field Type Description


status string HTTP status code (200 or 400)
msg string A message describing the result
Field Type Description
code string Result code (success, error, or missing)

Sample Response (Success):

json

"response": {
"status": "200",
"msg": "lead inserted successfully.",
"code": "success"
}
}

Sample Response (Error - Phone Missing):

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:

Error Code Description


400 Missing or invalid required parameters (e.g., phone number)
500 Server-side error (e.g., database issues)

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy