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 | Next: Add Lynkow to an Existing Project

Reference - This guide is a tutorial. For exhaustive, always-current signatures and field lists, see the auto-generated reference:

Prerequisites

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

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.

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).

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: '[email protected]', 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 shows how to tune or turn off the retries.

Reference

Next Steps