FormDexSecure form operations
Try FormDex
FormDexSecure form operations

A product by MeshDex

FormDex is a secure form operations platform for collecting, validating, and routing website submissions. Manage protected endpoints, email notifications, webhook delivery, and submission history from one reliable workspace.

Product

PlatformPricingDocumentation

Access

LoginRegisterReset password

Legal

Privacy PolicyTerms of ServiceRefund PolicyContact Us
  1. Home
  2. Documentation
  3. Integration
  4. Test a FormDex form with cURL
Docs home

Integration guide

Test a FormDex form with cURL

Validate credentials and payload rules from a terminal without confusing temporary Test mode with a production browser integration.

Step by step

1

Enable temporary Test mode

Use it only while testing from cURL or Postman. It bypasses allowed-origin enforcement; disable it before production traffic.

2

Send JSON

Pass Content-Type: application/json and X-API-Key. Quote the JSON carefully so your shell does not alter it.

3

Read the status and body

Use --include to see the HTTP status. A 2xx response confirms acceptance; 4xx responses describe authentication, credit, protection, or validation failures.

4

Test validation intentionally

Try one invalid request to confirm required fields and formats are enforced, but do not repeatedly consume rate-limit capacity.

5

Restore production security

Disable Test mode, configure allowed origins, and complete one final browser submission from the real website.

Honeypot in this integration

Where it belongs and who validates it

A honeypot is a browser bot trap, so it is not required for a controlled cURL test. Omit it or send the configured key as an empty string. Never send a non-empty test value unless you are intentionally verifying the spam rejection path.

Read the honeypot fundamentals →

Working example

JSON request with response headers

curl --include --request POST   "https://YOUR_FORMDEX_DOMAIN/api/forms/FORM_ID"   --header "Content-Type: application/json"   --header "X-API-Key: YOUR_API_KEY"   --data '{
    "email": "[email protected]",
    "message": "Hello from a controlled test"
  }'

Troubleshooting

401

The API key is missing, outdated, or belongs to another form.

400 validation error

Add required schema fields or correct their format.

400 captcha failure

Server-only cURL cannot complete an interactive widget; use an appropriate test flow.

429

Wait for the rate-limit window instead of retrying in a tight loop.

Before you start

  • • A FormDex endpoint and active API key
  • • Test mode enabled temporarily when origin enforcement would otherwise block terminal requests
  • • A payload satisfying every required schema field
  • • Captcha disabled for server-only testing, or a valid fresh provider token

Production notes

  • • Avoid placing real customer data in shell history during testing.
  • • Do not use -k or disable TLS verification.
  • • A successful test consumes one FormDex credit because it creates a real submission.
View the complete integration overview →