This document outlines the comprehensive API structure for the Lead Management system in our CRM tool. These APIs are designed to leverage the existing database relationships and support essential CRM workflows.
The Lead model includes the following key fields and relationships:
- Core Fields:
id
,name
,email
,phone
,source
,status
,createdAt
,ownerId
,score
- Relationships:
owner
(User),convertedToContact
,campaignMembers
,analyticsEvents
,formSubmissions