Skip to main content
Every Formbase form is identified by a unique ID. Your submit endpoint is always the base URL of your Formbase instance plus /s/<form-id>. For the hosted service:
For self-hosting:

What the endpoint accepts

Formbase accepts the formats that browsers and APIs commonly send:
  • multipart/form-data (for file uploads)
  • application/x-www-form-urlencoded (standard HTML forms)
  • application/json (server submissions and API-style posts)
The same /s/<form-id> path is used for both POST submissions and the built-in success page. Browser posts return a 303 redirect to that page.

Example submissions

index.html
Use enctype="multipart/form-data" when uploading files.

CORS and preflight

Formbase responds to OPTIONS preflight requests on /s/<form-id> and allows cross-origin POSTs by default. This makes it easy to post from any frontend.