

📨 API Documentation: Submit Form
Endpoint: POST /api/v1/form-submission
Required Headers:
x-api-key: Your API keyx-form-key: Your Form keyContent-Type:application/json
Body Fields: name, email, subject, message
💻 Code Examples
fetch("https://safesubmit.neerajprajapati.in/api/v1/form-submission", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY_HERE",
"x-form-key": "YOUR_FORM_KEY_HERE"
},
body: JSON.stringify({
name: "John Doe",
email: "john@example.com",
subject: "Form Submission",
message: "Hello, this is a test message."
})
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error("Error:", err));📦 Example Response
{
"success": true,
"message": "Form submitted successfully"
}