Change HubSpot's settings: triggers, auto-find, conversation notes, activities
Access: an API key (or an org-wide key naming the workspace) with manage on integrations.
Any subset; what is left out keeps its value. activities are stored at once and sent only when this server has HubSpot's App Events (appEventsEnabled in the integration).
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
syncOn?array<>When a lead is sent to HubSpot: added_to_campaign (the lead joined a campaign), replied (a reply in a campaign conversation), interested (the reply was tagged interested), connected (the lead accepted the invite). Empty = only Export to CRM.
items <= 4autoFindEmail?booleanconversationNotes?booleanactivities?array<>Timeline activities to log on synced contacts. Sent only once HubSpot approves the app (App Events); stored until then.
items <= 12Default Response
application/json- response
hubspot*slack*attio*breakcold*curl -X PATCH 'https://api.tryzen.co/v1/integrations/hubspot' \ -H 'Content-Type: application/json' \ -d '{}'{ "hubspot": { "type": "hubspot", "available": true, "connected": true, "account": { "id": "string", "name": "string" }, "settings": { "syncOn": [ "replied" ], "autoFindEmail": false, "conversationNotes": true, "activities": [ "added_to_campaign", "added_to_list", "message_received", "inmail_received" ] }, "connectedAt": "2019-08-24T14:15:22Z", "lastSync": { "at": "2019-08-24T14:15:22Z", "ok": true, "error": "string" }, "appEventsEnabled": true, "listImport": true }, "slack": { "type": "slack", "connected": true, "settings": { "name": "string", "events": [ "replies_received" ] }, "urlHint": "string", "connectedAt": "2019-08-24T14:15:22Z", "lastSync": { "at": "2019-08-24T14:15:22Z", "ok": true, "error": "string" } }, "attio": { "type": "attio", "available": true, "connected": true, "account": { "id": "string", "name": "string" }, "settings": { "syncOn": [ "replied" ] }, "connectedAt": "2019-08-24T14:15:22Z", "lastSync": { "at": "2019-08-24T14:15:22Z", "ok": true, "error": "string" } }, "breakcold": { "type": "breakcold", "connected": true, "account": { "id": "string", "name": "string" }, "keyHint": "string", "settings": { "syncOn": [ "replied" ] }, "connectedAt": "2019-08-24T14:15:22Z", "lastSync": { "at": "2019-08-24T14:15:22Z", "ok": true, "error": "string" } }}Start connecting HubSpot: open the returned URL in a browser POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `integrations`. HubSpot asks the person to allow access, then sends the browser back to `/v1/integrations/hubspot/callback`, which stores the connection and redirects to Settings → Integrations. The link works for 10 minutes. `503 hubspot_unavailable`: this server has no HubSpot app.
Send one lead to HubSpot now (Export to CRM) POST
**Access:** an API key (or an org-wide key naming the workspace) with the `crmExport` flag. Creates the HubSpot contact, or updates the one with the lead's email (else its LinkedIn profile URL; or the contact an earlier sync made). `409 not_connected`: connect HubSpot first. `422 contact_deleted`: the contact was deleted in HubSpot and stays excluded. `502 hubspot_*`: HubSpot refused or failed (`hubspot_unauthorized` = reconnect).