My client gives me an API link with the key init and he want thats all the form submission send data to that API link, how i can do that? I am using webflow form block
Hi Muhammad,
It depends entirely on what the API needs, and the nature of the link.
If you’re just pushing raw FORM POST data directly to an unsecured API endpoint, you can just paste that URL into the Form’s Action field. In that case it will get everything including spam.
If you the data needs to be modified, prepared, or if the API endpoint requires e.g. a Bearer token in the request header, or contains a private API key in the querystring then you can setup an automation in-between that takes form submissions, performs any modifications and then calls the API.
Make and Zapier are 2 of the most popular automation platforms for Webflow.
In the second approach;
- The form data is sent from Webflow’s Data APi webhook to the automation
- You can use all of Webflow’s anti-SPAM defenses
- The form action field is left blank