Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Rate Limits

The Driftwood API enforces rate limits to ensure fair usage and platform stability.

Authentication TypeRateBurst
Public (unauthenticated)5 req/s10
User token10 req/s20
OAuth app token50 req/s100

Rate is the sustained request rate. Burst is the maximum number of requests allowed in a short spike.

Some endpoints have stricter limits:

EndpointRateBurst
auth-login3 req/s5
users-forgot-password3 req/s5
users-reset-password5 req/s10
  • Public endpoints: Limited by IP address
  • Authenticated endpoints: Limited by user ID or OAuth app ID

You’ll receive a 429 Too Many Requests response:

{
"ok": false,
"error": {
"code": "rate_limit.exceeded",
"message": "Too many requests"
}
}
  1. Cache tokens — Don’t request a new token for every API call
  2. Use exponential backoff — When rate limited, wait 1s, then 2s, then 4s
  3. Batch where possible — Use bulk operations instead of many individual calls
  4. Use webhooks — Subscribe to events instead of polling for changes
  5. Spread requests — Distribute API calls evenly over time rather than bursting