Can you send me a link to the form you're referring to in HubSpot so that I can take a closer look? Also, I'm not particularly familiar with Ruby; are the form fields (email, firstname, etc.) being put into a JSON object? They should be URI encoded fields, since the endpoint doesn't accept JSON.