hubspot.upsert API
Create or update contacts in your connected HubSpot portal, up to 100 a call, matched on email: a contact that is already there is updated, a new one is created, and the result says which. Send rows as people.search, contact.find or person.enrich return them (name, title, company, domain, profile_url) or with plain field names; an empty value is never sent, so a push cannot blank a field that is filled in the CRM. Custom properties go under properties with their HubSpot internal names. Each returned contact carries its HubSpot id and a link to the record.
HubSpot:
all inputs ✓
✓ marks a combination proven with a real provider call. Others are wired and unit-tested; their first live run verifies them.
| Provider | Status |
|---|---|
HubSpot |
live |
Unit: per_call · unmatched results billed: no
Free: writing to your own HubSpot costs nothing here. The records count against your HubSpot plan's own contact limits.
The exact quote is returned by /v1/inspect before every call and held with headroom on execution. The quote is the price floor: if the provider's actual cost overruns it, the run bills the overrun at the same rate, never above the hold. The unused part of every hold is released.
curl https://api.routergrowth.com/v1/run \ -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \ -d '{ "capability": "hubspot.upsert", "input": { "contacts": "..." }, "routing": {"provider": "auto"} }'
{
"properties": {
"account_id": {
"description": "The connection name from hubspot.accounts; optional when the workspace has one connection",
"type": "string"
},
"contacts": {
"description": "1 to 100 contacts. Each needs email; a row without one is refused before anything is sent (find it with contact.find first)",
"items": {
"properties": {
"city": {
"type": "string"
},
"company": {
"type": "string"
},
"country": {
"type": "string"
},
"email": {
"type": "string"
},
"first_name": {
"type": "string"
},
"job_title": {
"description": "Also read from title",
"type": "string"
},
"last_name": {
"type": "string"
},
"lead_status": {
"description": "HubSpot\u0027s internal value, e.g. NEW, OPEN, IN_PROGRESS",
"type": "string"
},
"lifecycle_stage": {
"description": "HubSpot\u0027s internal value, e.g. lead, marketingqualifiedlead, salesqualifiedlead",
"type": "string"
},
"linkedin_url": {
"description": "Also read from profile_url when it is a LinkedIn link",
"type": "string"
},
"mobile_phone": {
"type": "string"
},
"name": {
"description": "Full name, split into first and last when those are absent",
"type": "string"
},
"phone": {
"type": "string"
},
"properties": {
"description": "Any other contact property by its HubSpot internal name, e.g. {\"lead_source_detail\": \"RouterGrowth\"}. The property must exist in the portal",
"type": "object"
},
"state": {
"type": "string"
},
"website": {
"description": "Also read from domain",
"type": "string"
}
},
"required": [
"email"
],
"type": "object"
},
"maxItems": 100,
"minItems": 1,
"type": "array"
}
},
"required": [
"contacts"
],
"type": "object"
}
account · portal_id · count · created · updated · contacts · failed · dropped_properties · ignored_fields