HubSpot is a leading marketing and CRM platform that helps you track leads as well as inbound marketing and sales.

This document guides you in setting up HubSpot as a source in RudderStack. Once configured, RudderStack automatically ingests your HubSpot data and routes it to your specified data warehouse destination.

All the Cloud Extract sources support sending data only to a data warehouse destination.
Github Badge

Getting started

To set up HubSpot as a source in RudderStack, follow these steps:

  1. Log into your RudderStack dashboard.
  2. Go to Sources > New source > Cloud Extract and select HubSpot from the list of sources.
  3. Assign a name to your source and click Continue.

Connection settings

  • HubSpot Credentials: Click Connect with HubSpot and grant RudderStack the necessary permissions to access your HubSpot data.
Your HubSpot account and the related details will then automatically appear under Choose an account.
  • Start Date: Select the date from when RudderStack ingests your HubSpot data. RudderStack will not replicate any data before this date.

Destination settings

The following settings specify how RudderStack sends the ingested data from HubSpot to the warehouse destination:

  • Table prefix: RudderStack uses this prefix to create a table in your data warehouse and loads all your HubSpot data into it.
  • Schedule Settings: RudderStack gives you three options to ingest the data from HubSpot:
    • Basic: Runs the syncs at the specified time interval.
    • CRON: Runs the syncs based on the user-defined CRON expression.
    • Manual: You are required to run the syncs manually.
For more information on the schedule types, refer to the Common Settings guide.

Selecting the data to import

You can choose the HubSpot data you want to ingest by selecting the required resources:

Selecting the data to import

The below table mentions the syncs and API endpoints supported by the HubSpot resources to your warehouse destination:

ResourceFull Refresh syncIncremental syncHubSpot API endpoint
campaignsYesNo/email/public/v1/campaigns/{campaignId}
companiesYesYes/crm/v3/objects/company
contact_listsYesYes/contacts/v1/lists
contactsYesYes/crm/v3/objects/contact
contacts_list_membershipsYesNo/contacts/v1/lists/all/contacts/all
deal_pipelinesYesNo/crm-pipelines/v1/pipelines/deals
dealsYesYes/crm/v3/objects/deals/search
email_eventsYesYes/email/public/v1/events
engagementsYesYes/engagements/v1/engagements/paged or
/engagements/v1/engagements/recent/modified
feedback_submissionsYesYes/crm/v3/objects/feedback_submissions
formsYesNo/marketing/v3/forms/
form_submissionsYesNo/form-integrations/v1/submissions/forms/:form_guid
line_itemsYesYes/crm/v3/objects/line_items
marketing_emailsYesNo/marketing-emails/v1/emails/with-statistics
ownersYesNo/owners/v2/owners/
property_historyYesYes/crm/v3/objects/products
subscription_changesYesYes/email/public/v1/subscriptions/timeline
ticketsYesYes/crm/v3/objects/tickets
ticket_pipelinesYesNo/crm/v3/pipelines/ticket
workflowsYesNo/automation/v3/workflows
For more information on the Full Refresh and Incremental sync modes, refer to the Common Settings guide.

Note that the objects in the engagements stream can be of the following types:

  • call
  • email
  • meeting
  • note
  • task

Depending on the engagement type, RudderStack sets different properties for the object in the engagements_metadata table in the warehouse destination:

Engagement typeengagements_metadata columns with non-null values
calltoNumberfromNumberstatusexternalId,
durationMillisecondsexternalAccountIdrecordingUrl,
body, disposition
emailsubjecthtml, text
meetingbody, startTime, endTime, title
notebody
taskbodystatus, forObjectType
For the email engagement type, RudderStack also creates the records in the following four related tables:
  • engagements_metadata_from
  • engagements_metadata_to
  • engagements_metadata_cc
  • engagements_metadata_bcc

HubSpot is now configured as a source. RudderStack will start ingesting data from HubSpot as per your specified schedule and frequency.

You can further connect this source to your data warehouse by clicking on Add Destination, as shown:

Adding a destination
Use the Use Existing Destination option if you have an already-configured data warehouse destination in RudderStack. To configure a data warehouse destination from scratch, select the Create New Destination button.

FAQ

Is it possible to have multiple Cloud Extract sources writing to the same schema?

Yes, it is.

RudderStack associates a table prefix for every Cloud Extract source writing to a warehouse schema. This way, multiple Cloud Extract sources can write to the same schema with different table prefixes.

How does RudderStack sync the HubSpot data?

Upon configuring the source, RudderStack first connects to your HubSpot instance and pulls all the historical data from the Start Date specified in the dashboard settings. Subsequently, RudderStack syncs the data to your warehouse based on your specified sync schedule and frequency.


Contact us

For more information on the topics covered on this page, email us or start a conversation in our Slack community.

On this page