Lead Distribution API
The Lead Distribution API enables intelligent routing of leads to buyers based on configurable rules, capacity limits, geographic targeting, and performance metrics. Route leads in real-time with sub-50ms decision times.
https://api.synaptis.io/v1Authentication
All API requests require authentication using a Bearer token in the Authorization header.
Authorization: Bearer your_api_keyRoute Lead
Submit a lead for intelligent routing to the optimal buyer based on your configured rules.
/leads/routeRequest Body
{
"lead": {
"email": "john.smith@company.com",
"phone": "+15551234567",
"first_name": "John",
"last_name": "Smith",
"state": "GA",
"zip": "30301",
"lead_type": "auto_insurance",
"quality_score": 85
},
"routing_options": {
"method": "weighted",
"exclude_buyers": ["buyer_xyz"],
"max_buyers": 1,
"timeout_ms": 5000
}
}Response
{
"status": "routed",
"lead_id": "lead_abc123",
"buyer": {
"id": "buyer_456",
"name": "Alpha Insurance",
"delivery_method": "api"
},
"routing": {
"method": "weighted",
"eligible_buyers": 4,
"decision_time_ms": 23
},
"delivery": {
"status": "accepted",
"response_time_ms": 124,
"buyer_reference": "ALI-2024-001234"
}
}Routing Methods
Available distribution algorithms for routing leads to buyers.
round_robinRound RobinDistribute leads evenly across all eligible buyers in sequential order.
weightedWeighted DistributionAssign percentage weights to buyers. Higher-weighted buyers receive more leads.
performancePerformance-BasedRoute more leads to buyers with higher acceptance rates and conversions.
priorityPriority/WaterfallRoute to buyers in priority order. Falls through if rejected or timeout.
geographicGeographicRoute based on state, zip code, DMA, or custom geographic zones.
Buyer Management
Endpoints for managing buyers in your distribution network.
/buyersList all buyers/buyersCreate new buyer/buyers/:idGet buyer details/buyers/:idUpdate buyer/buyers/:id/statusPause/resume buyerCapacity Caps
Configure lead volume limits for buyers on daily, weekly, and monthly intervals.
{
"daily_cap": 100,
"weekly_cap": 500,
"monthly_cap": 2000,
"overflow_action": "route_to_backup",
"backup_buyers": ["buyer_backup1", "buyer_backup2"]
}Geographic Rules
Configure geographic targeting for buyer eligibility.
{
"type": "include",
"states": ["GA", "FL", "SC", "NC", "TN"],
"zip_codes": [],
"dmas": [],
"exclusive": false
}Response Codes
200OKLead successfully routed to buyer201CreatedResource created successfully400Bad RequestInvalid request parameters401UnauthorizedInvalid or missing API key404Not FoundResource not found422UnprocessableNo eligible buyers found429Rate LimitedToo many requests500Server ErrorInternal server errorDemo Platform: This is a demonstration of our custom development capabilities. We build tailored solutions for your specific needs.