mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 16:09:06 +00:00
## Problem The Management API rate limits section explains the limit, its scope, and its headers, but not which traffic it applies to. Readers can't tell whether CLI commands or calls to their own project, such as Edge Function invocations, count toward it. Related to [FDBKIN-22153](https://linear.app/supabase/issue/FDBKIN-22153/clarify-documentation-for-management-api-rate-limits-and-what-actions) Closes [DOCS-1764](https://linear.app/supabase/issue/DOCS-1764/say-which-requests-count-toward-the-management-api-rate-limit) ## Solution The "Rate limits" section of the Management API introduction now opens by saying that only requests to `https://api.supabase.com` count, and that requests to a project's own URL don't. The "Rate limit scope" subsection ends with a CLI example: `supabase functions deploy` sends at least one Management API request per function, so a large deploy to one project might reach the per-endpoint limit. The example sits after the scope rules so it reads as an application of them. The limits, tables, scope rules, and headers are unchanged. ## How to verify 1. Open `/docs/reference/api/introduction` in the preview and go to "Rate limits". 2. The intro says only requests to `https://api.supabase.com` count, and that requests to `https://<project-ref>.supabase.co`, such as Edge Function invocations and Data API calls, don't. 3. The end of "Rate limit scope" says the Supabase CLI uses the Management API, and that `supabase functions deploy` to one project with many functions might reach the per-endpoint limit. 4. The limit tables, scope list, and response headers match production. ## Checks Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'` (no errors), and `pnpm exec oxfmt --check` on the changed file. Checked the CLI claim against `supabase/cli` `apps/cli/src/shared/functions/deploy.ts`. By default it bundles with Docker and calls `POST /v1/projects/{ref}/functions` or `PATCH /v1/projects/{ref}/functions/{slug}` per function, then one bulk `PUT /v1/projects/{ref}/functions`. With `--use-api`, or when Docker isn't running, it calls `POST /v1/projects/{ref}/functions/deploy` per function. Because of that, the text doesn't name a single endpoint. The Edge Function invocation URL comes from the Edge Functions quickstart. ## Checklist - [x] I have read the [Contributing Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] I have checked that the change works in the preview deployment ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [DOCS-1764](https://linear.app/supabase/issue/DOCS-1764/say-which-requests-count-toward-the-management-api-rate-limit). Tedd doesn't read comments on this PR. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>