The LeadMarket API lets you submit leads programmatically from any source. Each submission is scored in real time (0–100) and returns an estimated payout. Leads are immediately routed to active buyers upon acceptance.
POST /api/trpc/affiliate.submitLeadViaApiapplication/jsonapiKey field in bodycurl -X POST https://leadmarket.app/api/trpc/affiliate.submitLeadViaApi \
-H "Content-Type: application/json" \
-d '{
"json": {
"apiKey": "lmk_your_api_key_here",
"vertical": "solar",
"firstName": "Bob",
"lastName": "Johnson",
"email": "[email protected]",
"phone": "5559876543",
"state": "CA",
"zipCode": "90210",
"homeOwner": true,
"monthlyElectricBill": "$200-$300",
"consentText": "I agree to be contacted."
}
}'Wrap your payload in a json key when calling the tRPC endpoint.
{
"apiKey": "lmk_your_api_key_here",
"vertical": "solar",
"firstName": "Bob",
"lastName": "Johnson",
"email": "[email protected]",
"phone": "5559876543",
"state": "CA",
"zipCode": "90210",
"city": "Beverly Hills",
"homeOwner": true,
"roofAge": "5-10 years",
"monthlyElectricBill": "$200-$300",
"roofOrientation": "south",
"solarReadiness": "ready_now",
"consentText": "I agree to be contacted by solar providers.",
"ipAddress": "1.2.3.4"
}apiKeystringRequiredYour API key from the dashboardverticalenumRequiredinsurance | solar | fundingfirstNamestringRequiredLead's first namelastNamestringRequiredLead's last nameemailstringRequiredValid email addressphonestringRequired10-digit US phone numberstatestringRequired2-letter US state code (e.g. CA, TX)zipCodestringRequired5-digit ZIP codecitystringOptionalCity nameconsentTextstringOptionalTCPA consent text shown to leadipAddressstringOptionalLead's IP address for complianceinsuranceTypestringOptional[Insurance] auto | home | life | healthcurrentInsurerstringOptional[Insurance] Current insurance providercoverageAmountstringOptional[Insurance] Desired coverage amounthomeOwnerbooleanOptional[Solar] Whether lead owns their homeroofAgestringOptional[Solar] Age of roof (e.g. '5-10 years')monthlyElectricBillstringOptional[Solar] Monthly electric bill rangeroofOrientationstringOptional[Solar] south | east | west | northsolarReadinessstringOptional[Solar] ready_now | 3_months | 6_monthsbusinessNamestringOptional[Funding] Business legal namebusinessRevenuestringOptional[Funding] Annual revenue rangebusinessIndustrystringOptional[Funding] Industry/sectorfundingAmountstringOptional[Funding] Requested funding amountcreditBandstringOptional[Funding] excellent | good | fair | poortimeInBusinessstringOptional[Funding] Years in business{
"result": {
"data": {
"success": true,
"leadId": 1042,
"score": 82,
"estimatedPayout": 29.16,
"message": "Lead accepted. Estimated payout: $29.16"
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or revoked API key"
}
}Every submitted lead is scored 0–100 based on data completeness and quality signals. Higher scores earn higher payouts. The score is returned in the API response so you can optimize your forms and data collection.
Rate Limit: 1,000 requests per hour per API key. Contact us for higher limits.
TCPA Compliance: All leads must have explicit consent. Include the consent text in consentText.
Duplicates: Leads with the same email/phone submitted within 30 days are flagged as duplicates and rejected.
Data Quality: Invalid emails, disconnected phone numbers, or P.O. Box addresses will reduce your acceptance rate.
Generate your API key from the dashboard and start earning today.