Recompute a lead score

Rebuild a contact's lead score from its baseline and all of its scoring events, and save it on the contact.

POST https://api.centerfy.ai/webhooks/inbound/contacts/:id/lead-score/recompute

Headers

HeaderRequiredValueDescription
x-api-keyYesyour sub-account API key (cfy_…)Authenticates the request; or use Authorization: Bearer <key>.

Path parameters

NameTypeRequiredDescription
idstring (uuid)YesThe contact id.

Example

curl -X POST "https://api.centerfy.ai/webhooks/inbound/contacts/{id}/lead-score/recompute" \
  -H "x-api-key: $CENTERFY_API_KEY"
import { CenterfyClient } from "@centerfy/sdk";

const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });

const result = await centerfy.leadScoring.recompute("<contactId>");
console.log(result);
centerfy leadScoring recompute <contactId>

MCP tool: centerfy_lead_scoring_recompute (see MCP server)

Response

{
  "status": "success",
  "contact_id": "3f1c2a9e-7b4d-4c8a-9e2f-1a2b3c4d5e6f",
  "previous_lead_score": 54,
  "lead_score": 56
}

Errors

  • 400 — if the id is not a valid UUID; 404 if the contact is not in this sub-account.

Notes

No request body. Useful as a repair if the stored score drifted; normally the score updates on its own as events are recorded.

© 2026 Centerfy AI. All rights reserved.