RealComposer

HubSpot Safe & Unsafe Practices

Direct Answer

HubSpot private app access tokens and OAuth tokens are server-only credentials. Grant only the CRM scopes the integration needs, call HubSpot from a server or edge proxy, and validate the X-HubSpot-Signature-v3 header on webhooks.

Credentials & Where They Belong

Server only
Private app access token

Scoped access to your portal CRM data.

Server only
OAuth client secret

Signs webhook requests and exchanges OAuth codes.

Safe Practices

  • Request the smallest set of scopes

    A contact lookup needs crm.objects.contacts.read, not full CRM write access.

  • Validate webhook signatures

    Recompute the v3 HMAC over method, URL, body, and timestamp before processing events.

  • Request only needed properties

    Pass explicit properties to CRM reads so internal fields stay on the server.

Unsafe Practices

  • Calling HubSpot from browser code with a token

    Visitors can read or export your contacts and deals.

  • Relying on legacy hapikey authentication

    API keys were sunset. Migrate to private apps with scopes.

The RealComposer Pattern

Store HUBSPOT_TOKEN in the vault and expose narrow lookup pipelines that return only the contact or deal properties your UI uses.

START BUILDING FREE

Frequently Asked Questions

Q:Is the HubSpot tracking code a secret?

No. The tracking script and forms embed are public. Private app tokens are the secrets to protect.

Multi-API Aggregation

Merge salesforce contacts with hubspot crm one api

Parallel fetch Salesforce Contact and HubSpot CRM contact into one JSON object. For "merge salesforce contacts with hubspot crm one api", store SALESFORCE_ACCESS_TOKEN, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/merge-salesforce-with-hubspot-api with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Combine mailchimp audience with hubspot contacts

List membership from Mailchimp and CRM lifecycle stage from HubSpot. For "combine mailchimp audience with hubspot contacts", store MAILCHIMP_BASIC_AUTH, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/combine-mailchimp-with-hubspot-contacts with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Aggregate zendesk tickets with hubspot deals

Zendesk open tickets and related HubSpot deal stage in one Retool query. For "aggregate zendesk tickets with hubspot deals", store ZENDESK_API_TOKEN, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/aggregate-zendesk-with-hubspot-deals with an rc_live_ client token.

Sub-10ms edgeView Recipe

Related Concepts