Getting 404 error when submitting form data to HubSpot API

I’m working with a WordPress site that has a plugin connecting contact forms to HubSpot. When someone fills out a form and hits submit, I keep getting this error message:

Fatal PHP error: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://forms.hubspot.com/uploads/form/v2/XXXXXX/97d44f1e-XXXX-XXXX-XXXX-e4c453843854 resulted in a 404 Not Found response

I’ve hidden the actual URL for privacy reasons. I spent hours looking through GitHub issues and forum posts but most solutions are for custom code implementations, not plugin issues like mine. Does anyone know what might be causing this 404 response? What additional details should I share to help troubleshoot this problem?

Your plugin might be hitting the old v2 forms API endpoint. HubSpot’s been moving forms to newer API structure, and tons of older plugins still call the legacy endpoints that throw 404s. Had this exact issue with a client - form worked perfectly for months, then just died. Fixed it by updating the plugin to the latest version that supports the current API. If there’s no update available, switch to a different HubSpot plugin. Quick way to check: grab the current endpoint format from HubSpot’s dev docs and see what your plugin’s actually calling.

had a similar issue with my client’s site few weeks back. turns out the hubspot form got deleted somehow, but the plugin still tried to submit to the old link. check if the form actually exists in your hubspot portal - they sometimes get auto-deleted after inactivity or account cleanups. also, verify your portal ID didn’t change if you updated anything.

This exact error drove me crazy for days until I figured out it was my HubSpot subscription. When my trial ended and I dropped to the free plan, several forms became unreachable through the API - even though they still showed as active in the dashboard. You get the 404 because free accounts can’t access certain form API endpoints, and HubSpot doesn’t make this clear anywhere. Check your subscription status and form limits. If you just changed plans or your trial ran out, you’ll probably need to recreate the forms or upgrade to get API access back.

Same thing happened to me last month. That 404 usually means HubSpot can’t find the form at that endpoint. Check the form ID like others mentioned, but also make sure the form’s still published and active in your dashboard. I’ve seen forms get accidentally unpublished or moved to different domain configs. Also check if your HubSpot account got migrated or if your portal subdomain changed. Try creating a fresh form to see if it’s the plugin config or just that specific form. Turn on WordPress debugging too - the plugin logs might show more detailed errors.

I encountered a similar issue with my WordPress site’s HubSpot form integration. The 404 error often indicates that the form ID or the endpoint you are using might be incorrect or outdated. It’s crucial to confirm that the form ID corresponds to the correct one in your HubSpot portal, as these can sometimes become invalid without notice. Additionally, check if your API key has recently changed or expired, and ensure that your portal ID matches your HubSpot account. In my case, recreating the form and adjusting the plugin settings resolved the issue.