HTML contact form without a backend
Submit directly from your website with a standard HTML form and no client-side JavaScript.
Copy your form endpoint
Create an Infraly account, open Forms & APIs, and create a Development form. Copy its full endpoint URL. In the example below, replace YOUR_API_ORIGIN/api/forms-and-api/f/YOUR_FORM_SLUG with that URL; these are placeholders, not a live endpoint. Your static website keeps its existing hosting and styling.
Add the form
Set method to POST and action to your copied form endpoint. The browser sends application/x-www-form-urlencoded by default. Field names determine how values appear in the lead record.
<form action="https://server.infraly.online/api/forms-and-api/f/YOUR_FORM_SLUG" method="POST">
<label for="name">Name</label>
<input id="name" name="name" autocomplete="name" required />
<label for="email">Email</label>
<input id="email" name="email" type="email"
autocomplete="email" required />
<label for="message">Message</label>
<textarea id="message" name="message" required></textarea>
<input type="text" name="_gotcha" tabindex="-1"
autocomplete="off" hidden />
<button type="submit">Send message</button>
</form>Choose what happens next
Without a redirect, a successful native browser submission displays the API confirmation page. To use your own thank-you page, open the form details and save a Redirect URL before publishing.
The redirect is configured on the form. A hidden _next input does not control redirects in the current API. Use a full HTTPS URL for a thank-you page hosted on your website; a relative redirect is resolved against the API host.
Supported request formats
Use the default URL-encoded form submission or send JSON with JavaScript. The current server does not parse multipart uploads, so file uploads and forms with enctype=multipart/form-data are not supported.
| Content type | Use |
|---|---|
application/x-www-form-urlencoded | Native HTML forms |
application/json | JavaScript and server integrations |
multipart/form-data | Not supported |
Validate, test, and go live
The required and email input attributes provide browser validation. Browser validation can be bypassed. Infraly field definitions do not enforce the full required-field schema at ingestion; validate required values in a server integration you control when strict validation is needed. Keep the honeypot empty, submit one synthetic test, then check Leads and Spam Shield in the same workspace and environment.
Before launch, save the exact Production website origin and use a Production form endpoint. A 403 usually means a disabled form or an origin mismatch; 413 means the payload exceeds the 1 MB parser limit; 429 means you should wait before trying again. Do not add file inputs: multipart uploads are not supported.
Infraly documentation