Quickstart
Follow these steps to connect a form to SubmitOwl and verify that submissions reach your inbox.
1. Create a form and copy the endpoint
Section titled “1. Create a form and copy the endpoint”- Open the SubmitOwl dashboard and create a new form.
- 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.
2. Add the form to your site
Section titled “2. Add the form to your site”Paste either the plain HTML form or the fetch example below, then replace FORM_ID with your form’s ID.
Plain HTML
Section titled “Plain HTML”<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>JavaScript fetch
Section titled “JavaScript fetch”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" } }3. Open the page and submit once
Section titled “3. Open the page and submit once”Deploy your page or open it locally, fill out the fields, and submit the form once.
- Standard HTML form posts receive a
303redirect to your redirect target or the built-in thank-you page. fetchand XHR requests receive JSON.
4. Inspect the submission
Section titled “4. Inspect the submission”Open your form in the SubmitOwl dashboard and check the Inbox view. You should see the submitted fields and timestamp.
Next steps
Section titled “Next steps”- Learn about redirects,
_subject,_replyto, andFormDatain the HTML guide. - Using Astro? See the Astro guide.
- Review all special fields, payload limits, and error codes in the Reserved fields and errors reference.