Skip to main content
OSForms uses email and password with a 6-digit email code for verification. Logging in issues a JWT in an httpOnly cookie (ff_token, valid for 7 days). Dashboard endpoints also accept the same JWT as Authorization: Bearer <token>.
For server-to-server access to submissions, create an API key instead of using a login session.

Sign up

captchaToken is only checked when the server has RECAPTCHA_SECRET_KEY set. osforms.com does, so signups there need a valid token with a passing score. Self-hosted installs without the key skip the check. Creates the account and emails a 6-digit code. The account can’t log in until the code is verified.
Each IP gets 5 signup attempts per hour. Failed attempts count toward that limit.

Verify email

On success, sets the ff_token cookie and returns the user:
Codes expire after 30 minutes. A wrong or expired code returns 400.

Resend verification code

Sends a new code:
You can request one every 60 seconds per email. Sooner returns 429 with retryAfter (seconds) in the body. Each IP is also capped at 10 requests per hour; past that you get 429 with Too many code requests. Try again in an hour. and no retryAfter or Retry-After header.

Log in

Sets the ff_token cookie and returns the user:
If the email isn’t verified yet, no cookie is set and the response is { "requiresVerification": true, "email": "..." } (status 200). Verify with the code to finish logging in.

Log out

Clears the ff_token cookie. No body required.

Get current user

Returns 401 if not logged in. For this month’s submission usage, see usage in GET /api/v1/forms.

Update profile

The dashboard uses this during onboarding. Send any of these fields; the rest of the body is ignored: There’s no schema validation on this endpoint beyond the stored field types. Returns the updated user in the same shape as GET /api/auth/me (usecase and refSource aren’t included), or 401 if not logged in.

Google OAuth (Google Sheets)

Google OAuth only connects Google Sheets to a form. It isn’t a way to log in to OSForms.
Requires your login session, and you must own the form. Redirects to Google’s consent screen. Google then redirects to /api/auth/google/callback, which creates a spreadsheet for the form and saves the encrypted OAuth token for the Google Sheets integration. The connection has to be finished within 10 minutes, in the same browser session that started it. Optional query parameters:
  • returnTo: a path on OSForms (must start with a single /) to land on after a new connection, instead of the form’s Integrations tab.
  • reconnect=1: refreshes the OAuth token for an existing Google Sheets integration and keeps writing to the same spreadsheet. Google’s screen preselects the account that created the sheet. Returns 404 if the form has no Google Sheets integration. Reconnects always return to the Integrations tab.