Before You Start
- Create and approve a WhatsApp template in WAPI.
- Decide whether you need API-only access or HubSpot event webhooks.
- Use a safe HubSpot contact or deal and a safe WhatsApp-capable phone number for testing.
Choose the Correct Connection Method
| Method | Use it when |
|---|---|
| Service Key | You 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 Secret | You need HubSpot webhook subscriptions such as Contact Created, Contact Updated, Deal Created, or Deal Updated to trigger WAPI automations. |
| Developer Project OAuth | You are using HubSpot developer-platform OAuth and can manage the project through CLI/developer setup. |
Add a HubSpot Webhook Account
- Open Integration Marketplace > HubSpot > Accounts.
- Click Add Account.
- Choose the token type that matches your test.
- For a webhook event test, use Private App Token with HubSpot App Secret or OAuth, not Service Key only.
- If HubSpot asks for Target URL before the WAPI account is saved, copy the preview URL from the WAPI drawer.
- After saving the account, use the final Webhook URL from the saved account row as the source of truth.
Configure HubSpot Webhook Subscriptions
- In HubSpot, open the app webhook settings.
- Paste the account-specific WAPI HubSpot Webhook URL as the Target URL.
- Create subscriptions for the object and event you want to test, such as Contact Created or Deal Created.
- Save the HubSpot app/webhook settings.
- Wait a few minutes if HubSpot says webhook settings may be cached.
Create the WAPI Rule
- Open HubSpot > Mappings/Rules & Jobs.
- Click Add Rule.
- Select the HubSpot account that has webhook support.
- Choose a HubSpot event such as Contact Created, Contact Updated, Deal Created, or Deal Updated.
- Choose Send WhatsApp template as the action.
- 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.
- Select the approved template and map every variable to HubSpot fields.
- Save the enabled rule.
Create or Update a HubSpot Record
- Create or update one matching HubSpot contact, company, deal, or ticket.
- Make sure the selected recipient field has a WhatsApp-capable phone number when the message should go to the record owner/customer.
- Return to WAPI and open HubSpot > Recent Activity.
- Confirm the HubSpot webhook event appears as processed.
- Open Mappings/Rules & Jobs and confirm Job History shows the processed rule.
- Confirm the WhatsApp message arrives when the rule action is Send WhatsApp template.
Test Inbound WhatsApp Lead Sync Safely
- Open HubSpot > Settings.
- Keep inbound WhatsApp lead sync disabled unless this HubSpot account should receive WhatsApp-originated leads.
- If enabling it for testing, use Sync only the first message from a new sender or a selected tag filter.
- Send one safe inbound WhatsApp message that matches the filter.
- Confirm WAPI creates or updates the HubSpot contact as expected.
- 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
- Do not use a Service Key-only account for HubSpot-created webhook events.
- Confirm the saved account row Webhook URL is the URL configured in HubSpot.
- Confirm the HubSpot app secret in WAPI matches the HubSpot app.
- Confirm the HubSpot webhook subscription object and event match the WAPI rule event.
- Confirm the HubSpot record has the phone field selected in the WAPI rule.