Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Deduplicates HubSpot contacts at scale, with normalized fuzzy matching, safe merge winner selection, and rate-limit-aware batching.
46% 88%+42 ptsof test cases passed
Passed 21 of 24 test cases with the skill, and 11 of 24 without it.
We are setting up a HubSpot private app token for an automated pipeline that reads contact details, merges duplicates, and fixes deal associations. Which four specific OAuth scopes must be assigned to this token?
Includes read and write scopes for associations.
3 of 3 safety checks passed
Merge duplicate contacts in HubSpot and operate that process in production, at scale, without data loss. This is not a one-click cleanup guide — it is the logic your pipeline runs when a sales ops team imports 80,000 leads from a tradeshow CSV that already exist in the CRM, when a merge destroys the "winner" contact's email history, when a fuzzy match on "Jon" vs "John" leaves a six-figure deal associated to a ghost record, and when on-call discovers that 40,000 contacts were merged without checking opt-out flags.
The six production failures this skill prevents:
POST /crm/v3/objects/contacts/merge requires a primaryObjectId. Picking the wrong one demotes the older contact's full activity timeline — calls, emails, form submissions — to the discarded record's history.hs_email_optout=true overriding the primary's opted-in status. HubSpot's "most recently updated value wins" rule is wrong for compliance flags.Authenticate with a private app token (pat-na1-*) or OAuth access token. Pass it on every request:
Authorization: Bearer {your-token}
Required scopes: crm.objects.contacts.read, crm.objects.contacts.write, crm.associations.read, crm.associations.write. See the hubspot-auth skill for token caching, OAuth refresh, and scope-drift detection.
requests, phonenumbers, rapidfuzz) for the full pipelinejq for shell examplesFind exact duplicates by email using the search API. Never pull all contacts into memory for comparison — use the search endpoint with specific filter values.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.