Send one lead to HubSpot now (Export to CRM)
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).
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
leadId*string^[a-f0-9]{24}$Default Response
application/json- response
contactId*string1 <= lengthcreated*booleanTrue when a new HubSpot contact was made.
curl -X POST 'https://api.tryzen.co/v1/integrations/hubspot/export' \ -H 'Content-Type: application/json' \ -d '{ "leadId": "string"}'{ "contactId": "string", "created": true}Change HubSpot's settings: triggers, auto-find, conversation notes, activities PATCH
**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).
HubSpot's sync activity log, newest first GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `integrations`. One row per write attempt (contact, note, activity) in the last 90 days: the lead, the trigger, `ok`/`failed`/`skipped` and why (`no_email`, `contact_deleted`, `unauthorized`, `rate_limited`, …). Page with `nextCursor`. `404 not_connected`: HubSpot isn't connected.