Skip to main content
automations/follow-up-hubspot-contacts.automation.ts
Connect HubSpot with OAuth or a private app access token. OAuth is required for triggers because HubSpot delivers app-level webhooks by portal. Actions support either connection method when its token has the required scope. CRM actions use HubSpot’s 2026-03 API. Property inputs are arrays of { name, value } entries so provider property names remain data rather than TypeScript field names. Record dates become JavaScript Date values. List and search results include an opaque pageInfo.after cursor for the next request. HubSpot webhooks cover contacts, companies, deals, and tickets. Automate.ax verifies the exact request body with the HubSpot app secret, deduplicates retries, and classifies broad deliveries into typed creation, property-change, deletion, merge, restore, and association triggers. Property-change triggers receive the properties enabled in the HubSpot app’s webhook configuration. HubSpot returns archived records from its recycling bin when an action accepts archived: true. Archive actions do not permanently erase CRM records.

Exports

  • hubspot contains the packaged HubSpot actions and triggers.
  • hubspotAccount("name") selects a named HubSpot connection.
  • getHubSpotApi creates the authenticated HubSpot API helper for a custom account-backed action.

Triggers

Actions