Lead API Platform

A secure, serverless API for receiving and managing lead data.

API Endpoints

Authentication

All endpoints require an API key in the X-API-Key header.

Documentation

See README.md for complete API documentation.

Features

Getting Started

  1. Run the Supabase schema SQL to create database tables
  2. Generate an API key using the admin endpoint
  3. Start submitting leads via POST /api/leads

Quick Test

curl -X POST https://datamanagementapiprod.vercel.app/api/leads \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "John",
    "lastName": "Doe",
    "email": "john@example.com",
    "phone": "1234567890",
    "city": "New York",
    "state": "NY",
    "zip": "10001",
    "vertical": "insurance"
  }'