Form Endpoint for Static Websites

Integrate contact forms and HTML forms into your static website with our secure form backend. Just point your form to our reliable form endpoint and start receiving submissions in your inbox.

How Our Form Backend Works

  1. 1Register for free and get your unique API key
  2. 2Point your contact form to our secure form endpoint
  3. 3Configure reCAPTCHA to prevent spam (required)
  4. 4Start receiving form submissions in your email

Contact Form Features

  • Secure form backend without server-side code
  • Reliable form endpoint with 99.9% uptime
  • reCAPTCHA spam protection
  • Instant email notifications
  • Custom success/error redirects
  • File attachments support
  • Webhook integrations (Pro)

Contact Form Integration Example

<!-- Complete form with reCAPTCHA and custom fields -->
<form action="https://api.staticforms.xyz/submit" method="POST">
  <!-- Required: Your Static Forms API key -->
  <input type="hidden" name="apiKey" value="YOUR_API_KEY">

  <!-- Enable reply-to functionality -->
  <input type="hidden" name="replyTo" value="@">

  <!-- Anti-spam honeypot field -->
  <input
    type="text"
    name="honeypot"
    style="display: none"
    tabindex="-1"
    autocomplete="off"
  >

  <!-- Form fields -->
  <div class="form-group">
    <label for="name">Name:</label>
    <input type="text" id="name" name="name" required>
  </div>

  <div class="form-group">
    <label for="email">Email:</label>
    <input type="email" id="email" name="email" required>
  </div>

  <!-- Custom field with $ prefix -->
  <div class="form-group">
    <label for="company">Company:</label>
    <input type="text" id="company" name="$company">
  </div>

  <div class="form-group">
    <label for="message">Message:</label>
    <textarea id="message" name="message" required></textarea>
  </div>

  <!-- reCAPTCHA integration -->
  <div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div>
  <script src="https://www.google.com/recaptcha/api.js" async defer></script>

  <!-- Optional redirect URLs -->
  <input type="hidden" name="redirectTo" value="https://example.com/success">

  <button type="submit">Send Message</button>
</form>

Required Setup:

  • Replace YOUR_API_KEY with your Static Forms API key
  • Replace YOUR_SITE_KEY with your reCAPTCHA site key

Features Included:

  • Custom fields with $ prefix
  • reCAPTCHA spam protection
  • Anti-spam honeypot field
  • Reply-to functionality
  • Success page redirect

Ready to set up your form backend?

Create your account now and start receiving contact form submissions in minutes with our secure form endpoint.

Register Now