API reference Getting started
Rate limits
Each Pipory API key can make 120 requests a minute, counted in a fixed one-minute window shared by the REST API and the MCP server.
The limit
- 120 requests a minute, per key, unless Pipory has set a different limit on that key. Each key has its own counter; two keys in the same workspace do not share one.
X-RateLimit-Limitalways shows the key's limit. - Fixed window. The window starts with the first request and lasts one minute. When it ends, the count starts again from zero.
- REST and MCP share it. Requests to the public API and to the MCP server with the same key count against the same window.
- Requests rejected before the key is recognised (a missing or unknown key) do not count.
Headers
Successful responses carry the current state of the window:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed per minute for this key |
X-RateLimit-Remaining | Requests left in the current window |
X-RateLimit-Reset | Seconds until the window resets (a number of seconds, not a timestamp) |
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117
X-RateLimit-Reset: 42
Over the limit
The request answers 429 with code rate_limited, a Retry-After header in seconds and the same value in the body:
{
"detail": {
"code": "rate_limited",
"message": "This key is limited to 120 requests a minute.",
"retry_after": 42
}
}
The 429 also carries X-RateLimit-Remaining: 0 and X-RateLimit-Reset. Wait the number of seconds in Retry-After before the next request.
Staying under it
- Page with
limit=100on List assets rather than many small pages. - Cache what changes slowly, such as products and collections.
- Use webhooks to hear about new creatives and finished analyses instead of polling.