Forms AJAX Submission Endpoint
Announced: May 25, 2018
AJAX Form Submission endpoint released
What’s happening?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 separate 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 features. The `legalConsentOptions` field 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.
Questions? Join the discussion here or https://help.hubspot.com/