FormturaDocs

API reference

One public endpoint receives submissions. Everything else (projects, forms, reading submissions) is managed in the dashboard.

Submit

endpoint
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-urlencoded or multipart/form-data (text fields only; files are not supported yet).
  • Accept: send application/json to 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-response field, a JSON field _turnstile, or the X-Turnstile-Token header.
  • Field names: any, except names starting with _, which are reserved (for example _gotcha, the honeypot) and not stored.

Success response

200 OK (Accept: application/json)
{ "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

4xx / 5xx
{ "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.

429 Too Many Requests
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: returns 405 with a hint; use POST.

Limits

Body size100 KB
Fields per submission100
Field name length100 characters
Value length10,000 characters
List items100
JSON nesting5 levels
Rate limit30 requests per minute per IP per form, 120 per minute per IP overall (429 + Retry-After)
Monthly quotaPer 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.