Consent to communicate through the API

forms

#1

Hello,

I have a form that our company uses through the API and now we are addind a "Consent to communicate checkbox", however there is no ID in it for us to fill.

Is this not supposed to be filled through the API?

Thanks in advance


#2

Hi @Nuno_Reis,

Are you referring to the Notice and Consent (GDPR) form field type? These form field types aren't yet accessible via the Forms API. For the time being, you can add a custom checkbox property that allows a contact to opt in, and use that information to update the contact in HubSpot. This functionality will be made available via the Forms API in the coming weeks, so stay tuned to our product readiness page:


#3

This functionality will be made available via the Forms API in the coming weeks, so stay tuned to our product readiness page

Hi @Derek_Gervais. Is this feature available now? I'm not sure where to find the details on the page you linked.


#4

I found it here: https://developers.hubspot.com/docs/methods/forms/submit_form_ajax

Under 'Legal Consent Options'. Should've dug a bit deeper. :slight_smile: thanks