This page guides you through setting up the HubSpot source connector.
You can use OAuth or an API key to authenticate your HubSpot account. If you choose to use OAuth, you need to configure the appropriate scopes for the following streams:
Stream | Required Scope |
---|---|
campaigns |
content |
companies |
contacts |
contact_lists |
contacts |
contacts |
contacts |
contacts_list_memberships |
contacts |
deal_pipelines |
either the contacts scope (to fetch deals pipelines) or the tickets scope. |
deals |
contacts |
email_events |
content |
engagements |
contacts |
engagements_emails |
sales-email-read |
feedback_submissions |
crm.objects.feedback_submissions.read |
forms |
forms |
form_submissions |
forms |
line_items |
e-commerce |
owners |
contacts |
products |
e-commerce |
property_history |
contacts |
quotes |
no scope required |
subscription_changes |
content |
tickets |
tickets |
workflows |
automation |
- Log into your Airbyte Cloud or Airbyte OSS account.
- Click Sources and then click + New source.
- On the Set up the source page, select HubSpot from the Source type dropdown.
- Enter a name for your source.
- For Start date, enter the date in YYYY-MM-DDTHH:mm:ssZ format. The data added on and after this date will be replicated. If this field is blank, Airbyte will replicate all data.
- You can use OAuth or an API key to authenticate your HubSpot account. We recommend using OAuth for Airbyte Cloud and an API key for Airbyte OSS.
- To authenticate using OAuth for Airbyte Cloud, ensure you have set the appropriate scopes for HubSpot and then click Authenticate your HubSpot account to sign in with HubSpot and authorize your account.
- To authenticate using an API key for Airbyte OSS, select API key from the Authentication dropdown and enter the API key for your HubSpot account.
:::note Check the performance considerations before using an API key. :::
- Click Set up source.
The HubSpot source connector supports the following sync modes:
- Full Refresh
- Incremental
The HubSpot source connector supports the following streams:
- Campaigns
- Companies (Incremental)
- Contact Lists (Incremental)
- Contacts (Incremental)
- Contacts List Memberships
- Deal Pipelines
- Deals (including Contact associations) (Incremental)
- Email Events (Incremental)
- Engagements (Incremental)
- Engagements Calls (Incremental)
- Engagements Emails (Incremental)
- Engagements Meetings (Incremental)
- Engagements Notes (Incremental)
- Engagements Tasks (Incremental)
- Feedback Submissions (Incremental)
- Forms
- Form Submissions
- Line Items (Incremental)
- Marketing Emails
- Owners
- Products (Incremental)
- Property History (Incremental)
- Quotes (Incremental)
- Subscription Changes (Incremental)
- Tickets (Incremental)
- Ticket Pipelines
- Workflows
Objects in the engagements
stream can have one of the following types: note
, email
, task
, meeting
, call
. Depending on the type of engagement, different properties is set for that object in the engagements_metadata
table in the destination:
- A
call
engagement has a correspondingengagements_metadata
object with non-null values in thetoNumber
,fromNumber
,status
,externalId
,durationMilliseconds
,externalAccountId
,recordingUrl
,body
, anddisposition
columns. - An
email
engagement has a correspondingengagements_metadata
object with non-null values in thesubject
,html
, andtext
columns. In addition, there will be records in four related tables,engagements_metadata_from
,engagements_metadata_to
,engagements_metadata_cc
,engagements_metadata_bcc
. - A
meeting
engagement has a correspondingengagements_metadata
object with non-null values in thebody
,startTime
,endTime
, andtitle
columns. - A
note
engagement has a correspondingengagements_metadata
object with non-null values in thebody
column. - A
task
engagement has a correspondingengagements_metadata
object with non-null values in thebody
,status
, andforObjectType
columns.
:::note
HubSpot API currently only supports quotes
endpoint using API Key, using OAuth it is impossible to access this stream (as reported by community.hubspot.com).
:::
The connector is restricted by normal HubSpot rate limitations.
Some streams, such as workflows
need to be enabled before they can be read using a connector authenticated using an API Key
. If reading a stream that is not enabled, a log message returned to the output and the sync operation only sync the other streams available.
Example of the output message when trying to read workflows
stream with missing permissions for the API Key
:
{
"type": "LOG",
"log": {
"level": "WARN",
"message": 'Stream `workflows` cannot be proceed. This API Key (EXAMPLE_API_KEY) does not have proper permissions! (requires any of [automation-access])'
}
}
HubSpot's API will rate limit the amount of records you can sync daily, so make sure that you are on the appropriate plan if you are planning on syncing more than 250,000 records per day.
Now that you have set up the HubSpot source connector, check out the following HubSpot tutorial:
Build a single customer view with open-source tools
Version | Date | Pull Request | Subject |
---|---|---|---|
0.1.75 | 2022-07-18 | 14744 | Remove override of private CDK method |
0.1.74 | 2022-07-25 | 14412 | Add private app authentication |
0.1.73 | 2022-07-13 | 14666 | Decrease number of http requests made, disable Incremental mode for PropertyHistory stream |
0.1.72 | 2022-06-24 | 14054 | Extended error logging |
0.1.71 | 2022-06-24 | 14102 | Removed legacy AirbyteSentry dependency from the code |
0.1.70 | 2022-06-16 | 13837 | Fix the missing data in CRM streams issue |
0.1.69 | 2022-06-10 | 13691 | Fix the URI Too Long issue |
0.1.68 | 2022-06-08 | 13596 | Fix for the property_history which did not emit records |
0.1.67 | 2022-06-07 | 13566 | Report which scopes are missing to the user |
0.1.66 | 2022-06-05 | 13475 | Scope crm.objects.feedback_submissions.read added for feedback_submissions stream |
0.1.65 | 2022-06-03 | 13455 | Discover only returns streams for which required scopes were granted |
0.1.64 | 2022-06-03 | 13218 | Transform contact_lists data to comply with schema |
0.1.63 | 2022-06-02 | 13320 | Fix connector incremental state handling |
0.1.62 | 2022-06-01 | 13383 | Add line items to deals stream |
0.1.61 | 2022-05-25 | 13381 | Requests scopes as optional instead of required |
0.1.60 | 2022-05-25 | 13159 | Use RFC3339 datetime |
0.1.59 | 2022-05-10 | 12711 | Ensure oauth2.0 token has all needed scopes in "check" command |
0.1.58 | 2022-05-04 | 12482 | Update input configuration copy |
0.1.57 | 2022-05-04 | 12198 | Add deals associations for quotes |
0.1.56 | 2022-05-02 | 12515 | Extra logs for troubleshooting 403 errors |
0.1.55 | 2022-04-28 | 12424 | Correct schema for ticket_pipeline stream |
0.1.54 | 2022-04-28 | 12335 | Mock time slep in unit test s |
0.1.53 | 2022-04-20 | 12230 | Change spec json to yaml format |
0.1.52 | 2022-03-25 | 11423 | Add tickets associations to engagements streams |
0.1.51 | 2022-03-24 | 11321 | Fix updated at field non exists issue |
0.1.50 | 2022-03-22 | 11266 | Fix Engagements Stream Pagination |
0.1.49 | 2022-03-17 | 11218 | Anchor hyperlink in input configuration |
0.1.48 | 2022-03-16 | 11105 | Fix float numbers, upd docs |
0.1.47 | 2022-03-15 | 11121 | Add partition keys where appropriate |
0.1.46 | 2022-03-14 | 10700 | Handle 10k+ records reading in Hubspot streams |
0.1.45 | 2022-03-04 | 10707 | Remove stage history from deals stream to increase efficiency |
0.1.44 | 2022-02-24 | 9027 | Add associations companies to deals, ticket and contact stream |
0.1.43 | 2022-02-24 | 10576 | Cast timestamp to date/datetime |
0.1.42 | 2022-02-22 | 10492 | Add date-time format to datetime fields |
0.1.41 | 2022-02-21 | 10177 | Migrate to CDK |
0.1.40 | 2022-02-10 | 10142 | Add associations to ticket stream |
0.1.39 | 2022-02-10 | 10055 | Bug fix: reading not initialized stream |
0.1.38 | 2022-02-03 | 9786 | Add new streams for engagements(calls, emails, meetings, notes and tasks) |
0.1.37 | 2022-01-27 | 9555 | Getting form_submission for all forms |
0.1.36 | 2022-01-22 | 7784 | Add Property History Stream |
0.1.35 | 2021-12-24 | 9081 | Add Feedback Submissions stream and update Ticket Pipelines stream |
0.1.34 | 2022-01-20 | 9641 | Add more fields for email_events stream |
0.1.33 | 2022-01-14 | 8887 | More efficient support for incremental updates on Companies, Contact, Deals and Engagement streams |
0.1.32 | 2022-01-13 | 8011 | Add new stream form_submissions |
0.1.31 | 2022-01-11 | 9385 | Remove auto-generated properties from Engagements stream |
0.1.30 | 2021-01-10 | 9129 | Created Contacts list memberships streams |
0.1.29 | 2021-12-17 | 8699 | Add incremental sync support for companies , contact_lists , contacts , deals , line_items , products , quotes , tickets streams |
0.1.28 | 2021-12-15 | 8429 | Update fields and descriptions |
0.1.27 | 2021-12-09 | 8658 | Fixed config backward compatibility issue by allowing additional properties in the spec |
0.1.26 | 2021-11-30 | 8329 | Removed 'skip_dynamic_fields' config param |
0.1.25 | 2021-11-23 | 8216 | Add skip dynamic fields for testing only |
0.1.24 | 2021-11-09 | 7683 | Fix name issue 'Hubspot' -> 'HubSpot' |
0.1.23 | 2021-11-08 | 7730 | Fix OAuth flow schema |
0.1.22 | 2021-11-03 | 7562 | Migrate Hubspot source to CDK structure |
0.1.21 | 2021-10-27 | 7405 | Change of package import from urllib to urllib.parse |
0.1.20 | 2021-10-26 | 7393 | Hotfix for split_properties function, add the length of separator symbol , (%2C in HTTP format) to the checking of the summary URL length |
0.1.19 | 2021-10-26 | 6954 | Fix issue with getting 414 HTTP error for streams |
0.1.18 | 2021-10-18 | 5840 | Add new marketing emails (with statistics) stream |
0.1.17 | 2021-10-14 | 6995 | Update discover method: disable quotes stream when using OAuth config |
0.1.16 | 2021-09-27 | 6465 | Implement OAuth support. Use CDK authenticator instead of connector specific authenticator |
0.1.15 | 2021-09-23 | 6374 | Use correct schema for owners stream |
0.1.14 | 2021-09-08 | 5693 | Include deal_to_contact association when pulling deal stream and include contact ID in contact stream |
0.1.13 | 2021-09-08 | 5834 | Fixed array fields without items property in schema |
0.1.12 | 2021-09-02 | 5798 | Treat empty string values as None for field with format to fix normalization errors |
0.1.11 | 2021-08-26 | 5685 | Remove all date-time format from schemas |
0.1.10 | 2021-08-17 | 5463 | Fix fail on reading stream using API Key without required permissions |
0.1.9 | 2021-08-11 | 5334 | Fix empty strings inside float datatype |
0.1.8 | 2021-08-06 | 5250 | Fix issue with printing exceptions |
0.1.7 | 2021-07-27 | 4913 | Update fields schema |