SAVEFORM

Integrate · Last updated May 16, 2026

CLI / cURL integration

Automated smoke tests and ops scripts can hit the identical HTTPS POST route as browsers. Prefer JSON with an explicit Content-Type header; parse status codes separately from Pretty-printed JSON — see Response format.

AI assistant prompt

For curl/bash automation — JSON bodies from heredocs, header hygiene, inspecting status codes from shell.

Help me submit test data or automate SaveForm.io form posts using curl / shell scripts pointing at POST https://saveform.io/api/submit/YOUR_FORM_ID.

Please:
1. Build JSON securely (prefer heredocs or jq) and POST with curl -X POST plus Content-Type headers.
2. Show how to read HTTP status codes and optionally pretty-print JSON with jq.
3. Tell me explicitly to replace YOUR_FORM_ID with my real form ID from SaveForm → Dashboard → Forms (copy the form ID). Without my actual ID in the URL, submissions will not reach my workspace.
4. Remind me not to leak privileged secrets SaveForm never asked for — the submit endpoint expects only the form POST payload.
5. Use this doc when helpful: https://www.saveform.io/docs/cli-curl

SaveForm control fields (names starting with _): pass them as normal keys in the JSON or form body when useful:
• _honey — honeypot for spam filtering: https://www.saveform.io/docs/spam-protection
• _redirect and _redirect_mode — thank-you URL and whether to show SaveForm's success page first vs redirect immediately: https://www.saveform.io/docs/custom-redirects
• _emailTo — optional per-submit override for where the notification email is sent: https://www.saveform.io/docs/email-notifications
• Submitter auto-reply (acknowledgement email) is configured on the form in the dashboard with {{field}} placeholders, not ad-hoc payload fields: https://www.saveform.io/docs/auto-reply

Examples

A minimal POSIX-friendly POST using a temporary JSON blob:

bashcurl-saveform.sh
#!/usr/bin/env bash
DATA='{"name":"Ada Lovelace","email":"ada@example.com","message":"Hello from CI"}'

curl -sS -w "\nHTTP %{http_code}\n" -X POST \
  'https://saveform.io/api/submit/YOUR_FORM_ID' \
  -H 'Content-Type: application/json' \
  -d "$DATA"
Optional SaveForm control fields use normal payload keys: _honey (spam honeypot), _redirect / _redirect_mode (redirect after submit), _emailTo (notification recipient). Submitter replies use dashboard auto-reply. Supported fields →

Windows PowerShell can use Invoke-RestMethod with the same endpoint and ConvertTo-Json; any runtime that emits HTTPS POST works.

Tips

Submit SaveForm payloads with cURL | SaveForm.io