Prospects

Create and sync leads, follow prospect-to-patient conversion, and keep prospect messaging separate from patient messaging.

This guide is for partners building CRM or messaging integrations and practice developers working with leads through the Hint API.

A prospect is a person interested in a practice who has not yet become a patient. Prospect records have their own IDs and lifecycle. A preferred plan on a prospect does not create a membership.

📘

Beta availability

Prospects is in beta. Contact Hint Support to enable it for a practice and confirm access before building a production workflow. The lead-source write and API conversion contracts marked Preview below depend on the companion prospect API release; confirm that release is deployed before relying on them. This guide does not announce general availability. For practice-facing instructions, see Prospects (Beta).

Access the prospect endpoints

Use the practice API key for the practice you are syncing. A partner uses that practice's integration credentials, rather than a partner-level key, for /api/provider/* data. Read-only keys can read records; writes require write access. See Making Requests for authentication, environments, pagination, and rate limits.

ActionEndpointReference
List prospectsGET /api/provider/prospectsList All Prospects
Create a prospectPOST /api/provider/prospectsCreate Prospect
Read one prospectGET /api/provider/prospects/{id}Show Prospect
Update a prospectPATCH /api/provider/prospects/{id}Update Prospect
Delete a prospectDELETE /api/provider/prospects/{id}Delete Prospect

Store the returned prospect id and practice ID as your record mapping. Email addresses can change and are not a substitute for that mapping.

Create and update a lead

Send writable fields at the top level, matching the API reference schema. Hint also accepts a prospect wrapper for these fields.

{
  "first_name": "Dana",
  "last_name": "Reyes",
  "email": "[email protected]",
  "status": "new"
}

Send this body to Create Prospect. To change a record, send only the fields you want to change to Update Prospect:

{
  "status": "contacted"
}
FieldsWrite behavior
first_name, last_nameContact name.
email, phoneAt least one must remain present. Email is normalized by trimming whitespace and lowercasing.
statusDefaults to new on creation. Accepts the four writable statuses below.
dobOptional date in YYYY-MM-DD format.
address_line1, address_line2, address_city, address_state, address_zip, address_countryOptional address fields.
practitioner, location, planOptional practice-scoped associations, sent as an object such as { "id": "loc-example" }. practitioner and plan describe preferences.
lead_source, lead_source_otherPreview: How the person heard about the practice: a practice-scoped association and optional additional text. Send null to clear either field.

Omitted fields keep their values on update. Optional profile fields can be cleared with null; clearing email and phone together fails validation. Responses may contain null for unset names, contact details, profile fields, and associations. Handle those values explicitly.

The response also includes the read-only fields created_at, updated_at, patient, and email_marketing_authorization. An unknown or other-practice lead source returns 404. Manage marketing consent through Communication Authorizations.

Handle duplicates and validation failures

Within a practice, two undeleted prospects cannot share the same normalized email address. A retained converted prospect also occupies that email. A successful create returns a new record; it is not an upsert of an existing prospect. Persist the returned ID and update that record on subsequent writes.

An existing patient with the same email does not automatically link or convert a prospect. Do not assume the API uses the same duplicate checks as the CSV uploader, or that sharing a phone number links two records.

Invalid writes return 422, including a missing email and phone, an invalid status, setting converted directly, or changing a converted prospect. Deleting a converted prospect also returns 422. Unknown, deleted, or other-practice prospect IDs are not readable through Show Prospect and return 404.

Track prospect status

StatusMeaningCan an integration set it?
newNewly captured lead.Yes
contactedThe practice has contacted the lead.Yes
qualifiedThe practice has qualified the lead.Yes
disqualifiedThe practice has disqualified the lead.Yes
convertedThe prospect has been converted or merged into a patient.No; Hint assigns it during conversion.

The four writable statuses record the practice's lead workflow. Setting qualified does not create a patient, and setting disqualified does not delete the prospect.

Follow conversion into a patient

When a practice converts a prospect into a patient, Hint sets status to converted and links patient to the resulting patient. The following is an excerpt of the prospect response:

{
  "id": "pros-example",
  "status": "converted",
  "patient": {
    "id": "pat-example",
    "name": "Dana Reyes"
  }
}

Hint retains the prospect with its original ID and profile fields. Its notes move to the patient. The prospect leaves the default prospect list and global search, but remains readable by ID and through an explicit status=converted list query. Converted prospects cannot be edited or deleted through the prospect endpoints.

flowchart LR
    Lead["Prospect<br/>new, contacted, qualified, or disqualified"] -->|Convert or merge in Hint| Closed["Retained prospect<br/>status: converted"]
    Closed -->|patient link| Patient["Patient<br/>new or existing"]
    Closed -->|prospect.updated| Sync["Stop prospect messaging<br/>sync the linked patient"]
    classDef node fill:#ffffff,stroke:#dc2626,stroke-width:1px,color:#0f172a,font-size:12px
    class Lead,Closed,Patient,Sync node

Use status == "converted" as the conversion signal. A prospect can already be linked to an account-only customer used for billing before it becomes a patient. A non-null patient association alone is therefore not a sufficient conversion test. The association is a minimal reference containing id and name, not the full patient profile; read Show Patient for the patient data you need.

