# HubSpot connector

> How to connect HubSpot to Windsor.ai and what CRM and marketing data is available.

The HubSpot connector pulls CRM and marketing data from HubSpot — contacts, companies, deals, pipelines, and marketing engagement — via HubSpot's API.

## Connecting HubSpot

1. Go to [onboard.windsor.ai](https://onboard.windsor.ai/) and find the **HubSpot** connector.
2. Click **Connect** and sign in with your HubSpot account.
3. Grant Windsor read access to the HubSpot portal.
4. Select the portal you want to use if you have access to multiple.
5. Configure your fields, date range, and filters.

## Available data

**CRM objects:**

- **Contacts** — name, email, phone, lifecycle stage, lead status, create date, last activity date, associated company, owner, custom properties
- **Companies** — company name, domain, industry, number of employees, annual revenue, country, lifecycle stage, create date, associated contacts
- **Deals** — deal name, deal stage, pipeline, amount, close date, create date, deal owner, associated contacts and companies
- **Activities** — calls, emails, meetings, notes, tasks (engagement data)

**Marketing:**

- Email campaigns — sends, opens, clicks, bounces, unsubscribes
- Forms — submissions, conversion rates
- Lists — contacts per list, list membership

## Known issues

HubSpot queries can be slower than other connectors due to API rate limits and large CRM datasets. For large portals with hundreds of thousands of contacts, queries may time out.

**To avoid timeouts:**

- Use date filters to limit the query to a recent time window.
- Create a [Cache Data Store](https://windsor.ai/documentation/troubleshooting/understanding-cache-data-store-and-query-cache.md) destination task to pre-load data, then query the cache.
- Request only the fields you need; avoid selecting all available fields.

For a full list of common issues and their fixes, see [HubSpot connector: common issues and how to fix them](https://windsor.ai/documentation/troubleshooting/hubspot-connector-common-issues-and-how-to-fix-them.md).

## Troubleshooting

- [HubSpot connector: common issues and how to fix them](https://windsor.ai/documentation/troubleshooting/hubspot-connector-common-issues-and-how-to-fix-them.md)
- [How to fix authentication errors](https://windsor.ai/documentation/troubleshooting/how-to-fix-authentication-errors.md)
- [How to fix data discrepancy issues](https://windsor.ai/documentation/troubleshooting/how-to-fix-data-discrepancy-issues.md)
