Rate Limits
MergeGuide API enforces rate limits to ensure fair usage and service stability.Rate Limit Tiers
| Plan | Requests/Minute | Requests/Hour | Requests/Day |
|---|---|---|---|
| Free | 60 | 1,200 | 14,400 |
| Pro | 120 | 2,400 | 28,800 |
| Team | 200 | 4,000 | 48,000 |
| Business | 300 | 6,000 | 72,000 |
| Enterprise | 1,000 | 20,000 | 240,000 |
| Custom | Contact sales | Contact sales | Contact sales |
Endpoint-Specific Limits
Some endpoints have additional limits:| Endpoint | Limit | Window |
|---|---|---|
POST /evaluations | 60 | per minute |
POST /compliance/reports | 10 | per hour |
GET /evaluations | 100 | per minute |
| Other read endpoints | 200 | per minute |
Rate Limit Headers
Every response includes rate limit information:| Header | Description |
|---|---|
X-RateLimit-Limit | Max requests in window |
X-RateLimit-Remaining | Requests remaining |
X-RateLimit-Reset | Unix timestamp when limit resets |
X-RateLimit-Window | Window size in seconds |
Rate Limit Exceeded
When rate limited, the API returns:Handling Rate Limits
Respect Retry-After
Always use theRetry-After header:
Implement Exponential Backoff
For robustness, combine with exponential backoff:Pre-emptive Rate Limiting
Track remaining requests and throttle proactively:Best Practices
Batch Requests
Instead of multiple single requests:Cache Responses
Cache read operations:Use Webhooks
For status updates, use webhooks instead of polling:Spread Requests Over Time
Avoid bursts by spreading requests:Rate Limit Strategies by Use Case
CI/CD Pipelines
- Use caching for policy lists
- Batch file changes in single evaluation
- Queue builds during rate limit periods
Dashboard/UI
- Cache API responses with appropriate TTL
- Implement request debouncing
- Show stale data with refresh option
Background Processing
- Implement job queues with rate limiting
- Process in order of priority
- Log and alert on consistent rate limiting
Requesting Higher Limits
For Enterprise customers needing higher limits:- Contact your account manager
- Describe your use case and volume needs
- Limits can be customized per-organization
Monitoring
Track Rate Limit Usage
Log rate limit headers for monitoring:Dashboard Metrics
Monitor in your MergeGuide dashboard:- Settings > Usage shows API usage graphs
- Set up alerts for rate limit warnings