What is a form endpoint?
A form endpoint is the web address a form sends its data to: the URL in the form's action attribute.
Every form needs somewhere to send its data. That destination is the endpoint. In HTML it is the value of the action attribute; in JavaScript it is the URL you pass to fetch.
An endpoint from a form backend is unique to one form. Anything posted to it is saved as a submission of that form. The address is not a secret and is safe to put in a web page: it can only receive submissions, not read them.
An endpoint usually accepts an ordinary form post, a multipart post for file uploads, and JSON. A browser form post is answered with a redirect to a thank-you page; a JavaScript request that asks for JSON gets a JSON result instead.
javascript
await fetch('https://formtango.com/f/YOUR_FORM_ID', {
method: 'POST',
headers: { Accept: 'application/json' },
body: new FormData(form),
});