Skip to main content
Free - included on every plan.
For plain HTML forms without JavaScript, /submit supports redirecting the visitor’s browser to a URL of your choice after a successful submission — typically a “thanks for reaching out” page.

Using it

Add a redirect field to your form alongside access_key:
On success, instead of returning the usual 200 JSON body, /submit responds with 303 See Other and a Location header pointing at the redirect URL, so the browser navigates there.

The domain restriction

The redirect URL must be on one of the form’s allowed domains. This stops access_key (which lives in public page source) from being used to turn your form into an open redirector to an arbitrary URL. A redirect outside the allowlist is rejected:

AJAX / JS forms don’t need this

If you’re submitting with fetch (see the React, Next.js, Vue, and Svelte snippets in Framework snippets), skip the redirect field entirely. /submit returns its normal JSON response —
— and you handle the “thanks” state in your own UI instead of a full page navigation.