Files
supabase/apps/docs/content/guides/auth/rate-limits/change.mdx
Miranda Limonczenko be2763610c docs: split Auth rate limits into a reference page and two how-to guides (#54485)
Closes DOCS-1619

## Problem

Auth rate limits mixes a lookup table with two procedures, so it doesn't
fit the reference template.

## Solution

- Make `auth/rate-limits` a reference page titled `Auth rate limits`.
The `#ip-address-forwarding` anchor that Studio links to stays.
- Move the procedures, unchanged, to two new how-to guides: Change Auth
rate limits and Forward end-user IP addresses.
- Group the three pages under Rate Limits in the navigation.

## Preview links

| Page | Live | Preview |
| --- | --- | --- |
| Auth rate limits |
[Live](https://supabase.com/docs/guides/auth/rate-limits) |
[Preview](https://docs-git-docs-auth-rate-limits-reference-supabase.vercel.app/docs/guides/auth/rate-limits)
|
| Change Auth rate limits | New |
[Preview](https://docs-git-docs-auth-rate-limits-reference-supabase.vercel.app/docs/guides/auth/rate-limits/change)
|
| Forward end-user IP addresses | New |
[Preview](https://docs-git-docs-auth-rate-limits-reference-supabase.vercel.app/docs/guides/auth/rate-limits/ip-forwarding)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [ ] Moderate: good to have soon, not urgent
- [ ] Low: get to it when you can

## Review instructions

1. Open the Auth rate limits preview. The sidebar shows Limits, Change
limits, and Forward end-user IPs under **Rate Limits**.
2. Open the preview at `#ip-address-forwarding`. The page scrolls to
that section.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-04 14:45:07 -08:00

62 lines
2.2 KiB
Plaintext

---
title: 'Change Auth rate limits'
description: 'Change the customizable Supabase Auth rate limits for your project in the Dashboard, or read and update them with the Management API from your terminal.'
sidebar_label: 'Change limits'
---
Change the Supabase Auth rate limits that are customizable, so your project allows the request rates your app needs.
## Prerequisites
To use the Management API, you need a [personal access token](/dashboard/account/tokens).
## Change a limit
Change limits in the Dashboard or with the Management API. Both change the same settings.
### In the Dashboard
In your project, open [**Authentication** > **Rate Limits**](/dashboard/project/_/auth/rate-limits) and change the limits you need.
### With the Management API
To read and update rate limits from your terminal, run the following commands:
```bash
# Get your access token from https://supabase.com/dashboard/account/tokens
export SUPABASE_ACCESS_TOKEN="your-access-token"
export PROJECT_REF="your-project-ref"
# Get current rate limits
curl -X GET "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \
-H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" \
| jq 'to_entries | map(select(.key | startswith("rate_limit_"))) | from_entries'
# Update rate limits
curl -X PATCH "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \
-H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"rate_limit_anonymous_users": 10,
"rate_limit_email_sent": 10,
"rate_limit_sms_sent": 10,
"rate_limit_verify": 10,
"rate_limit_token_refresh": 10,
"rate_limit_otp": 10,
"rate_limit_web3": 10
}'
```
## Next steps
To keep going, use these pages:
- [Forward end-user IP addresses](/docs/guides/auth/rate-limits/ip-forwarding): rate limit by your end user's IP address when a server calls Supabase Auth for them.
- [Test auth flows](/docs/guides/auth/testing-auth-flows): test email and phone sign-in without hitting the email and SMS sending limits.
## Related resources
To look up each limit, see this page:
- [Auth rate limits](/docs/guides/auth/rate-limits): each limit, what it's counted by, and whether you can change it.