Only available for Node.js. This is a read-only datasource.
Basic usage
Configuration options
Access token
Create a Private App in HubSpot to get an access token:- Go to Settings → Integrations → Private Apps in your HubSpot account
- Create a new Private App
- Grant necessary scopes (contacts, companies, deals, tickets, etc.)
- Copy the access token
Rate limiting
The datasource includes built-in rate limiting using Bottleneck:- Search API: 4 requests per second
- Standard API: 100 requests per 10 seconds
Custom object configuration
Include custom HubSpot objects in your Forest:Supported objects
The datasource automatically includes these standard HubSpot objects:- companies - Company records
- contacts - Contact records
- deals - Deal pipeline records
- line_items - Product line items
- products - Product catalog
- quotes - Quote records
- tickets - Support ticket records
- owners - HubSpot user accounts
Read-only datasource
This datasource is read-only. You can:- Browse records
- Search and filter
- View relationships
- Export data
- Create new records
- Update existing records
- Delete records
Filtering capabilities
The datasource supports filtering with these operators:Equal- Exact matchNotEqual- Exclude matchesIn- Match any value in listLessThan,GreaterThan- Numeric/date comparisonsContains- Text contains (limited support)
Relationships
The datasource attempts to map HubSpot associations to Forest relationships:- No native relation support - Relationships are flattened or require manual configuration
- Association API constraints - Complex associations may not work correctly
Pagination
Browse large datasets with automatic pagination:- Default page size: 100 records
- Maximum page size: 100 records (HubSpot API limit)
- Automatic “Load More” in Forest UI
Rate limiting and performance
The datasource handles HubSpot rate limits automatically: Search API limits:- 4 requests per second
- Used for filtering and searching
- 100 requests per 10 seconds
- Used for basic CRUD operations
Live Query
This datasource supports Live Query for advanced filtering and segmentation. Learn more about Live QueriesLimitations
- Read-only - No create, update, or delete operations
- No native relations - Relationships require manual configuration
- Search constraints - Maximum 5 filter criteria per query
- Rate limiting - Subject to HubSpot API rate limits
- No real-time sync - Data is fetched on-demand, not cached
- Association complexity - Complex multi-level associations may not work
HubSpot API token scopes
Your Private App token needs these scopes:crm.objects.companies.readcrm.objects.contacts.readcrm.objects.deals.readcrm.objects.line_items.readcrm.objects.quotes.readticketscrm.objects.owners.read
crm.objects.custom.read
Source code
This connector is open source. Browse the code or contribute on GitHub:@forestadmin-experimental/datasource-hubspot-translation.