API reference
One public endpoint receives submissions. Everything else (projects, forms, reading submissions) is managed in the dashboard.
Submit
POST https://api.formtura.app/v1/submit/YOUR_FORM_ID
POST https://api.formtura.app/f/YOUR_FORM_ID (alias for plain HTML forms)Request
- Content-Type:
application/json(one object),application/x-www-form-urlencodedormultipart/form-data(text fields only; files are not supported yet). - Accept: send
application/jsonto get JSON back. Without it, plain form posts get an HTML thank-you page or a redirect. - Authorization:
Bearer fsk_…(optional, server-side only). The project's secret key; it replaces the allowed-domains check and the Turnstile challenge. - Turnstile (when switched on for the form): send the token as the
cf-turnstile-responsefield, a JSON field_turnstile, or theX-Turnstile-Tokenheader. - Field names: any, except names starting with
_, which are reserved (for example_gotcha, the honeypot) and not stored.
Success response
{ "success": true, "ok": true, "message": "Thanks! Your message has been sent.", "redirect": "https://…" }redirect appears only when you set a redirect URL on the form. Without the JSON Accept header, a form post gets 303 to that URL, or a thank-you page.
Error response
{ "success": false, "ok": false, "error": "Human-readable message", "code": "machine_readable_code" }Branch on code, show error to people. The full list is on the Errors page. On 429 and spam-check 503 responses, a Retry-After header says how many seconds to wait.
When the monthly quota is used up
The endpoint answers 429 with code: "quota_exceeded", stores nothing, and says when it resets. Retry-After is the number of seconds until then.
Retry-After: 1209600
{ "success": false, "ok": false, "code": "quota_exceeded",
"error": "This form has reached its monthly submission limit.",
"resetsAt": "2026-12-01T00:00:00Z" }Existing submissions stay available and the form stays enabled. See plans and limits or ask for a higher limit from the dashboard.
Other methods
OPTIONS: the CORS preflight; allowed for the form's allowed domains.GET: returns405with a hint; use POST.
Limits
| Body size | 100 KB |
|---|---|
| Fields per submission | 100 |
| Field name length | 100 characters |
| Value length | 10,000 characters |
| List items | 100 |
| JSON nesting | 5 levels |
| Rate limit | 30 requests per minute per IP per form, 120 per minute per IP overall (429 + Retry-After) |
| Monthly quota | Per account. Free beta: 250 submissions a month. Only stored submissions count; it resets at 00:00 UTC on the 1st |
Health
GET /healthz returns 200 when the API is running; GET /readyz also checks the database (503 if it is unreachable). See the status page.