For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rate Limiting

Understand and handle API rate limits in the DotPassport SDK.

Rate Limit Tiers

Tier
Requests/Hour
Requests/Day
Requests/Month

Free

100

1,000

10,000

Pro

1,000

10,000

100,000

Enterprise

10,000

100,000

1,000,000


Rate Limit Headers

All API responses include rate limit information:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1640995200
Header
Description

X-RateLimit-Limit

Maximum requests allowed

X-RateLimit-Remaining

Requests remaining

X-RateLimit-Reset

Unix timestamp when limit resets


Handling Rate Limits

Basic Detection

Wait and Retry


Rate Limit Tracking

Track your rate limit usage to avoid hitting limits:


Request Queuing

Queue requests to stay within rate limits:


Caching to Reduce Requests

Cache responses to minimize API calls:


Best Practices

1. Cache Aggressively

2. Batch When Possible

3. Use Conditional Requests

4. Implement Backoff

5. Monitor Usage


Last updated