What the merge winner controls

In Hint's Merge with Existing Patient flow, staff choose which value to keep for each conflicting field: first name, last name, email, date of birth, clinician, location, and address. Choosing the prospect's value copies it onto the existing patient; choosing the patient's value retains it. The UI initially keeps the patient's value where present and fills blank fields from the prospect.

The existing patient remains the destination with the same patient ID, regardless of those choices. Additional phone numbers are copied to the patient and notes move over. Preferred plan is not merged. The prospect is retained as converted and links to that patient. Read the resulting patient to get the chosen values; the retained prospect's fields are not a merged patient profile.

Preview: Convert a prospect through the API

Call Create Patient with source_prospect_id at the top level alongside the patient fields. Supply the patient details required by Create Patient; the example shows the conversion fields:

{
  "source_prospect_id": "pros-example",
  "first_name": "Dana",
  "last_name": "Reyes",
  "email": "[email protected]",
  "dob": "1980-01-01"
}

Patient creation and prospect conversion are atomic. An unknown or other-practice prospect returns 404. An already converted prospect or invalid patient returns 422 without creating a patient or closing the prospect. If the prospect already has an account-only billing customer, Hint promotes that row into a patient instead of creating another row, preserving its patient ID and billing history.

Merging a prospect into an existing patient is available to staff in Hint. It is not exposed through the public API. Partners should follow the retained prospect's status and patient link after staff complete that merge.

The prospect CRUD endpoints do not accept a writable patient association or status: "converted". Use Create Patient with source_prospect_id for API conversion into a patient; use Hint's staff workflow to merge into an existing patient.

Independently created patients

Creating a patient independently does not universally close a matching prospect. Signup-completion flows can reconcile an unlinked prospect from the signup attempt or the same normalized email, but this is not a general email-based auto-merge. If the prospect stays open, staff can merge it with the existing patient in Hint. Plan for that case when separating prospect and patient messaging.

Keep a prospect sync current

List and filter records

List Prospects returns a flat JSON array. Use limit and offset to page through it, and read X-Count and X-Total-Count. The default limit is 10 and the maximum is 100. Results are ordered by internal record ID; do not rely on an updated_at sort for this endpoint.

Supported filters include status, created_at, updated_at, and the location, practitioner, and plan associations. q searches name, email, phone, or prospect ID. Date comparisons use the JSON-object query syntax in Advanced Querying.

Without a status filter, converted prospects are excluded even when you filter by updated_at or search with q. To sync conversions, query them explicitly:

GET /api/provider/prospects?status=converted&limit=100&offset=0

For incremental sync, query open and converted records separately with the same time window. These examples show the query values before URL encoding:

GET /api/provider/prospects?updated_at={"gte":"2026-11-01T00:00:00Z","lt":"2026-11-02T00:00:00Z"}&limit=100&offset=0
GET /api/provider/prospects?status=converted&updated_at={"gte":"2026-11-01T00:00:00Z","lt":"2026-11-02T00:00:00Z"}&limit=100&offset=0

Page through both queries. Use overlapping windows and de-duplicate by record ID and updated_at; offset pagination is not a snapshot, so records can move between pages while a sync runs. An incremental list query does not return deletion tombstones. Use deletion webhooks and periodic reconciliation to remove stale local records.

Process prospect webhooks

EventMeaningRecommended handling
prospect.createdA prospect was created.Store the prospect and its practice mapping.
prospect.updatedProspect data changed, including conversion or a marketing consent change.Refresh local data and stop prospect messaging if its status is converted.
prospect.destroyedA prospect was deleted.Remove it from prospect messaging and your active local list.

There is no separate prospect.converted event. Conversion emits prospect.updated, not prospect.destroyed. The webhook's object uses the public prospect representation, including status and patient.

Creating a new patient also emits patient.created. Merging into an existing patient does not create a second patient; changes to that patient's fields can produce patient.updated. Promoting an account-only billing customer into a patient also announces it with patient.created.

Configure delivery with your partner webhook settings and handle the prospect event types. Do not assume events arrive in order. Validate signatures, acknowledge promptly, de-duplicate deliveries by event ID, and reconcile against the current resource. Your own updates can be muted, so keep local state from successful API responses as well. See Webhooks for delivery snapshots, retries, muting, and recovery.

Separate messaging eligibility from conversion

Stop prospect messaging when status is converted, then sync the linked patient under that patient's ID. Whether a patient belongs in a particular campaign depends on that campaign's patient and membership criteria.

For leads that remain open, apply the practice's campaign rules, including how it treats disqualified. Separately honor email_marketing_authorization: suppress opted_out, and preserve the distinction between opted_in and null (no recorded choice). Marketing consent attaches to the normalized email within a practice, so patients and prospects sharing that address share its consent state. See Communication Authorizations for consent sync and opt-out handling.

Do not assume conversion guarantees that all duplicate contacts were resolved. A person can still have an independently created patient and an unconverted prospect. Shared family emails also mean an email match alone is not proof of person identity.


Did this page help you?