Now live, a new form submission endpoint is being released for the Forms API. The new endpoint now supports both CORS AJAX submissions and the new forms-related GDPR functionality. The existing form submission endpoint will continue to function as usual.
With the release of the new form submission endpoint, integrators can take advantage of two powerful new features:
- CORS AJAX Support: Previously, integrators that wanted to submit form data to the Forms API needed to implement custom scripts in a seperate server to proxy the form submission from their custom form to the HubSpot API. While HubSpot APIs that require authentication still don’t support CORS AJAX requests, the new form submission endpoint enables integrators to cut out the middle man (i.e. server-side scripts) and submit their custom forms directly to the Forms API.
- GDPR Functionality: The new form submission endpoint also allows integrators to take advantage of HubSpot forms’ new [notice/consent](https://knowledge.hubspot.com/articles/kcs_article/forms/how-do-i-add-notice-and-consent-information-to-my-hubspot-form-or-lead-flow features). The
legalConsentOptionsfield is used to indicate that the visitor submitting the form provided their consent for communications and processing. The details included in this field are described in the endpoint’s documentation (see below).
When is this happening?
This feature is currently live; integrators can take advantage of the new form submission endpoint immediately. Check out the documentation for this endpoint here.The existing form submission endpoint will continue to function as usual.
Please don’t hesitate to post any questions or concerns in the comments below.