Contacts
Scoring Rules
List and create lead-scoring rules that adjust a contact's score on engagement events.
List scoring rules
GET
/io/contacts/scoring-rulesReturns all lead-scoring rules for the acting user, ordered by priority descending.
{
"data": [
{
"id": "rule_abc",
"name": "Email opened",
"event_type": "email.opened",
"score_delta": 5,
"is_active": true,
"priority": 10
}
]
}Create a scoring rule
POST
/io/contacts/scoring-rulesnamestringbodyrequiredRule name.
eventTypestringbodyrequiredThe event that triggers the rule (e.g.
email.opened, link.clicked).descriptionstringbodyOptional description.
conditionobjectbodyAdditional match conditions on the event payload.
scoreDeltaintegerbodyPoints to add (positive) or subtract (negative). Default
0.isActivebooleanbodyWhether the rule is applied. Default
true.priorityintegerbodyEvaluation order — higher = earlier. Default
0.{
"name": "Email opened",
"eventType": "email.opened",
"scoreDelta": 5,
"priority": 10
}{
"data": {
"id": "rule_abc",
"name": "Email opened",
"event_type": "email.opened",
"score_delta": 5,
"is_active": true,
"priority": 10
}
}