**Base URL:** <https://oapis.getintelekt.ai>

Authentication

Required Headers:

{
	"Content-Type": "application/json",
	"api-key": "<your-api-key>",
	"project-id": "<your-project-id>"
}

Submit Lead API

Endpoint: POST /v1/api/external-api/submit-lead

Request Body

{
	"name": "Name",
	"phoneNo": "9800000000",
	"profileData": {
			"key1": "value1",
			"key2": "value2",
			"key3": "value3"
		}
}

Request Body Field Descriptions

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:

Success Response HTTP 201

{
"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"
		}
	}
	}
}

Error Responses

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}

Call Conclusion Webhook

Trigger Conditions

The webhook is sent only for these statuses: