Every form has one public endpoint. It needs no login or key.
POST https://app.atomicity.dev/f/YOUR_FORM_IDThe endpoint never changes, even if the form is renamed. It also answers OPTIONS for browser preflight requests, from any origin.
Request formats
Content-Type |
Fields | Files |
|---|---|---|
application/x-www-form-urlencoded |
Yes | No |
multipart/form-data |
Yes | Yes |
application/json |
Yes | No |
A JSON body is an object of field names and values:
{ "name": "Jane Doe", "email": "jane@example.com", "message": "Hello" }There’s no fixed schema: any field names are accepted. A field sent more than once keeps every value. In a JSON body, an array becomes one value per item, and any other non-text value, such as a number or a nested object, is stored as its JSON text.
Limits
| Limit | Value |
|---|---|
| Fields per submission | 200 |
| Length of a field name | 200 characters |
| Length of a field value | 20,000 characters |
| Size of all fields together | 120 KB |
| Files per submission | 10 |
| Size of one file | 100 MB |
| Size of one submission, files included | 100 MB |
| Posts per visitor, per form | 10 a minute |
Origin check
A browser post must come from https:// on one of the site’s allowed domains, or from http://localhost when the site allows it. Atomicity reads the Origin header, or the origin of Referer when there’s no Origin. A request with neither, such as one from a server or curl, isn’t checked.
Success
The response depends on what the request asks for.
A plain form post gets a 303 redirect to the page after submit: the form’s redirect URL, or its hosted thank-you page.
A request that asks for JSON, by sending Accept: application/json or a JSON body, gets 201:
{
"success": true,
"redirectURL": "https://app.atomicity.dev/thank-you/YOUR_FORM_ID"
}A success means the submission was accepted and queued. Spam scoring, rules, emails, and webhooks happen just after. A submission later held as spam, or dropped by a trap field set to discard, still gets this success, so bots aren’t told they were caught.
Errors
A request that asks for JSON gets { "success": false, "error": "..." }. Any other request gets the message as plain text.
| Status | Message | Cause |
|---|---|---|
400 |
No fields were sent. | The body was empty. |
400 |
Couldn’t read this submission. | The body couldn’t be parsed. |
400 |
The CAPTCHA wasn’t solved. Reload the page and try again. | The form’s CAPTCHA is set to reject, and its token failed or was missing. |
403 |
This form isn’t accepting submissions. | The form is turned off. |
403 |
This website isn’t allowed to send to this form. | The origin isn’t one of the site’s allowed domains. |
403 |
This form isn’t accepting submissions right now. | The site has reached its plan’s limit, or has no plan. The reason is never shown to visitors. |
404 |
This form doesn’t exist. | No form has this ID. |
413 |
This submission is too large. | Over a limit above. Nothing from the post is kept. |
429 |
Too many submissions. Wait a minute and try again. | Over 10 posts a minute from this visitor. Includes a Retry-After header. |
500 |
Couldn’t take this submission. Try again. | A storage or queue failure. Safe to retry. |
503 |
Couldn’t take this submission right now. Try again. | A temporary failure. Safe to retry. |
CORS
Responses carry Access-Control-Allow-Origin: *, with POST and OPTIONS allowed and the Content-Type and Accept headers allowed. The origin check above is what limits which websites can post.
