FansquareAPI reference
Open the app

Get started

Rate limits

Each API key has a budget of requests per minute, tighter on the endpoints that read large volumes.

Requests are counted per API key, in fixed one-minute windows: a window opens with the first request counted and resets one minute later.

EndpointsLimit per key
Every endpoint, by default60 per minute
Lists of orders, fans and publications, fan note read30 per minute
Sent messages and analytics20 per minute
Tag creation and deletion20 per minute
Lists of Mass DMs and automations30 per minute
Mass DM audience estimate10 per minute
Mass DM and automation creation10 per minute each
Fan note edit, employee performance10 per minute
Batch AI locks (acquire, release), batch tags (apply, remove) and AI request acknowledgement120 per minute each
Lists of scripts, collections and sequences30 per minute
Script, collection and sequence writes30 per minute each
Webhook replay30 per minute
Webhook test delivery10 per minute

Every endpoint page states its own limit. Endpoints without a limit of their own share the default budget of the key; an endpoint with its own limit has a separate budget.

Agency-wide limit

On top of the limit per key, every key and every connected assistant (OAuth) of the same agency share a budget of 5 times the limit of each endpoint: 100 analytics requests per minute for the whole agency when a key gets 20, 300 for the default budget. Five integrations can each run at their full rate at the same time; more keys do not raise the agency's total. Exceeding it answers the same 429 rate_limited, with a Retry-After header and a detail that names the agency-wide limit.

Headers

A counted request tells you where you stand in its response headers.

HeaderMeaning
x-ratelimit-limitThe budget of the current window
x-ratelimit-remainingRequests left in the window
x-ratelimit-resetSeconds until the window resets

A request refused before the rate limit check is not counted and carries none of these headers: a missing or unknown version, an invalid parameter or body, a missing or invalid key, a missing scope, an unknown path.

When you exceed it

The API answers 429 rate_limited with a Retry-After header, in seconds. Wait that long, then retry. Requests sent sooner are refused too, without extending the wait.

To export history, page through lists with limit=200 and spread the calls over time. For charts, prefer the analytics endpoints: one call returns aggregates that would take hundreds of order pages.