Sync from HealthSherpa to your CRM
This pattern demonstrates how to sync contacts from HealthSherpa Medicare into your CRM using the contact search endpoint. You can run this one contact at a time from a button on the contact profile in your CRM, or loop through a contact list and call the search endpoint for each contact.
View the V1 Search Contact endpoint or V2 Search Contact endpoint documentation.
Overview
Initial Setup
Choose the API version your integration will use:
For v1 API key integrations:
Create an API client with your HealthSherpa API key
Store the API key securely in your system
Include the agent's email address in each search request - must match their HealthSherpa account
For v2 OAuth integrations:
Configure OAuth with HealthSherpa, request the
partner_api_v2scopeStore and refresh OAuth access tokens securely
Search requests are performed on behalf of the authenticated agent, so
agent_emailis not required
Store the HealthSherpa contact ID on CRM records when a match is found
Agent Authentication
Provide a "Login to HealthSherpa" button in your CRM
When clicked, open HealthSherpa login page in a new tab
Agent logs in to HealthSherpa separately
Contact Import Flow
When a user clicks "Sync from HealthSherpa" on a CRM contact profile:
Build search parameters from the CRM contact
Call the HealthSherpa contact search endpoint
If a matching HealthSherpa contact is found:
Map the returned HealthSherpa fields to your CRM fields
Update the CRM contact
Store the returned HealthSherpa contact ID
If no matching contact is found:
Leave the CRM contact unchanged
Show a user-friendly "No matching HealthSherpa contact found" message
Bulk Sync Flow
To sync a list of CRM contacts:
Loop through the contacts in your CRM
For each contact, call the HealthSherpa contact search endpoint
Update only records where a matching HealthSherpa contact is returned
Track sync status per contact so users can review matches, misses, and errors
Search Matching
You can search by
medicare_numberaloneOr search by
first_nameorlast_nameplus at least one of:date_of_birthemailphone
Data Mapping
Map HealthSherpa contact fields into your CRM fields
Error Handling
Handle API errors and validation errors
Log failed sync attempts for review
Avoid overwriting CRM data when the search response does not contain a match
Show clear messages for "no match", "invalid search parameters", and authentication errors
Last updated

