What a webhook sends
Create an API key in Sending setup → LMS & API keys. Your LMS, or your developer, sends a POST request like this whenever a lead is created or changed:
POST https://cortexdigitalhub.com/api/mail/v1/contacts
Content-Type: application/json
X-Cortex-Key: cm_live_your_key
{
"email": "asha.rao@example.com",
"first_name": "Asha",
"last_name": "Rao",
"phone": "9876500001",
"country_code": "+91",
"city": "Hyderabad",
"pincode": "500081",
"source": "Meta lead form",
"campaign": "Diwali offer",
"project": "Project A",
"stage": "New",
"owner": "priya@yourbrand.com",
"consent": { "given": true, "source": "website form", "at": "2026-10-15T10:42:00+05:30" }
}
Only email is required. Unknown fields are kept as custom fields you can use in segments and emails.