Calling custom API endpoints on HS form submissions

To create user accounts, we need to capture contact details in Hubspot forms and then send those details to our own account creation system.
However we’ve been unable to do that via HS. Currently we have an imperfect solution where we use Wordpress forms for account creation data as WP calls a custom API endpoint to register the user account.

Is this possible in Hubspot?

@NHarvey2 - you haven’t given very much context here, but its worth looking at two intergation techniques that I have been able to use:

The first one is adding some customization to the form creation script that HubSpot uses. The embed script is revealed as you save a particular form and can be seen in a number of other ways. It’s possible to add additional JS functionality to the form to be executed, for example, an

onFormSubmitted: function($form, data)

function definition. This can be super flexible, but when making API calls, any details of those calls will be exposed in the page source code.

The second approach typically requires Ops Hub functionality, and a workflow that runs for each form submission seen in HubSpot (targted at appropriate form types) Essentially you place your API calls in a Custom Code workflow step and it will execute any time a new contact is created.

Are either of these helpful and worthy of getting more details?

Steve

Thanks for your reply Steve. I don’t think the first solution is an option
due to the security issue around exposed details. And we don’t have the
Ops Hub module for the 2nd solution. We’ll continue to
explore alternative options. I wonder whether the serverless functions are
an option as detailed here
<> ?

@NHarvey2 - I can’t offer any experience in developing serverless functions, although I understand they could be used in a proxy setup.

I believe that they require Enterprise CMS - potentially a lot more expensive than Ops Hub which in my book has become phenominally useful for all kinds of tasks.

Steve

hi @NHarvey2
How you implemented that ? I need to do same, want to send our hubspot form data to our nodejs api endpoint to save it in our DB .
can you please tell how can we achive this ?
Thanks

Hi, we didn’t get around to finding an API solution to this and resorted to
a Zapier solution so unfortunately can’t advise on the API solution.