I am trying to post data using AJAX.
The docs describes a method here. But that is mainly for jQuery.
I have also looked at this url, which also uses jQuery.
But from what I understand, the "action" parameter in <input type="hidden" name="action" value="freeform/api/form">
is where the data is sent. But if I send data to that URL, I get a 404.
How do I properly submit a form using AJAX?