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.

Security & Secret Vault

Call Hubspot API from Client Side Web Application

To solve call hubspot api from client side web application, never execute unauthenticated requests or embed private tokens directly in client bundles. RealComposer acts as a sub-10ms edge gateway running on Cloudflare Workers that securely injects credentials from your Secret Vault, normalizes responses, and prevents unauthorized API usage. Route calls through your RealComposer edge URL to guarantee complete privacy, robust origin validation, and low mobile latency.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Stitch Hubspot Contact with Stripe Payment History

To solve stitch hubspot contact with stripe payment history, never execute unauthenticated requests or embed private tokens directly in client bundles. RealComposer acts as a sub-10ms edge gateway running on Cloudflare Workers that securely injects credentials from your Secret Vault, normalizes responses, and prevents unauthorized API usage. Route calls through your RealComposer edge URL to guarantee complete privacy, robust origin validation, and low mobile latency.

Sub-10ms edgeView Recipe

Related Concepts