HigherData / Tool
crm.enrich
Build a pending-approval fill-blanks change set for up to 500 selected cached companies or contacts, or a CRM filter. Uses unique HigherData Core matches. Dry runs show the proposed changes. Never writes HubSpot.
Scopes: crm:write
Send execute false to preview the change. Send execute true to write it. A preview does not change stored data.
REST: POST /api/v1/tools/crm.enrich?execute=false. The same call is POST /api/v1/crm/enrich?execute=false.
MCP tool name: crm_enrich. It is in the default MCP catalog when your scopes allow it.
Input
| Field | Type | Required | Description |
|---|---|---|---|
| fields | array | no | Synced writable properties to fill. Omit to use all supported fields. 1 to 16 items. Each item: Pattern: ^[a-z][a-z0-9_]{0,127}$. |
| selection | string | yes | Enrich CRM records that match a filter. One of: filter. |
| objectType | string | yes | CRM object to enrich: companies or contacts. One of: companies, contacts. |
| ids | array | yes | CRM ids to enrich. 1 to 500 items. Each item: Pattern: ^[1-9][0-9]{0,19}$. |
| filter | object | yes | Records to enrich, by object, text, and match state. |
| filter. | string | yes | CRM object to enrich: companies or contacts. One of: companies, contacts. |
| filter. | string | no | Text matched against a company's name or domain, a contact's email, or a deal's name. At most 120 characters. |
| filter. | string | no | Exact normalized company domain. Company searches only. At most 253 characters. |
| filter. | string | no | Only records with an empty synced property. Pattern: ^[a-z][a-z0-9_]{0,127}$. |
| filter. | string | no | How the CRM record matches HigherData. One of: matched, ambiguous, unmatched. |
| filter. | string | no | HubSpot list to select from. Pattern: ^[1-9][0-9]{0,19}$. |
| limit | integer | yes | Maximum records to enrich from this page. From 1 to 500. |
| cursor | string | no | Cursor from the previous page. Omit it for the first page. At most 2048 characters. |
Output
| Field | Type | Required | Description |
|---|---|---|---|
| sharedCompanies | array | no | Up to five records whose shared domain needs a company choice. At most 5 items. |
| sharedCompanyCount | integer | no | From 0 to 500. |
| dryRun | boolean | yes | |
| changeSet | value | yes | |
| proposals | array | yes | At most 4000 items. |
| samples | array | no | At most 5 items. |
| scannedRecords | integer | no | From 0 to 500. |
| changedRecords | integer | no | From 0 to 500. |
| summary | string | no | At most 512 characters. |
| enrichmentReasons | object | no | |
| matchedRecords | integer | yes | From 0 to 500. |
| nextCursor | string or null | yes |
Request
curl -sS -X POST "https://higherdata.io/api/v1/tools/crm.enrich?execute=false" \
-H "Authorization: Bearer hd_example_replace_me" \
-H "Content-Type: application/json" \
-d '{
"selection": "records",
"objectType": "companies",
"ids": [
"10"
]
}'SDK
import { HigherData } from "higherdata-sdk";
const higherdata = new HigherData({
apiKey: "hd_example_replace_me",
apiUrl: "https://higherdata.io",
});
const result = await higherdata.call("crm.enrich", {
"selection": "records",
"objectType": "companies",
"ids": [
"10"
]
}, { execute: false });Example
{
"input": {
"selection": "records",
"objectType": "companies",
"ids": [
"10"
]
},
"output": {
"dryRun": true,
"changeSet": null,
"proposals": [
{
"id": "00000000-0000-4000-8000-000000008502",
"objectType": "companies",
"externalId": "10",
"kind": "fill_blank",
"operation": "field",
"field": "city",
"before": null,
"after": "Toronto",
"reason": "Fill an empty field from HigherData Core.",
"provenance": {
"source": "higherdata_core"
},
"fromChangeId": null
}
],
"nextCursor": null,
"matchedRecords": 1
}
}