Rate Limits
API rate limiting policy and headers.
Updated
On this page
Overview
The DashForDevs API enforces rate limits to ensure fair usage and protect against abuse. Limits are per API key using a sliding window.
Rate Limit Tiers
| Key Type |
|---|
API rate limiting policy and headers.
Updated
The DashForDevs API enforces rate limits to ensure fair usage and protect against abuse. Limits are per API key using a sliding window.
| Key Type |
|---|
| Limit |
|---|
Public key (pk_*) | 120 requests/minute |
Secret key (sk_*) | 300 requests/minute |
| No key (anonymous) | 30 requests/minute |
Every API response includes rate limit headers:
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 87
X-RateLimit-Reset: 1705312800
try {
const { products } = await dash.products.list()
} catch (error) {
if (error.status === 429) {
// Wait and retry
const retryAfter = error.headers?.["retry-after"] || 60
await new Promise(r => setTimeout(r, retryAfter * 1000))
// Retry the request
}
}
getCore() / getOptions() split for product pages