How should consent fields be sent with the v2 forms API and multipart/form-data?


We use the v2 forms API to be able to forward to forms from third-party sites. To be able to send attachments, we use the multipart/form-data content type. The new "ajax" forms API has docs on legal/consent fields, but the v2 docs have none. How are those fields supposed to be sent to that endpoint?

For reference:


Hi @Lars-Erik,

There are currently no plans to support the legal/consent options on this version of the Forms API endpoint. If you need to set this data via API, you will need to switch to the AJAX version.


How do files work with the AJAX version?


hello can you help mes for solve proplem for my site web