Hubspot Forms API

I am working on the hubspot Forms API.
I created a form using the Create Forms API that includes the following fields: first name, last name, email, phone number (contact group), company name, street address, city, state, postal code, annual revenue, number of employees (company group), and deal name (deal group). The form was created successfully and is visible in the account.
However, when I submit values to the form using the Form Submission API, only the contact-related fields are being created or updated. Although I am including the company and deal field values in the API request, those values are not being processed. This is the issue I am facing.
Could you please advise on the correct approach to ensure that company and deal fields are created or updated through the Form Submission API?

Hey, @RSingh358 :waving_hand: Can you include an example request? That might help our community members better troubleshoot along with you. — Jaycee

Hi @RSingh358

You are not doing anything wrong. HubSpot’s Forms and Form Submission APIs are fundamentally contact centric.

Even if you put company and deal fields on the form definition, the submissions endpoint is designed to create or update the contact record only, then expose those values so you can act on them with workflows or other APIs afterward (Accounts Dashboard | HubSpot )

To get the behavior you want, treat the form submission as step one, then create or update the company and deal in step two. The native way is a contact-based workflow with enrollment trigger “Contact submitted form X” that uses actions like “Create record” or “Set property value” on associated companies and deals. That pattern is how HubSpot expects you to build “form > company/deal” automation (Automate form submission actions )

The API way is similar but fully custom: receive the submission, then call the CRM v3 Companies and Deals APIs to create or update those objects and associate them back to the contact.

If those contacts, companies and deals also need to stay in sync with another CRM or billing system, Stacksync keeps the multi object data aligned in real time so what comes from the form is reflected across all systems, not just inside HubSpot. Hope this helps.

Hi @RSingh358

Using the forms API, you can’t update the deal and company properties. The best approach here will be to use a workflow that triggers when the form is submitted and then updates the deal or company property inside workflow.

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.

Thanks!