Endpoint
{slug} is the 12-character ID at the end of your form’s endpoint URL, shown in the Setup tab of the form.
Accepts application/json, application/x-www-form-urlencoded, and multipart/form-data.
HTML form usage
name becomes a key in the stored submission. Repeated names (for example a group of checkboxes) are stored as an array.
If the form has a Redirect URL set, the browser gets a 303 redirect there. Without one, the endpoint answers with the JSON below, so set a redirect URL for plain HTML forms.
API / JSON usage
Accept: application/json) always get JSON back, even when a redirect URL is set.
Response codes
Errors return
{ "error": "<message>" }.
Files
Multipart uploads are accepted, but files are not stored. A file field is saved as a placeholder string such as[File: resume.pdf, 48213 bytes]. If you need attachments, upload them to your own storage and submit the URL as a text field.
Spam protection
- Honeypot: set a Honeypot Field Name in the form’s Setup tab (for example
_gotcha) and add a hidden input with that name. Submissions that fill it get a normal success response but are not stored. - CAPTCHA: Google reCAPTCHA (v2 and v3), hCaptcha, and Cloudflare Turnstile are supported. Send the widget’s token in its usual field:
g-recaptcha-response,h-captcha-response, orcf-turnstile-response. The endpoint picks the verifier from the field name (if bothh-captcha-responseandg-recaptcha-responsearrive, as hCaptcha’s widget sends, hCaptcha wins). Set the secret key withPATCH /api/v1/forms/{id}(recaptchaSecret). It isn’t in the dashboard UI yet, and it must belong to the same provider as the widget. reCAPTCHA v3 tokens scoring below 0.5 are rejected. If the provider doesn’t respond within 5 seconds, the submission is rejected. Tokens are removed before the submission is stored.
CORS
By default any origin can submit. To restrict it, list origins under Allowed Origins in the form’s Setup tab. Requests from other origins get403.
The check only runs when the request sends an Origin header, which browsers do. Requests without one (curl, server-side code) skip it, so allowed origins stop other websites from posting to your form but aren’t authentication.
Rate limiting
Default: 10 requests per minute per IP, per form. You can change it withPATCH /api/v1/forms/{id} (rateLimit, 1 to 1000). It isn’t in the dashboard UI yet.
When rate limited, the response includes a Retry-After header with the seconds until the limit resets.
The counter is kept in memory on each server instance. On serverless hosting like osforms.com, requests can land on different instances, so treat the limit as best-effort rather than an exact cap.
Monthly limit
Each account can store 100 submissions per month (UTC calendar month). Past that, the endpoint returns403 until the 1st.