Submitting a form via API

Hi Everyone

I am very very new to hubspot and our company has just started using hubspot crm. We are currently looking into the forms functionality allowing us to track leads submitted via forms to ensure they are followed up and utilised. We would like to track the submissions of a form on our company website which when submitted, it generates an email to the appropriate member of our sales department. This would be simple enough to build in hubspot or remain in our web platform and tracked by hubspot however the form is within a pop up on the web page and it contains logic which fetches data from a database which is inserted into the email and provided to sales along with the customer entered form content.

As a result of this, it makes tracking this form a little more difficult and the best way I can think of tracking these enquires using hubspot is to keep the form functionality within our web platform however call a hubspot form api (if this exists) and pass in all relevent data so that we can then use the hubspot functionality to track the lead.

Does such an api exist? Where can I find documentation on how to call this api?

Thanks in advance!

@WShillito

Ask and we shall provide :winking_face_with_tongue:

HubSpot Forms API

THANKS!