Skip to content

Instantly share code, notes, and snippets.

View nilimasahu28's full-sized avatar

nilimasahu28

  • Joined Sep 21, 2025
View GitHub Profile

Lead Management APIs Documentation

Overview

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.

Database Schema Reference

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