Creating Webhook Integration with HubSpot for SMS Notifications

I’m trying to configure a webhook in HubSpot that will trigger an SMS message through Twilio’s API. The setup works perfectly when I test it using Zapier’s webhook functionality, but I’m having trouble getting it to work directly within HubSpot’s webhook system.

Here’s the API endpoint I’m targeting:

https://api.twilio.com/2010-04-01/Accounts/{account_id}/Messages.json

And here are the parameters I’m sending:

"To": "+1555123####",
"From": "+1555987####",
"Body": "Hello from HubSpot"
"Authorization": "Basic {encoded_credentials}"

Can anyone help me understand what might be different about HubSpot’s webhook implementation that’s causing this to fail? Any guidance would be greatly appreciated!

check the placement of your auth header. hubspot needs it in the header section, not in the body. also, set content-type to application/x-www-form-urlencoded since twilio expects form data instead of json.

Had the same issue a few months back with HubSpot and Twilio. The problem’s usually how HubSpot formats the request. You need to structure your webhook as a POST with parameters in the request body as form data - not JSON. Make sure your Authorization header’s properly formatted with your Account SID and Auth Token base64 encoded. Also check the webhook URL in HubSpot - should match exactly what you have but watch for trailing spaces or extra characters. Test the same request format in Postman first to verify it works with Twilio’s API before setting it up in HubSpot.