How to Test HubSpot

Test HubSpot account setup, private app webhook events, WhatsApp rules, and inbound lead sync safely.

Last updated

On this page

Before You Start

  1. Create and approve a WhatsApp template in WAPI.
  2. Decide whether you need API-only access or HubSpot event webhooks.
  3. Use a safe HubSpot contact or deal and a safe WhatsApp-capable phone number for testing.

Choose the Correct Connection Method

MethodUse it when
Service KeyYou only need WAPI to call HubSpot APIs. Service Key is API-only and does not send HubSpot-created webhook events to WAPI.
Legacy Private App Token + App SecretYou need HubSpot webhook subscriptions such as Contact Created, Contact Updated, Deal Created, or Deal Updated to trigger WAPI automations.
Developer Project OAuthYou are using HubSpot developer-platform OAuth and can manage the project through CLI/developer setup.

Add a HubSpot Webhook Account

  1. Open Integration Marketplace > HubSpot > Accounts.
  2. Click Add Account.
  3. Choose the token type that matches your test.
  4. For a webhook event test, use Private App Token with HubSpot App Secret or OAuth, not Service Key only.
  5. If HubSpot asks for Target URL before the WAPI account is saved, copy the preview URL from the WAPI drawer.
  6. After saving the account, use the final Webhook URL from the saved account row as the source of truth.

Configure HubSpot Webhook Subscriptions

  1. In HubSpot, open the app webhook settings.
  2. Paste the account-specific WAPI HubSpot Webhook URL as the Target URL.
  3. Create subscriptions for the object and event you want to test, such as Contact Created or Deal Created.
  4. Save the HubSpot app/webhook settings.
  5. Wait a few minutes if HubSpot says webhook settings may be cached.

Create the WAPI Rule

  1. Open HubSpot > Mappings/Rules & Jobs.
  2. Click Add Rule.
  3. Select the HubSpot account that has webhook support.
  4. Choose a HubSpot event such as Contact Created, Contact Updated, Deal Created, or Deal Updated.
  5. Choose Send WhatsApp template as the action.
  6. Choose a HubSpot recipient field such as HubSpot Contact Phone, HubSpot Contact Mobile Phone, or HubSpot WhatsApp Phone. Use Static Phone Number only for a controlled internal test.
  7. Select the approved template and map every variable to HubSpot fields.
  8. Save the enabled rule.

Create or Update a HubSpot Record

  1. Create or update one matching HubSpot contact, company, deal, or ticket.
  2. Make sure the selected recipient field has a WhatsApp-capable phone number when the message should go to the record owner/customer.
  3. Return to WAPI and open HubSpot > Recent Activity.
  4. Confirm the HubSpot webhook event appears as processed.
  5. Open Mappings/Rules & Jobs and confirm Job History shows the processed rule.
  6. Confirm the WhatsApp message arrives when the rule action is Send WhatsApp template.

Test Inbound WhatsApp Lead Sync Safely

  1. Open HubSpot > Settings.
  2. Keep inbound WhatsApp lead sync disabled unless this HubSpot account should receive WhatsApp-originated leads.
  3. If enabling it for testing, use Sync only the first message from a new sender or a selected tag filter.
  4. Send one safe inbound WhatsApp message that matches the filter.
  5. Confirm WAPI creates or updates the HubSpot contact as expected.
  6. If Recent Activity shows suppressed WAPI-originated HubSpot webhook events, that means WAPI ignored HubSpot's immediate echo to prevent duplicate WhatsApp sends.

What to Check if It Fails

  1. Do not use a Service Key-only account for HubSpot-created webhook events.
  2. Confirm the saved account row Webhook URL is the URL configured in HubSpot.
  3. Confirm the HubSpot app secret in WAPI matches the HubSpot app.
  4. Confirm the HubSpot webhook subscription object and event match the WAPI rule event.
  5. Confirm the HubSpot record has the phone field selected in the WAPI rule.
Next ArticleHow to Test Zoho CRM