Submit from a server
Create a key in the project's API keys for the target environment. Copy the secret when it is shown. Keep it in your server's secret store. Keys only write submissions; they do not authorize management API calls.
Set these variables in your server environment. All values below are placeholders.
Omit Origin. Production requires Authorization: Bearer ... without it. The key must belong to the form's project and environment, and must not be expired or revoked. An invalid production key returns 401.
For sandbox, change the URL to /s/v1/sandbox/sub_REPLACE_ME and use a sandbox key (fr_sandbox_key_REPLACE_ME.REPLACE_ME). Sandbox permits development requests without a key. A syntactically valid sandbox key is checked when supplied.
curl
Node
Save as submit.mjs. Run with node submit.mjs. This uses built-in fetch.
Python
Save as submit.py. Run with python3 submit.py. Only the standard library is needed.
Success returns 201. Production needs a published, enabled form. Match its schema and spam controls. For safe retries after a timeout, add an Idempotency-Key of 8–200 characters and reuse it with the same payload. Records last 24 hours; changed content under the same key returns 409. See errors and key rotation.