Skip to main content
This functionality is currently in beta. By participating in this beta, you agree to HubSpot's Developer Terms and Developer Beta Terms. Note that the functionality is still under active development and is subject to change based on testing and feedback.
Use the data quality API to retrieve details from HubSpot’s duplicate detection queue, which includes scored pairs with confidence scores. You can also retrieve custom deduplication rule definitions and results, so agents and integrators can act on HubSpot’s own signals rather than building independent candidate lists. Learn more about managing duplicate records on the HubSpot Knowledge Base.

Retrieve default deduplication results

To retrieve record pairs identified as potential duplicates via HubSpot’s default detection method, make a GET request to /crm/data-quality/objects/2027-03-beta/duplicates/default. The following query parameters are available to include in your request: The response will include the following properties: An example response is shown below:

Retrieve custom deduplication rules

To retrieve existing custom duplicate rules defined for an account, make a GET request to /crm/data-quality/objects/2027-03-beta/duplicates/custom-rules. The following query parameters can be optionally included in your request: The response will include the following properties: The code block below demonstrates an example response:
You can also retrieve a specific custom rule by making a GET request to /crm/data-quality/objects/2027-03-beta/duplicates/custom-rules?ruleId={ruleId}, passing the ID of the rule as the ruleId query parameter.

Retrieve custom deduplication results

To retrieve groups of records that match custom duplicate rules, make a GET request to /crm/data-quality/objects/2027-03-beta/duplicates/custom-rules/groups, and append any applicable query parameters:
  • The objectType parameter is required in all requests.
  • In addition, at least one of the following parameters is also required based on what you’re filtering: ruleId, groupId or objectId.
Records are grouped when they share identical values for the properties defined in the rule. All available query parameters are detailed in the table below: The response will include the following properties: An example response is shown in the code block below:
Last modified on October 22, 2026