Release Status Open Beta Availability Premium
Status Page HubSpot Status Page Default Historical Sync 1 year
Whitelist Tables/Columns Unsupported/Unsupported Default Replication Frequency 30 minutes
Full Table Endpoints 3 Incremental Endpoints 8
Destination Incompatibilities None

Connecting HubSpot

Connecting your HubSpot data to Stitch is a four-step process:

  1. Locate your HubSpot portal ID
  2. Add HubSpot as a Stitch data source
  3. Define the Replication Frequency
  4. Authorize Stitch to access HubSpot

Prerequisites

You’ll need Admin permissions to complete the setup. This will ensure that Stitch is able to access and replicate all the data in your HubSpot account.

Locating Your HubSpot Portal ID

A portal ID is a unique identifier HubSpot uses to differentiate accounts, or ‘portals.’ You can find your ID by looking in the top-right corner when you’re signed into your HubSpot account:

Locating your HubSpot portal ID.

After you’ve located your portal ID, you can move onto connecting HubSpot to Stitch.

Add HubSpot as a Stitch Data Source

  1. On the Stitch Dashboard page, click the Add an Integration button.
  2. Click the HubSpot icon.

  3. Enter a name for the integration. This is the name that will display on the for the integration; it’ll also be used to create the schema in your data warehouse.

    For example, the name “Stitch HubSpot” would create a schema called stitch_hubspot in the data warehouse. This schema is where all the tables for this integration will be stored.

  4. In the HubSpot Portal ID field, enter the portal ID of the account you want to connect to Stitch.

Define the Replication Frequency

The Replication Frequency controls how often Stitch will attempt to replicate data from your HubSpot integration. By default the frequency is set to 30 minutes, but you can change it to better suit your needs.

Before setting the Replication Frequency, note that:

  • The more often HubSpot is set to replicate, the higher the number of replicated rows.
  • The number of rows in the source may not equal the number of rows replicated by Stitch. Tables that use Full Table Replication will result in a higher number of replicated rows.

  • If you’re using a data warehouses that doesn’t natively support nested structures, you’ll see a higher number of replicated rows due to the de-nesting Stitch performs.

To help prevent overages, we recommend setting the Replication Frequency to something less frequent - like 6 hours instead of 30 minutes. For tips on reducing your row count, check out the Reducing Your Row Count section of our Billing Guide.

After selecting a Replication Frequency, click Save Integration.

Authorizing Stitch to Access HubSpot

  1. Next, you’ll be prompted to sign into your HubSpot account if you aren’t already.
  2. A screen asking for authorization to HubSpot will display after you sign in. Note that we will only ever read your data. Stitch will never modify or delete any data in your HubSpot account.
  3. Click Authorize.
  4. After the authorization process is successfully completed, you’ll be directed back to Stitch.
  5. Click All Done.

HubSpot’s Intial Sync

After you finish setting up HubSpot, you might see its Sync Status show as Pending on either the Stitch Dashboard or in the Integration Details page.

For a new integration, a Pending status indicates that Stitch is in the process of scheduling the initial sync for the integration. This may take some time to complete.


HubSpot Schema

Stitch's HubSpot integration includes these tables:


campaigns

Replication Method: Full Table
Primary Key: id
Contains Nested Structures?: Yes

The campaigns table contains info about the campaigns in your HubSpot account.

Table Info & Attributes

campaigns & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

campaigns Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Campaign ID (id)

  • appid

  • appname

  • contentid

  • counters__delivered

  • counters__open

  • counters__processed

  • counters__sent

  • name

  • numincluded

  • numqueued

  • subtype

  • subject

  • type

companies

Replication Method: Full Table
Primary Key: companyid
Contains Nested Structures?: No

The companies table contains info about companies your contacts belong to.

Table Info & Attributes

companies Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Company ID (companyid)

  • portalid

  • isdeleted

contacts

Replication Method: Incremental
Primary Key: vid
Contains Nested Structures?: Yes

The contacts table contains info about individual contacts in HubSpot.

Table Info & Attributes

contacts & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

