CRM
Create a lead contact
Creates a new customer_contacts row owned by a lead. Same validation rules as the customer endpoint; the parent row must have category = 'lead' (404 otherwise).
URL forms (both accepted):
- POST /admin/crm/leads-contacts — customer_id (the lead id) in the body (shown here).
- POST /admin/crm/leads-contacts/{customer_id} — lead id in the URL path. Canonical form used by the FE / generated SDK / LeadsContactsCest::addEmail(). When using this form, the body customer_id is ignored. OpenAPI does not allow declaring this as a separate path entry because /leads-contacts/{customer_id} is structurally equivalent to the existing /leads-contacts/{id}.
post/admin/crm/leads-contacts
Request
- Base URL: https://demo.splynx.com/api/2.0
- URL: https://demo.splynx.com/api/2.0/admin/crm/leads-contacts
- Auth: HTTP basic
Request body
Example request
{
"customer_id": 1,
"contact_type": "phone",
"contact_value": "+380501234567",
"label": "mobile",
"is_primary": true,
"is_whatsapp": true,
"country_code": "UA",
"contact_person_id": 1,
"metadata": {}
}Response
Example response
{
"id": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.