API Documentation

Programmatically add leads to your LeadGen.ai account. Ideal for connecting web forms, Zapier/Make automations, or your own backend.

Authentication

Send your secret API key in the X-Api-Key header. Keep this key private and server-side. If you are logged in to the dashboard, session authentication also works for testing.

X-Api-Key: your-secret-key

Create a lead

POST https://leadgensoftware.futureminutes.com/api/leads

Content-Type: application/json

Request body

FieldTypeRequiredNotes
businessNamestringYesMax 200 chars
nichestringYesCategory / keyword, max 200
locationstringNoCity / area
phoneNumberstringNoMax 30
emailstringNoValid email
websitestringNoFull URL
addressstringNo
countrystringNo
googleRatingnumberNo0–5
reviewCountintegerNo
statusstring/intNoDefaults to New
facebookUrl, instagramUrl, linkedInUrl, xUrl, youTubeUrl, tikTokUrlstringNoSocial profile URLs

Example request

curl -X POST "https://leadgensoftware.futureminutes.com/api/leads" \
  -H "X-Api-Key: your-secret-key" \
  -H "Content-Type: application/json" \
  -d '{
    "businessName": "Joe''s Plumbing",
    "niche": "plumbing",
    "location": "Austin TX",
    "phoneNumber": "+15125550123",
    "email": "joe@example.com",
    "website": "https://joesplumbing.example"
  }'

Success response (201 Created)

{
  "success": true,
  "message": "Lead \"Joe's Plumbing\" created successfully.",
  "leadId": 1234,
  "leadSearchId": 567,
  "businessName": "Joe's Plumbing",
  "opportunityScore": 82,
  "status": "New"
}

Error responses

  • 400 — validation failed (missing required field, invalid email, etc.)
  • 401 — missing or invalid X-Api-Key
  • 500 — unexpected server error
Need an API key? Contact us to enable API access for your account.