Default Rate Limits
Rate limits are enforced per API key on a rolling one-minute window. Exceeding any per-endpoint limit or the global limit triggers a429 Too Many Requests response.
Sandbox API keys have lower rate limits — 100 req/min across all endpoints — to encourage efficient integration patterns and help you detect and fix unnecessary duplicate requests before going to production.
Rate Limit Response Headers
FraudEG includes rate limit headers on every response, not just error responses. Monitor these headers proactively to avoid hitting the limit rather than reacting after you receive a429.
An example of the headers on a successful response:
429 response:
Handling 429 Errors
When you receive a429 Too Many Requests response, read the Retry-After header and wait that many seconds before sending another request to the same endpoint. Do not retry immediately — doing so will not succeed and will extend the window in which your key is throttled.
Exponential Backoff Example
The following Node.js example wraps any API call with automatic retry logic that respects theRetry-After header and applies exponential backoff:
fetch Response object:
Best Practices
Follow these practices to stay well within your rate limits and build a resilient integration:1
Cache risk scores for repeated lookups
If your system evaluates the same transaction multiple times — for example, during session replay or rule testing — cache the score response using the
session_id combined with amount and user_id as a cache key. Avoid re-scoring identical inputs.2
Use batch patterns for high-volume processing
For bulk operations such as historical data analysis or nightly report generation, spread requests evenly across the window using a job queue. Dispatch at a rate safely below your per-endpoint limit rather than sending all requests concurrently.
3
Monitor X-RateLimit-Remaining proactively
Read the
X-RateLimit-Remaining header on every response. When the value drops below a threshold you define (for example, 10% of your limit), slow down your request rate before hitting zero. This prevents your integration from fully blocking on 429 responses during peak traffic.4
Contact sales for higher limits
If your production workload consistently approaches the default limits, reach out to sales@fraudeg.com. High-volume plans offer elevated per-endpoint and global limits, as well as dedicated infrastructure for latency-sensitive use cases.