CRM

List lead contacts

Returns a list of customer_contacts rows for leads (parent customer rows with category = 'lead'). ?customer_id={id} is required — without it the endpoint returns 422, because the leads route refuses the unscoped fallback to avoid leaking customer-side rows. Optional ?contact_type=email or ?contact_type=phone filters by type.

get/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

Query parameters

customer_idinteger required
Example:1

Required. The lead id whose contacts are listed. Requests without it return 422; requests where the row is not a lead return 404.

contact_type'email' | 'phone'
Example:phone

Filter by contact type.

Response

idnumber required

Contact row ID.

customer_idnumber required

Owning lead ID.

contact_person_idnumber nullable

Optional link to a contact person row.

contact_typestring required

Contact type: email or phone.

contact_valuestring required

Email address or phone number.

labelstring

Contact label.

country_codestring nullable

ISO 3166-1 alpha-2 country code (phone rows only).

is_primarystring

1 for the primary contact in its (customer_id, contact_type, label) tuple, otherwise 0.

is_whatsappstring

1 when the phone is flagged as WhatsApp-enabled, otherwise 0.

metadataobject nullable

Free-form JSON metadata, or null.

created_atstring

Row creation datetime.

updated_atstring

Row last-update datetime.

Example response

[
  {
    "id": 1,
    "customer_id": 1,
    "contact_person_id": 1,
    "contact_type": "phone",
    "contact_value": "+380501234567",
    "label": "mobile",
    "country_code": "UA",
    "is_primary": "1",
    "is_whatsapp": "1",
    "metadata": null,
    "created_at": "2026-05-21 10:00:00",
    "updated_at": "2026-05-21 10:00:00"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.