Errors
Errors come back as JSON (when you send Accept: application/json) with a stable code:
HTTP/1.1 429 Too Many Requests
Retry-After: 12
{ "success": false, "ok": false, "code": "rate_limited",
"error": "Too many submissions. Please wait a moment and try again." }form_not_foundHTTP 404
No form has this endpoint.
Fix: Copy the endpoint again from the form's page; check for a typo or a deleted form.
form_disabledHTTP 403
The form is a draft or disabled.
Fix: Enable the form in the dashboard.
origin_requiredHTTP 403
The form has allowed domains and the request carried no Origin or Referer.
Fix: Submit from a browser on an allowed site, or add your secret key as a Bearer token for server-side calls.
origin_not_allowedHTTP 403
The request came from a site that isn't in the form's allowed domains.
Fix: Add the site's domain under the form's (or project's) allowed domains.
invalid_api_keyHTTP 401
The Bearer token isn't this project's secret key.
Fix: Use the project's secret key (fsk_…); regenerate it if you lost it.
rate_limitedHTTP 429
Too many requests from this address.
Fix: Wait for the number of seconds in the Retry-After header, then retry.
quota_exceededHTTP 429
The account reached its monthly submission limit.
Fix: Wait until the time in resetsAt (00:00 UTC on the 1st) or ask for higher limits. Nothing was stored.
spam_check_failedHTTP 400
The Turnstile token was missing or invalid.
Fix: Include the widget's cf-turnstile-response field; tokens are single-use.
empty_submissionHTTP 400
The submission has no fields.
Fix: Send at least one field.
invalid_payloadHTTP 400
The body couldn't be parsed or holds an unsupported value.
Fix: Send JSON (a single object), form-urlencoded or multipart text fields.
unsupported_media_typeHTTP 415
The Content-Type isn't supported.
Fix: Use application/json, application/x-www-form-urlencoded or multipart/form-data.
payload_too_largeHTTP 413
The body is over 100 KB.
Fix: Send less data.
too_many_fieldsHTTP 400
More than 100 fields.
Fix: Send fewer fields.
invalid_field_nameHTTP 400
A field name is empty or contains forbidden characters.
Fix: Use plain names such as "email" or "first_name".
field_name_too_longHTTP 400
A field name is over 100 characters.
Fix: Shorten the name.
value_too_longHTTP 400
A value is over 10,000 characters.
Fix: Shorten the value.
array_too_longHTTP 400
A list has more than 100 items.
Fix: Send shorter lists.
nesting_too_deepHTTP 400
JSON is nested more than 5 levels deep.
Fix: Flatten the data.
files_not_supportedHTTP 400
The request contains a file upload.
Fix: File uploads aren't supported yet; send text fields only.
internal_errorHTTP 500
Something went wrong on our side.
Fix: Retry; if it persists, check the status page.
Treat 5xx and 429 as retryable (wait for Retry-After). Other 4xx errors mean the request must change before it can succeed.