.png)

HubSpot Data Hub Integration Guide
Integrate HubSpot Data Hub with enterprise systems through REST APIs, selected webhooks, batch operations, imports, exports, and file APIs.
HubSpot Data Hub integration options at a glance
HubSpot Data Hub primarily integrates through HubSpot REST APIs for CRM objects, associations, properties, search, files, imports, and batch operations. OAuth 2.0 supports multi-account applications, while private app access tokens suit single-account integrations; API keys are legacy and should not be used for new work. HubSpot also provides webhook notifications for selected event types, GraphQL for specific CMS and HubDB scenarios, and file, import, and export capabilities for data movement. Martini can consume these APIs, receive supported webhook events, orchestrate scheduled reconciliation, transform properties and associations, and expose controlled APIs for downstream applications.
Common HubSpot Data Hub integration patterns
Common HubSpot Data Hub data objects used in integrations
Authentication and security considerations
Authentication options
HubSpot supports OAuth 2.0 for applications serving multiple accounts and private app access tokens for account-specific integrations. API keys are legacy credentials and should not be used for new implementations.
Martini security model
Martini can apply OAuth credentials, refresh tokens, and private app tokens through protected environment configuration and HTTP authentication settings.
- Store client secrets, refresh tokens, and access tokens in protected secrets.
- Request only the HubSpot scopes required by the workflow.
- Keep tokens out of payloads, mappings, source code, and logs.
- Protect webhook endpoints and validate requests according to HubSpot security requirements.
- Limit exposure of contact properties, file URLs, and personal data in monitoring output.
Operational considerations for HubSpot Data Hub integrations
Rate limits and pagination
HubSpot limits vary by account, subscription, application, and API. Handle HTTP 429 responses, server-provided retry information where available, bounded exponential backoff, and concurrency controls. Follow paging cursors and persist progress for long-running synchronizations.
Idempotency and associations
Use stable external identifiers or unique HubSpot properties for upserts. Deduplicate webhook deliveries, store cross-system IDs, and treat object creation, updates, associations, and archive operations as separate concerns where required.
Schema and webhook coverage
Account-specific custom properties, custom objects, pipelines, internal property names, and enumerated values require versioned mappings and validation. Webhooks cover selected subscriptions rather than every object and event, so periodic reconciliation is recommended.
Bulk processing and testing
Track batch and import identifiers, asynchronous status, per-object errors, and reconciliation counts. Test throttling, partial failures, malformed events, scope changes, duplicate delivery, schema changes, and recovery from interrupted checkpoints.
Why use Martini instead of scripts or point-to-point integrations?
Orchestrate more than an API call
Scripts often combine authentication, pagination, mapping, retries, and business rules into code that is difficult to operate and change. Martini provides workflows and APIs for coordinating HubSpot with applications, databases, files, and messaging systems.
Centralize transformation and policy
Martini separates HubSpot-specific properties and associations from canonical target models. Reusable mappings, validation, routing, and error handling make changes easier to test and maintain.
Support real-time and scheduled patterns
Martini can receive supported HubSpot webhook notifications, expose controlled APIs, run scheduled reconciliation, coordinate batch or import jobs, and preserve checkpoints for restartable processing.
Improve operational control
- Apply protected environment configuration and secrets.
- Handle throttling, retries, duplicates, and partial failures consistently.
- Capture correlation IDs, checkpoints, and reconciliation results.
- Reuse integration assets across HubSpot accounts and target systems.