> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Rate Limits

**Published**: 2026-11-30
**Category**: Getting Started

> The API limits how many requests a client can send in a time window. This page lists the limits you can reach, the headers that report them, and how to handle a 429. Previous: [Pagination](/sdk/getting-started/pagination) | Next: [Add Lynkow to an Existing Project](/sdk/getting-started/existing-project)

> **Reference** - This guide is a tutorial. For exhaustive, always-current signatures and field lists, see the auto-generated reference:
> 
> - API: [Storefront API Overview](/storefront-api/overview), where each endpoint states its limit
> - SDK: [SDK Reference](/sdk)

## Prerequisites

- A first request done ([Quick Start](/sdk/getting-started/quick-start))

## Storefront API limits

Each limit is counted per site and per client, the client being the caller's IP address. One site's traffic never uses another site's budget, and one visitor never uses another visitor's.

| Calls | Limit |
| --- | --- |
| Requests under `/storefront/{siteId}`, the general limit | 12,000 per minute |
| Cart changes: add, update or remove a line, set the cart's address or shipping option | 120 per minute |
| Form and review submissions, checkout, bookings, saved address changes, the guest order page | 10 per 15 minutes |
| Analytics events and cookie consent logs | 600 per minute |
| Buyer sign-in, sign-up and password reset | See [Server Key and Buyer IP](/sdk/advanced/server-key-buyer-ip) |


A request can count toward several limits, and the strictest one decides. A request with a publishable key is also counted per key, at 18,000 per minute: that limit is higher than the others, so sending a key does not raise what you can reach.

These figures are current values, not a contract: they can change.

When your server calls the API for your buyers, every buyer shares your server's IP address, and so its limits. Forward each buyer's IP with a server key: [Server Key and Buyer IP](/sdk/advanced/server-key-buyer-ip).

## Admin API limits

Requests to `/v1` count toward two limits:

- A per-minute limit for each client of a site.
- A per-minute budget for the whole site, set by its plan and shared by all its API tokens.

Calls an AI assistant makes through the MCP server count toward the same limits.

## Headers

A successful response carries two headers:

| Header | Value |
| --- | --- |
| `X-RateLimit-Limit` | The number of requests allowed in the window |
| `X-RateLimit-Remaining` | The number left in the current window |


```bash
curl -s -D - -o /dev/null "https://api.lynkow.com/storefront/a779c43c-430e-45d1-8749-2144d7f60a0f/contents?limit=1" | grep -i ratelimit
```

They describe one limit, not all of them. On `/v1`, they report the per-client limit, not the site's plan budget. Browser code cannot read them: read them from a server.

## A 429 response

Past a limit, the API returns 429:

```json
{
  "errors": [
    { "message": "Too many requests", "code": "RATE_LIMIT_EXCEEDED" }
  ],
  "requestId": "..."
}
```

Only the failed sign-in limits send a `Retry-After` header, with the number of seconds to wait. The other limits send none.

## Retry

- **Reads**: wait, then retry with an exponential backoff, for example 1, 2, then 4 seconds. Honor `Retry-After` when it is present.
- **Submissions and checkout**: do not retry in a loop. The window is 15 minutes, so tell the visitor to try again later.
- **Builds and syncs**: a static build runs from one machine, so all its requests share one budget. Fetch lists with `limit=100` to send fewer requests ([Pagination](/sdk/getting-started/pagination)).

The SDK retries reads on 429 and 503 with an exponential backoff and honors `Retry-After`. It sends writes once. When its retries run out, it throws a `LynkowError` with `code: 'TOO_MANY_REQUESTS'` and `apiCode: 'RATE_LIMIT_EXCEEDED'`:

```typescript
import { isLynkowError } from 'lynkow'
import { lynkow } from '@/lib/lynkow'

try {
  await lynkow.forms.submit('contact', { email: 'visitor@example.com', message: 'Hello' })
} catch (error) {
  if (isLynkowError(error) && error.apiCode === 'RATE_LIMIT_EXCEEDED') {
    // Show "Too many attempts, try again in a few minutes."
  } else {
    throw error
  }
}
```

[Error Handling & Resilience](/sdk/advanced/error-handling) shows how to tune or turn off the retries.

## Reference

- API: [Storefront API Overview](/storefront-api/overview), [Admin API Overview](/admin-api/api-overview)
- SDK: [SDK Reference](/sdk)

## Next Steps

- [Server Key and Buyer IP](/sdk/advanced/server-key-buyer-ip) - count each buyer on their own limit when your server calls the API
- [Error Handling & Resilience](/sdk/advanced/error-handling) - retries, timeouts and error pages
- [Add Lynkow to an Existing Project](/sdk/getting-started/existing-project) - the SDK in a Next.js app