---
title: "Rate Limiting"
description: "Current request rate limits in Formbricks"
icon: "timer"
---

Formbricks applies request rate limits to protect against abuse and keep API usage fair.

Starting with Formbricks v5, rate limiting is split across two layers:

- Envoy Gateway for public and API-key routes that can be enforced at ingress
- The application server for remaining session-authenticated routes, server actions, and other flows Envoy does
  not currently cover

<Warning>
  Formbricks v5 removes application-level rate limiting for several routes that are now expected to be
  protected by Envoy Gateway. If you self-host Formbricks without Envoy or an equivalent edge rate limiter,
  those routes will no longer be throttled by the application server after upgrading.
</Warning>

<Info>
  For the full self-hosted upgrade checklist, use this page together with the
  [v5 migration guide](/self-hosting/advanced/migration#v5).
</Info>

Rate limits are scoped by identifier, depending on the endpoint and enforcement layer:

- IP hash (for unauthenticated/client-side routes and public actions)
- API key ID (for Envoy-managed and app-managed authenticated API calls)
- User ID (for authenticated session-based calls and server actions)
- Organization ID (for follow-up email dispatch and invitation budgets)
- Email type, organization, sender and recipient address (for every outgoing email; see [Email Limits](#email-limits))

When a limit is exceeded, the API returns `429 Too Many Requests`.

## v5 Migration Note

Before upgrading to Formbricks v5:

- deploy Envoy Gateway or an equivalent edge rate limiter for the covered routes below
- keep application Redis/Valkey enabled for the remaining app-enforced limits
- expect covered routes to emit gateway `429`s instead of the legacy app JSON `429`s

For the current source of truth on covered routes and thresholds, use this page together with your deployment
configuration and the [v5 migration guide](/self-hosting/advanced/migration#v5).

## Envoy-Managed Limits

These limits are expected to be enforced at the gateway layer in Formbricks v5 and later:

| **Route Group**                                                          | **Limit**    | **Window** | **Identifier** |
| ------------------------------------------------------------------------ | ------------ | ---------- | -------------- |
| `POST /api/auth/callback/credentials`                                    | 40 requests  | 1 hour     | IP hash        |
| `POST /api/auth/callback/token`                                          | 10 requests  | 1 hour     | IP hash        |
| `GET, POST, PUT, PATCH, DELETE /api/v1/management/*` (API key auth only) | 100 requests | 1 minute   | API key ID     |
| `POST /api/v1/management/storage` (API key auth only)                    | 5 requests   | 1 minute   | API key ID     |
| `GET, POST, PUT, PATCH, DELETE /api/v1/webhooks/*` (API key auth only)   | 100 requests | 1 minute   | API key ID     |
| `GET /api/v1/client/[workspaceId]/environment`                         | 100 requests | 1 minute   | IP hash        |
| `POST /api/v1/client/[workspaceId]/responses`                          | 100 requests | 1 minute   | IP hash        |
| `PUT /api/v1/client/[workspaceId]/responses/[responseId]`              | 100 requests | 1 minute   | IP hash        |
| `POST /api/v1/client/[workspaceId]/displays`                           | 100 requests | 1 minute   | IP hash        |
| `POST /api/v1/client/[workspaceId]/user`                               | 100 requests | 1 minute   | IP hash        |
| `POST /api/v1/client/[workspaceId]/storage`                            | 5 requests   | 1 minute   | IP hash        |
| `POST /api/v2/client/[workspaceId]/responses`                          | 100 requests | 1 minute   | IP hash        |
| `PUT /api/v2/client/[workspaceId]/responses/[responseId]`              | 100 requests | 1 minute   | IP hash        |
| `POST /api/v2/client/[workspaceId]/displays`                           | 100 requests | 1 minute   | IP hash        |
| `POST /api/v2/client/[workspaceId]/storage`                            | 5 requests   | 1 minute   | IP hash        |
| `DELETE /storage/[workspaceId]/public/[fileName]` (API key auth only)  | 5 requests   | 1 minute   | API key ID     |
| `DELETE /storage/[workspaceId]/private/[fileName]` (API key auth only) | 5 requests   | 1 minute   | API key ID     |

Session-authenticated `/api/v1/management/*`, `/api/v1/management/me`, `/api/v1/management/storage`, and
`DELETE /storage/...` requests are **not** covered by the current Envoy policies and remain app-enforced.

## App-Enforced Limits

These are the limits that still run inside the Formbricks application server:

| **Config**                    | **Limit**    | **Window** | **Identifier**                | **Used For**                                                                                                                                              |
| ----------------------------- | ------------ | ---------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `auth.signup`                 | 30 requests  | 60 minutes | IP hash                       | Signup server action                                                                                                                                      |
| `auth.forgotPassword`         | 5 requests   | 60 minutes | IP hash                       | Forgot password server action                                                                                                                             |
| `auth.forgotPasswordPerAccount` | 3 emails | 60 minutes | User ID | Password-reset and SSO sign-in-hint emails to one account, however many IPs ask; once spent, further requests get the same answer but no email |
| `auth.verifyEmail`            | 10 requests  | 60 minutes | IP hash                       | Resend verification server action                                                                                                                         |
| `api.v1`                      | 100 requests | 1 minute   | Session user ID               | Session-authenticated v1 management routes, `/api/v1/management/me`, and `/api/v1/integrations/*`                                                         |
| `api.v2`                      | 100 requests | 1 minute   | API key ID                    | Authenticated v2 API wrapper outside the Envoy-managed `/api/v2/client/*` subset                                                                          |
| `api.v3`                      | 100 requests | 1 minute   | API key ID or session user ID | v3 API wrapper                                                                                                                                            |
| `api.client`                  | 100 requests | 1 minute   | IP hash                       | Uncovered client routes such as `GET /api/v1/client/og`, `GET /api/v2/client/[workspaceId]/environment`, and `POST /api/v2/client/[workspaceId]/user` |
| `api.clientCreativeEvents`    | 600 requests | 1 minute   | IP hash                       | `POST /api/v2/client/[workspaceId]/creatives/events`, the SDK's creative Impressions and Clicks; a request over the limit still gets 204, uncounted |
| `api.v3WorkflowWebhookToken`  | 100 requests | 1 minute   | Workflow ID and token hash prefix | Calls to one workflow's [Webhook Secret URL](/workflows/webhook-trigger), checked before the database is read. Each wrong token counts on its own, so it cannot use up the real caller's limit |
| `api.v3WorkflowWebhook`       | 100 requests | 1 minute   | Workflow ID                   | Calls to one workflow's [Webhook Secret URL](/workflows/webhook-trigger) whose token matched                                                             |
| Workflow webhook, organization | 300 requests | 1 minute  | Organization ID               | Webhook Secret URL calls across one organization's workflows. Change it with `WORKFLOW_WEBHOOK_ORG_CALLS_PER_MINUTE`                                  |
| Workflow webhook, daily runs  | 10000 calls  | 1 day (UTC) | Workflow ID                 | Calls to one enabled workflow's Webhook Secret URL that pass the plan check, whether or not they start a run. Change it with `WORKFLOW_WEBHOOK_DAILY_RUN_LIMIT`. Refuses runs while Redis is unavailable            |
| `api.v3WorkflowTestRequests`  | 30 requests  | 1 minute   | API key ID or session user ID | "Send test request" on a workflow's HTTP request step                                                                                                     |
| `api.v3WorkflowTestRuns`      | 30 requests  | 1 minute   | API key ID or session user ID | Workflow Test runs                                                                                                                                        |
| `storage.upload`              | 5 requests   | 1 minute   | Session user ID               | Session-authenticated `POST /api/v1/management/storage`                                                                                                   |
| `storage.delete`              | 5 requests   | 1 minute   | Session user ID               | Session-authenticated `DELETE /storage/[workspaceId]/[accessType]/[fileName]`                                                                           |
| `actions.emailUpdate`         | 3 requests   | 60 minutes | User ID                       | Profile email update action                                                                                                                               |
| `actions.passwordResetRequest` | 3 requests | 60 minutes | User ID                     | "Reset password" from the signed-in profile settings                                                                                                    |
| `actions.inviteMember`        | 50 recipients | 24 hours  | Organization ID               | Single, bulk, onboarding, and resend invite actions                                                                                                       |
| `actions.inviteMemberPerUser` | 50 recipients | 24 hours  | User ID                       | The same invite actions, counted for the inviting user across all of their organizations                                                                  |
| `actions.createOrganization`  | 5 requests    | 24 hours  | User ID                       | Organization creation actions (onboarding and the organization switcher)                                                                                  |
| `actions.surveyFollowUp`      | 50 requests  | 60 minutes | Organization ID               | Survey follow-up email processing                                                                                                                         |
| `actions.sendLinkSurveyEmail` | 10 requests  | 60 minutes | IP hash                       | Link survey email send action                                                                                                                             |
| `actions.licenseRecheck`      | 5 requests   | 1 minute   | User ID                       | Enterprise license recheck action                                                                                                                         |

Invite limits count successfully created or refreshed invites. A bulk request for 25 people consumes 25 units
only when all 25 invites are created; recipients who are already members, already invited, or otherwise fail do
not consume the daily budget. Self-hosters can change the limit with `INVITE_RATE_LIMIT_PER_24_HOURS`;
Formbricks Cloud organizations with the `bulk-invite` entitlement receive a limit of 500 recipients.
The same allowance also applies to each inviting user across all of their organizations, so creating another
organization does not reset it.

## Email Limits

Every email the application sends is also counted by type, however it was triggered, against the limits below.
"Per sender" means the user who acted or, for email a survey or workflow sends, its owner (for one created with
an API key, the organization's owner), counted across all of their organizations. "Per recipient" counts one
address from one organization, except for account email, which an address only ever gets from its own account.
The address is stored only as a keyed hash.

| **Email type**                | **Per organization** | **Per sender**         | **Per recipient** | **Per deployment** |
| ----------------------------- | -------------------- | ---------------------- | ----------------- | ------------------ |
| `invite`                      | see invite limits    | see invite limits      | 3 per day         | 5000 per day       |
| `email_verification`          | —                    | 3 per hour per account | 5 per hour        | —                  |
| `sso_recovery_verification`   | —                    | —                      | 5 per hour        | —                  |
| `email_change_verification`   | —                    | 3 per hour             | —                 | 1000 per hour      |
| `password_reset`              | —                    | 3 per hour             | 6 per hour        | —                  |
| `sso_sign_in_hint`            | —                    | 3 per hour per account | 3 per hour        | —                  |
| `response_notification`       | 2000 per hour        | —                      | —                 | —                  |
| `survey_preview`              | —                    | 10 per hour            | —                 | —                  |
| `customization_preview`       | —                    | 10 per hour            | —                 | —                  |
| Survey email to outside addresses | 200 per hour     | 300 per hour           | 5 per hour        | —                  |

"Survey email to outside addresses" is one budget shared by verified survey links, follow-ups and workflow
emails sent to an address that is not a member of the organization: a respondent's answer, a visitor's
verification request, or an address the author typed. Follow-ups and workflow emails to an address the author
typed that belongs to a member are not counted against it, so respondents cannot use it up for them. The
per-sender cap is higher than the per-organization one, so respondents flooding one organization cannot use up
the owner's email in their other organizations.

`invite_accepted`, `password_reset_notification`, `account_deletion`, `sso_recovery_notification` and
`data_retention_notice` go to an account or an organization's own members and are bounded by the flow that sends
them.

A per-deployment cap is shared by every organization, so whoever can reach it stops that email for everyone.
Only email a signed-in user sends to an address they typed in has one, set far above what a few accounts can
send. Sign-in and account email has none, and neither does email that respondents or visitors trigger.

What happens when an email is capped depends on the flow:

- **Previews, invite resends, the verified survey link and SSO account recovery** show a "too many requests"
  error; a capped recovery email stops that SSO sign-in.
- **New invites** are still created, and the action reports success; the invite can be resent or shared by link.
- **Sign-up and resent verification, forgot password, the signed-in password reset, email changes and the SSO
  sign-in hint** look the same as a sent email, so a capped email cannot reveal whether an account or address
  exists. The verification resend and the signed-in reset also have their own per-account limit of 3 an hour,
  which does show an error.
- **Follow-ups, workflow emails and response notifications** are skipped. A workflow email step is recorded as
  skipped, except an email to an address from a workflow Variable, such as a Webhook payload: that step and its
  run fail at once. Those emails also have a cap of 50 per hour per workflow, which
  `EMAIL_RATE_LIMIT_MULTIPLIER` doesn't change.

An email is charged before it is sent, so one the SMTP server then refuses still counts. Every capped email is
logged as `Outbound email suppressed: rate limit reached` with the email type and the limit that was spent, never
the address.

If your instance legitimately sends more, raise the per-organization, per-sender and per-deployment caps at once with
`EMAIL_RATE_LIMIT_MULTIPLIER` (for example `EMAIL_RATE_LIMIT_MULTIPLIER=5`). Per-recipient caps do not change: they
protect a person's inbox.

## Explicit Envoy Exclusions

The current Envoy policy set explicitly excludes these routes:

- `GET /api/v1/client/og` (still covered by the app-level `api.client` limiter)
- `GET /api/v2/health` (not rate-limited)
- `OPTIONS` requests (not rate-limited)

## 429 Response Shape

Application-generated v1 `429`s return:

```json
{
  "code": "too_many_requests",
  "details": {},
  "message": "Maximum number of requests reached. Please try again later."
}
```

Application-generated v2/v3 `429`s return:

```json
{
  "error": {
    "code": 429,
    "message": "Too Many Requests"
  }
}
```

Envoy-generated `429`s are gateway responses and should include an `x-envoy-ratelimited` header. Their exact body
shape is not the same stability contract as the in-app JSON responses above.

## Disabling Rate Limiting

For self-hosters, rate limiting can be disabled if necessary. We strongly recommend keeping it enabled in production.

Set:

```bash
RATE_LIMITING_DISABLED=1
```

After changing this value, restart the server.

This setting disables only the **application-level** limiter. It does **not** disable Envoy rate-limit policies.

## Operational Notes

- Redis/Valkey is required for the application-level limiter (`REDIS_URL`).
- If you deploy Envoy rate limiting, use a dedicated Redis/Valkey backend for Envoy instead of sharing the app cache.
- If application Redis is unavailable at runtime, abuse limits **fail closed** and every other limit **fails open**:
  - **Refused until Redis is back:** sign-up, resending the verification email, organization creation, invites, forgot-password, and the email-change, password-reset and account-deletion requests in account settings, plus the brute-force guards (survey PIN, password-reset and email-change links, the email-token check, failed MCP authentication). These fail with the usual rate-limit error ("Maximum number of requests reached").
  - **Every counted outbound email** is also refused before it reaches your SMTP server. Email sent in the background, such as survey follow-ups and workflow emails, is skipped and logged rather than shown to anyone.
  - **Allowed without enforcement:** API throughput, other settings changes, storage, AI features and SAML sign-in, so the app and your surveys keep working.
- Every rate-limit check that cannot reach Redis is logged at error level (`Redis unavailable` or `Rate limit check failed`) and counted in the `formbricks_rate_limiter_unavailable_total` metric, with `fail_mode` (`open` / `closed`) and `reason` (`no_client` / `error`) labels. The metric is exported when `PROMETHEUS_ENABLED` or `OTEL_EXPORTER_OTLP_ENDPOINT` is set. To be paged on a Redis outage, alert when it keeps increasing, for example `sum(rate(formbricks_rate_limiter_unavailable_total[5m])) > 0` for 5 minutes. The metric only moves when Redis refuses or drops the connection: a Redis that accepts connections but stops answering stalls those requests instead, with nothing logged or counted, so keep a separate health check on Redis itself.
- Client storage upload rate limits count signed upload URL issuance, not successful object creation in S3-compatible storage.
- Authentication failure audit logging uses a separate throttle (`shouldLogAuthFailure()`) and is intentionally **fail-closed**: when Redis is unavailable or errors occur, audit log entries are **skipped entirely** rather than written without throttle control. This prevents spam while preserving the hash-integrity chain required for compliance. In other words, if Redis is down, no authentication-failure audit logs will be recorded, and the audit trail for those failures will not be written. This throttle reaches Redis on its own, so a miss there is logged as a warning and is not counted in `formbricks_rate_limiter_unavailable_total`.
