For AI agents: the complete documentation index is available at /docs/llms.txt, the full documentation bundle is available at /docs/llms-full.txt, and this page is available as Markdown at /docs/api/keys.md.

Project API keys

Use project API keys when submitting to FormRoost from a backend server, job worker, or serverless proxy that does not include a browser Origin header.

Environments and prefixes

Keys are scoped to a single project and environment:

  • fr_sandbox_... — authenticates POST /s/v1/sandbox/{submissionId}
  • fr_production_... — authenticates POST /s/v1/production/{submissionId}

Pass the key in the HTTP Authorization header:

Authorization: Bearer fr_production_REPLACE_ME

Security rules

  • Keep API keys strictly on servers and edge functions—never embed fr_... secrets in browser JavaScript, HTML templates, or mobile apps.
  • Browser submissions authenticate via your form's Allowed origins list instead of an API key.
  • Optional expirations can be attached when creating or rotating a key. Expired or revoked keys immediately return 401 (server_authentication_required).

Rotating a key

  • Active key limits: 2 active keys per project environment on Free; 10 active keys per project environment on paid plans (Starter, Growth, Agency, Enterprise).
  • Zero-downtime rotation: Click Rotate on a working key and choose an overlap window (for example, 1 hour, 24 hours, or 7 days) so both keys work while you roll secrets out. Once rotated, wait for the overlap window to end or revoke the older key before starting another rotation (api_key_overlap_active).
  • Creating, rotating, or revoking API keys in the portal requires recent password confirmation (recent_authentication_required if your session hasn't verified recently).