contacts Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Contact ID (vid)

  • portal-id

  • firstname

  • lastname

  • identity-profiles*

  • list-memberships*

  • profile-id

  • profile-token

  • profile-url

  • canonical-vid

  • merged-vids*

  • is-contact

  • form-submission*

  • merge-audits*

contact_lists

Replication Method: Full Table
Primary Key: internallistid
Contains Nested Structures?: Yes

The contact_lists table contains info about the contact lists in your HubSpot account.

Table Info & Attributes

contact_lists & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

contact_lists Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Contact List ID(internallistid)

  • parentid

  • authorid

  • createdat

  • deleteable

  • dynamic

  • listid

  • listtype

  • metadata__error

  • metadata__lastprocessingstatechangeat

  • metadata__lastsizechangeat

  • metadata__processing

  • metadata__size

  • name

  • portalid

  • filters*

  • updatedat

deals

Replication Method: Incremental
Primary Key: dealid : portalid
Contains Nested Structures?: Yes

The deals table contains info about all the deals in a HubSpot portal.

Table Info & Attributes

deals & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

deals Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Deal ID (dealid)

  • portalid

  • isdeleted

  • associations__associatedvids*

  • associations__comapnyids*

  • associations__dealids*

email_events

Replication Method: Append-Only (Incremental)
Primary Key: id
Contains Nested Structures?: No

The email_events table contains info about email events and how recipients interact with content.

Table Info & Attributes

email_events Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Email Event ID (id)

  • appid

  • appname

  • browser__family

  • browser__name

  • browser__producer

  • browser__producerurl

  • browser__type

  • browser__url

  • created

  • emailcampaignid

  • hmid

  • ipaddress

  • location__city

  • location__country

  • location__state

  • portalid

  • portalsubscriptionstatus

  • recipient

  • sentby__created

  • sentby__id

  • smtpid

  • subject

  • type

  • useragent

forms

Replication Method: Incremental
Primary Key: guid
Contains Nested Structures?: Yes

The forms table contains info about your HubSpot website forms.

Table Info & Attributes

forms & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

forms Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Form ID (guid)

  • portalid

  • name

  • action

  • method

  • cssclass

  • redirect

  • submittext

  • followupid

  • notifyrecipients

  • leadnurturingcampaignid

  • formfieldgrooups*

  • createdat

  • updatedat

  • performablehtml

  • migratedfrom

  • ignorecurrentvalues

  • deletable

  • inlinemessage

  • tmsid

  • captchaenabled

  • campaignguid

  • cloneable

  • editable

  • formtype

  • metadata*

keywords

Replication Method: Append-Only (Incremental)
Primary Key: keyword_guid
Contains Nested Structures?: No

The keywords table contains info about your HubSpot portal keywords.

Table Info & Attributes

keywords Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Keyword ID (keyword_guid)

  • keyword

  • contacts

  • country

  • visits

  • created_at

  • leads

owners

Replication Method: Incremental
Primary Key: ownerid : portalid
Contains Nested Structures?: Yes

The owners table contains info about the owners that exist in your HubSpot portal.

Table Info & Attributes

owners & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

owners Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Owner ID (ownerid)

  • portalid

  • createdat

  • email

  • firstname

  • lastname

  • type

  • updatedat

  • remotelist*

subscription_changes

Replication Method: Incremental
Primary Key: recipient : timestamp : portalid
Contains Nested Structures?: Yes

The subscription_changes table contains info about changes made to subscriptions.

Table Info & Attributes

subscription_changes & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

subscription_changes Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • portalid

  • recipient

  • timestamp

  • changes*

workflows

Replication Method: Incremental
Primary Key: id
Contains Nested Structures?: Yes

The workflows table contains info about the workflows in your HubSpot portal.

Table Info & Attributes

workflows & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

workflows Attributes

While we try to include everything HubSpot has here, this may not be a full list of attributes. Refer to HubSpot's documentation for a full list and description of each attribute.

  • Workflow ID (id)

  • contactlisids__active

  • contactlistids__enrolled

  • contactlistids__steps*

  • personatagids*

  • enabled

  • insertedat

  • name

  • type

  • updatedat



Questions? Feedback?

Did this article help? If you have questions or feedback, please reach out to us.