Skip to main content

Top Leads API

Retrieve leads with the highest scores for the active Organizational Unit. Useful for dashboards and sales prioritization.

GET /top-leads

Get the top-scoring leads.

Request

ParameterTypeRequiredDescription
limitintegerNoMaximum number of results (default: 10)

Response

200 OK

{
"leads": [
{
"lead_id": "ld_123",
"score": 120,
"last_event_at": "2025-01-15T10:30:00Z"
},
{
"lead_id": "ld_456",
"score": 95,
"last_event_at": "2025-01-15T09:00:00Z"
}
]
}

Response Fields

FieldTypeDescription
lead_idstringLead identifier
scoreintegerCurrent engagement score
last_event_attimestampMost recent event for the lead

Example

curl -X GET "https://api.leadvibe.com/top-leads?limit=10" \
-H "Authorization: Bearer <token>"

Common Errors

StatusMeaningSolution
401UnauthorizedCheck authentication token
500Server ErrorContact support if persists

Notes

  • Results are OU-scoped to the active Organizational Unit
  • Leads are ordered by engagement score, highest first
  • Score Gains - Leads with fastest-rising scores
  • Leads - Full lead listing with filters