This version of HubSpot reached end of life on September 23, 2019 and is no longer functioning.
Upgrade to the latest version (v3) to continue replicating data.
HubSpot integration summary
Stitch’s HubSpot integration replicates data using the HubSpot REST API. Refer to the Schema section for a list of objects available for replication.
HubSpot feature snapshot
A high-level look at Stitch's HubSpot (v1) integration, including release status, useful links, and the features supported in Stitch.
STITCH | |||
Release status |
Sunset on September 23, 2019 |
Supported by | |
Stitch plan |
Standard |
API availability |
Not available |
Singer GitHub repository | |||
REPLICATION SETTINGS | |||
Anchor Scheduling |
Supported |
Advanced Scheduling |
Unsupported |
Table-level reset |
Unsupported |
Configurable Replication Methods |
Unsupported |
DATA SELECTION | |||
Table selection |
Supported |
Column selection |
Unsupported |
Select all |
Supported |
||
TRANSPARENCY | |||
Extraction Logs |
Supported |
Loading Reports |
Supported |
HubSpot table reference
Schemas and versioning
Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.
The schema and info displayed below is for version 1 of this integration.
Custom HubSpot Field Replication
Custom object properties, or fields, are supported by Stitch’s HubSpot integration. Stitch will query the properties
list for each object and, if custom fields are available through HubSpot’s API, replicate them to your destination.
This is applicable to any object that supports custom fields in HubSpot.
HubSpot Date/DateTime Values & UNIX Timestamps
HubSpot uses UNIX-formatted timestamps in milliseconds to store date
and datetime
data. Stitch doesn’t perform any transformation during the replication process, meaning these values won’t be converted to timestamps before they’re loaded into your destination.
To account for this, consider creating a user-defined function to perform the conversion or building views on top of the raw data.
Table and column names in your destination
Depending on your destination, table and column names may not appear as they are outlined below.
For example: Object names are lowercased in Redshift (CusTomERs
> customers
), while case is maintained in PostgreSQL destinations (CusTomERs
> CusTomERs
). Refer to the Loading Guide for your destination for more info.
campaigns
The campaigns
table contains info about the campaigns in your HubSpot account.
Full Table |
|
Primary Key |
id |
Useful links |
appId INTEGER |
|||||
appName STRING |
|||||
contentId INTEGER |
|||||
counters OBJECT
|
|||||
id INTEGER |
|||||
name STRING |
|||||
numIncluded INTEGER |
|||||
numQueued INTEGER |
|||||
subType STRING |
|||||
subject STRING |
|||||
type STRING |
companies
The companies
table contains info about the companies your HubSpot contacts belong to.
Note: when this table is synced, the hubspot_contacts_by_company
table will also be automatically synced and created in your data warehouse.
Full Table |
|
Primary Key |
companyId |
Useful links |
companyId INTEGER |
isDeleted BOOLEAN |
portalId INTEGER |
contact_lists
The contact_lists
table contains info about the contacts lists in your HubSpot account. Contact lists are used to segment contacts into groups, and there are two types: dynamic (smart lists) and static.
Key-based Incremental |
|
Primary Key |
listId |
Replication Key |
updatedAt |
Useful links |
archived BOOLEAN |
createdAt DATE-TIME |
deleteable BOOLEAN |
dynamic BOOLEAN |
filters ARRAY |
internalListId INTEGER |
listId INTEGER |
listType STRING |
metaData OBJECT |
name STRING |
parentId INTEGER |
portalId INTEGER |
readOnly BOOLEAN |
updatedAt DATE-TIME |
contacts
The contacts
table contains info about individual contacts in HubSpot.
Contact properties
If properties have been set for the contact, additional fields beginning with properties__
will be included in the table. Note: Contacts will only have an entry for a property if that property has been set for the contact’s record.
HubSpot always types the value of properties
fields as STRING
despite the property type. Refer to HubSpot’s documentation for more info.
Key-based Incremental |
|
Primary Key |
canonical-vid |
Replication Key |
properties__lastModifiedDate__value |
Useful links |
associated-company OBJECT |
||||||||||||||||||||
canonical-vid INTEGER |
||||||||||||||||||||
form-submissions ARRAY
|
||||||||||||||||||||
identity-profiles ARRAY
|
||||||||||||||||||||
is-contact BOOLEAN |
||||||||||||||||||||
list-memberships ARRAY
|
||||||||||||||||||||
merge-audits ARRAY
|
||||||||||||||||||||
merged-vids ARRAY |
||||||||||||||||||||
portal-id INTEGER |
||||||||||||||||||||
profile-token STRING |
||||||||||||||||||||
profile-url STRING |
||||||||||||||||||||
vid INTEGER |
deal_pipelines
The deal_pipelines
table contains info about the deal stage
and pipeline
properties.
Full Table |
|
Primary Key |
pipelineId |
Useful links |
active BOOLEAN |
||||||
displayOrder INTEGER |
||||||
label STRING |
||||||
pipelineId STRING |
||||||
stages ARRAY
|
||||||
staticDefault BOOLEAN |
deals
The deals
table contains info about the deals in a HubSpot portal.
Full Table |
|
Primary Keys |
dealId portalId |
Useful links |
associations OBJECT
|
|||
dealId INTEGER |
|||
isDeleted BOOLEAN |
|||
portalId INTEGER |
email_events
The email_events
table contains info about email events and how recipients interact with content.
Key-based Incremental |
|
Primary Key |
id |
Replication Key |
id |
Useful links |
appId INTEGER |
||||||
appName STRING |
||||||
browser OBJECT
|
||||||
created DATE-TIME |
||||||
deviceType STRING |
||||||
duration INTEGER |
||||||
emailCampaignGroupId INTEGER |
||||||
emailCampaignId INTEGER |
||||||
filteredEvent BOOLEAN |
||||||
from STRING |
||||||
hmid STRING |
||||||
id STRING |
||||||
ipAddress STRING |
||||||
linkId INTEGER |
||||||
location OBJECT
|
||||||
portalId INTEGER |
||||||
recipient STRING |
||||||
response STRING |
||||||
sentBy OBJECT
|
||||||
smtpId STRING |
||||||
subject STRING |
||||||
type STRING |
||||||
url STRING |
||||||
userAgent STRING |
engagements
The engagements
table contains info about all the engagements in a HubSpot portal.
Key-based Incremental |
|
Primary Key |
engagement_id |
Replication Key |
lastUpdated |
Useful links |
associations OBJECT
|
||||||||||||||||||||||||||
attachments ARRAY
|
||||||||||||||||||||||||||
engagement OBJECT
|
||||||||||||||||||||||||||
engagement_id INTEGER |
||||||||||||||||||||||||||
metadata OBJECT
|
forms
The forms
table contains info about your HubSpot website forms.
Key-based Incremental |
|
Primary Key |
guid |
Replication Key |
updatedAt |
Useful links |
action STRING |
|||||||||||||||||||||||||||||||||||
campaignGuid STRING |
|||||||||||||||||||||||||||||||||||
captchaEnabled BOOLEAN |
|||||||||||||||||||||||||||||||||||
cloneable BOOLEAN |
|||||||||||||||||||||||||||||||||||
createdAt DATE-TIME |
|||||||||||||||||||||||||||||||||||
cssClass STRING |
|||||||||||||||||||||||||||||||||||
deletable BOOLEAN |
|||||||||||||||||||||||||||||||||||
deletedAt INTEGER |
|||||||||||||||||||||||||||||||||||
editable BOOLEAN |
|||||||||||||||||||||||||||||||||||
followUpId STRING |
|||||||||||||||||||||||||||||||||||
formFieldGroups ARRAY
|
|||||||||||||||||||||||||||||||||||
formType STRING |
|||||||||||||||||||||||||||||||||||
guid STRING |
|||||||||||||||||||||||||||||||||||
ignoreCurrentValues BOOLEAN |
|||||||||||||||||||||||||||||||||||
inlineMessage STRING |
|||||||||||||||||||||||||||||||||||
leadNurturingCampaignId STRING |
|||||||||||||||||||||||||||||||||||
metaData ARRAY
|
|||||||||||||||||||||||||||||||||||
method STRING |
|||||||||||||||||||||||||||||||||||
migratedFrom STRING |
|||||||||||||||||||||||||||||||||||
name STRING |
|||||||||||||||||||||||||||||||||||
notifyRecipients STRING |
|||||||||||||||||||||||||||||||||||
performableHtml STRING |
|||||||||||||||||||||||||||||||||||
portalId INTEGER |
|||||||||||||||||||||||||||||||||||
redirect STRING |
|||||||||||||||||||||||||||||||||||
submitText STRING |
|||||||||||||||||||||||||||||||||||
tmsId STRING |
|||||||||||||||||||||||||||||||||||
updatedAt DATE-TIME |
owners
The owners
table contains info about the owners that exist in your HubSpot portal. Owners are created and updated in HubSpot when new users are added or when owners are synced from Salesforce to HubSpot.
Key-based Incremental |
|
Primary Keys |
ownerId portalId |
Replication Key |
updatedAt |
Useful links |
createdAt DATE-TIME |
||||||
STRING |
||||||
firstName STRING |
||||||
hasContactsAccess BOOLEAN |
||||||
lastName STRING |
||||||
ownerId INTEGER |
||||||
portalId INTEGER |
||||||
remoteList ARRAY
|
||||||
signature STRING |
||||||
type STRING |
||||||
updatedAt DATE-TIME |
subscription_changes
The subscription_changes
table contains info about changes made subscriptions.
Key-based Incremental |
|
Primary Keys |
recipient portalId timestamp |
Replication Key |
timestamp |
Useful links |
changes ARRAY
|
|||||||||
portalId INTEGER |
|||||||||
recipient STRING |
|||||||||
timestamp DATE-TIME |
workflows
The workflows
table contains info about the workflows in your HubSpot portal.
Note: The workflows
stream only supports contact-based workflows.
Key-based Incremental |
|
Primary Key |
id |
Replication Key |
updatedAt |
Useful links |
contactListIds OBJECT
|
|||
enabled BOOLEAN |
|||
id INTEGER |
|||
insertedAt DATE-TIME |
|||
name STRING |
|||
personaTagIds ARRAY |
|||
type STRING |
|||
updatedAt DATE-TIME |
Related | Troubleshooting |
Questions? Feedback?
Did this article help? If you have questions or feedback, feel free to submit a pull request with your suggestions, open an issue on GitHub, or reach out to us.