TryzenAPI
Integrations

Change HubSpot's settings: triggers, auto-find, conversation notes, activities

PATCH
/v1/integrations/hubspot

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).

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Request Body

application/json
  1. 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.

Itemsitems <= 4
autoFindEmail?boolean
conversationNotes?boolean
activities?array<>

Timeline activities to log on synced contacts. Sent only once HubSpot approves the app (App Events); stored until then.

Itemsitems <= 12

Response Body

Default Response

application/json
  1. response
hubspot*
slack*
attio*
breakcold*
Example Request
curl -X PATCH 'https://api.tryzen.co/v1/integrations/hubspot' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "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"    }  }}