**Base URL:** <https://oapis.getintelekt.ai>
Required Headers:
{
"Content-Type": "application/json",
"api-key": "<your-api-key>",
"project-id": "<your-project-id>"
}
Endpoint: POST /v1/api/external-api/submit-lead
{
"name": "Name",
"phoneNo": "9800000000",
"profileData": {
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
}
| Field | Type | Description | Example |
|---|---|---|---|
name |
String | Full name of the lead. | "John Doe" |
phoneNo |
String | Lead's phone number without the +91 country code. | "9800000000" |
profileData |
Object | Additional data about the lead. Keys and values must be strings (e.g., "key": "value"). This is used by AI to personalize the conversation. |
{"age": "30", "city": "Mumbai"} |
<aside> 📌
Notes:
profileData follows the format [string]: [string]"key1": "value1") are placeholders; replace them with actual data.
</aside>{
"status": true,
"path": "/v1/api/external-api/submit-lead",
"statusCode": 201,
"result": {
"message": "Success",
"data": {
"name": "Name",
"phoneNo": "9800000000",
"profileData": {
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
}
}
}
| HTTP Code | Scenario | Example Response Body |
|---|---|---|
| 400 | Duplicate Phone Number | {"message": "Phone number already exists", "error": "Bad Request", "statusCode": 400} |
| 400 | Invalid Project ID | {"message": "Project not found", "error": "Bad Request", "statusCode": 400} |
| 401 | Invalid/Missing API Key | {"message": "Invalid api-key", "error": "Bad Request", "statusCode": 400} |
The webhook is sent only for these statuses:
COMPLETED : User is interested in the service.