11. Scoring & Lead Management
11.1 Get Scoring Configuration
GET /api/v1/scoring/config
Get lead scoring settings.
Response:
{
"orgId": "org-123",
"scoringModel": "weighted",
"baseScore": 0,
"maxScore": 100,
"rules": [
{
"id": "rule-001",
"name": "Message Engagement",
"weight": 0.3,
"factor": 5
}
],
"decayRate": 0.01,
"decayInterval": "daily"
}
11.2 List Scoring Rules
GET /api/v1/scoring/rules
List all scoring rules.
Response:
[
{
"id": "rule-001",
"name": "Message Received",
"condition": "message_received",
"points": 5,
"weight": 0.3,
"createdAt": "2026-05-01T10:00:00Z"
}
]
11.3 Get Contact Score
GET /api/v1/contacts/:id/scores
Get detailed score breakdown for contact.
Response:
{
"contactId": "contact-001",
"totalScore": 85,
"breakdown": [
{
"ruleName": "Message Engagement",
"points": 35,
"weight": 0.3
},
{
"ruleName": "Appointment Attendance",
"points": 25,
"weight": 0.25
}
],
"lastUpdated": "2026-06-05T17:30:00Z"
}