This endpoint submits validates and saves your form submissions. Assuming you have a form set up with the fields - name, email, phone, enquiry and message, you would send a POST request to this endpoint with the following body
POST
/
api
/
v1
/
submit
Copy
var myHeaders = new Headers();myHeaders.append("Content-Type", "application/json");var raw = JSON.stringify({ name: "John Doe", email: "name@company.com", phone: 1234567890, enquiry: true, message: "This is a test message",});var requestOptions = { method: "POST", headers: myHeaders, body: raw, redirect: "follow",};fetch("https://api.mailpigeon.app/api/v1/submit", requestOptions) .then((response) => response.text()) .then((result) => console.log(result)) .catch((error) => console.log("error", error));