Skip to content
SubmitYourForm
Docs

Submit API error codes

What POST /f returns, and how to fix each problem.

Response shape

Requests sent as JSON (or with Accept: application/json) get a JSON body. Every error has a stable error.code you can switch on; the message may change.

{
  "ok": false,
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "Some fields are missing or invalid.",
    "fields": [ { "field": "email", "code": "type", "message": "Email must be a valid email address." } ],
    "docs": "https://…/docs/errors#VALIDATION_FAILED"
  }
}

Successful JSON requests return 200 with ok: true, the submission id, and held: true when the form's monthly limit is reached and delivery is delayed. Plain HTML forms are redirected (303) to your thank-you page.

Codes

CodeHTTPMeaningHow to fix
NO_DATA 400 No data submitted. Send at least one field (form-encoded, multipart or JSON).
INVALID_PAYLOAD 400 Invalid JSON payload. Send a JSON object, e.g. {"email":"a@b.com"}, with Content-Type: application/json.
UNSUPPORTED_CONTENT_TYPE 400 Unsupported content type. Use application/x-www-form-urlencoded, multipart/form-data or application/json.
INVALID_FORM_KEY 400 Invalid form key. Copy the form key from your form's Setup page. Send it as the _form_key field or in the URL: /f/{key}.
FORM_DISABLED 400 This form is not accepting submissions. Re-enable the form in Settings → Advanced options.
WORKSPACE_SUSPENDED 403 Workspace is suspended. Contact support.
RATE_LIMITED 429 Too many requests. Please try later! Slow down; limits are per IP per form per hour and per workspace per minute.
SERVER_SIDE_NOT_ALLOWED 403 Server-side submissions are not allowed on this plan. Server-to-server submissions (no browser Origin) need Growth or a higher plan. Submit from the visitor's browser instead, or upgrade (the REST API also needs Growth or above).
DOMAIN_NOT_ALLOWED 403 Domain not allowed. Add the site's host under Settings → Spam & security → Restrict to domains.
QUOTA_EXCEEDED 400 Monthly submission limit reached. Upgrade the plan, buy an overage pack, or set the over-limit policy to Hold in Billing.
PLAN_FEATURE_REQUIRED 400 This feature requires a paid plan. Upgrade in Billing, or remove the field that uses the feature.
INVALID_REDIRECT 400 Redirect URL must be an absolute https:// URL. Use a full https:// address in the redirect field.
CAPTCHA_FAILED 400 Captcha verification failed. Make sure the captcha widget is on the form and its token is sent.
TOO_MANY_FIELDS 400 Too many fields (max 100). Send at most 100 fields.
PAYLOAD_TOO_LARGE 400 Submission payload exceeds 64 KB limit. Keep text fields under 64 KB in total; send large content as file uploads.
FILE_TOO_LARGE 400 A file exceeds the size limit. Files sent with the form can be up to the size set in the form's Settings → Spam & security (max 5 MB); use the upload API for files up to 25 MB.
FILE_TYPE_NOT_ALLOWED 400 This file type is not allowed. Allowed types are set in the form's Settings → Spam & security. Executables, scripts, HTML and SVG files are always blocked.
STORAGE_QUOTA_EXCEEDED 400 Workspace file storage quota exceeded. Delete old submissions with files or add a storage add-on.
VALIDATION_FAILED 422 Some fields are missing or invalid. See error.fields for each problem; rules are set in the form's Settings → Fields & validation.

Field error codes (VALIDATION_FAILED)

  • required — the field is missing or empty (or an unchecked required checkbox).
  • type — not a valid email, phone, number, URL, date or checkbox value.
  • min_length / max_length — too short or too long.
  • min / max — a number outside the allowed range.
  • pattern — doesn't match the form's pattern.
  • option — not one of the allowed choices.

Testing without using your quota

Send _test=true as a field, post to /f?test=1, or send the header X-SYF-Test: 1. Test submissions are delivered but don't count towards the monthly limit (30 per hour per form). Every request, accepted or not, appears for 7 days in the form's Setup → Recent requests.