Build with Sanity MCP in Replit. Prizes up for grabs! Submit by June 14

How long to wait after exceeding Sanity API limit?

2 repliesLast updated: Dec 1, 2025

I exceeded my API limit, how long do I have to wait?
AI Update

When you exceed Sanity's API rate limit, the wait time depends on which specific limit you hit. According to the technical limits documentation, Sanity enforces rate limits in two ways:

Per-IP Rate Limits (enforced per second):

Concurrent Rate Limits (per dataset):

When you hit a rate limit, you'll receive an HTTP 429 response with helpful headers:

How long to wait:

Since these are rolling window limits (measured per second), you typically only need to wait 1-2 seconds for the per-IP limits to reset. The key is to check the retry-after header in the 429 response - it will tell you the exact wait time.

Best practices to avoid hitting limits:

For most use cases, spacing out your requests by 40-50ms will keep you comfortably under the 25 req/s mutation limit without triggering rate limiting at all.

Show original thread
2 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions