Submit a form
/v1/forms/{key}/submissionsSubmit answers for a published form. Answers are validated against the form's own definition, so fetch the definition first and post back matching field ids.
Bot check. Render the organiser's own Cloudflare Turnstile widget in your form and send its token as turnstileToken. The organiser creates the widget in their Cloudflare account for their website's domains and saves its keys in Grofomo under Settings, Developers; the token must come from a page on the domain the request is sent from. Once the organiser has saved a widget, a call without a valid token is refused with 400 turnstile_failed; until then no token is needed. Your publishable key, the organiser's domain allowlist and a rate limit gate it too.
404 not_found for no visible reason.turnstileToken. The organiser creates the widget in their own Cloudflare account, for their website’s domains, and saves its site key and secret key in Grofomo under Settings, Developers. Once they have, a call without a valid token is refused with 400 turnstile_failed; until then no token is needed.Request
curl -sS \
-X POST \
-H 'X-Grofomo-Key: pk_live_YOUR_PUBLISHABLE_KEY' \
-H 'Content-Type: application/json' \
-d '{"answers":{"full_name":"Alex Doe","email":"alex@example.com","shifts":["friday-evening","saturday-morning"]}}' \
'https://api.grofomo.com/v1/forms/volunteer-signup/submissions?surface=web'Path parameters
keystringrequired- The form's key. Example: `volunteer-signup`.
Query parameters
surface'web'required- Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404. Example: `web`.
Response
{
"apiVersion": 1,
"data": {
"ok": true
}
}oktrueverificationobjectmay be absentverification.email"sent" | "not_needed" | "failed"verification.phone"sent" | "not_needed" | "failed" | "unavailable"verification.phoneHintstring | null
Errors
turnstile_failedHTTP 400- The organiser has saved a Turnstile widget in Grofomo and the call carried no valid token from it.
unauthorizedHTTP 401- No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.
origin_not_allowedHTTP 403- Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.
not_foundHTTP 404- No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.
bad_requestHTTP 400- An answer did not match the form definition.
Notes
- Rate limited to roughly 30 requests per minute per caller. Guidance, not a contract: see caching and rate limits.
Cache-Control: no-store