Skip to content

Quickstart

Follow these steps to connect a form to SubmitOwl and verify that submissions reach your inbox.

  1. Open the SubmitOwl dashboard and create a new form.
  2. Copy its endpoint URL: https://api.submitowl.com/f/FORM_ID.

Your FORM_ID is public and safe to place in HTML and client-side code.

Paste either the plain HTML form or the fetch example below, then replace FORM_ID with your form’s ID.

<form action="https://api.submitowl.com/f/FORM_ID" method="POST">
<label>
Name
<input type="text" name="name" required />
</label>
<label>
Email
<input type="email" name="email" required />
</label>
<label>
Message
<textarea name="message" required></textarea>
</label>
<input
type="text"
name="_gotcha"
tabindex="-1"
autocomplete="off"
aria-hidden="true"
style="display: none"
/>
<button type="submit">Send</button>
</form>
const response = await fetch("https://api.submitowl.com/f/FORM_ID", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({
name: "Ada Lovelace",
email: "ada@example.com",
message: "Hello from SubmitOwl",
}),
});
const result = await response.json();
// Success: { "ok": true, "id": "01JD..." }
// Error: { "ok": false, "error": { "code": "rate_limited", "message": "Too many requests" } }

Deploy your page or open it locally, fill out the fields, and submit the form once.

  • Standard HTML form posts receive a 303 redirect to your redirect target or the built-in thank-you page.
  • fetch and XHR requests receive JSON.

Open your form in the SubmitOwl dashboard and check the Inbox view. You should see the submitted fields and timestamp.