API Rate Limit
To maintain high availability and ensure fair usage across all users, our API is protected by rate limiting. Each request to the API is counted towards your usage limits, and exceeding these limits will result in 429 Too Many Requests responses.
Rate Limits
- Per-Hour Limit:
1,500requests per hour. - Daily Limit:
10,000requests per day.
Endpoint-Specific Rate Limits
Some endpoints have additional rate limits beyond the general limits:
| Endpoint | Second | Minute | Hour | Day |
|---|---|---|---|---|
POST /api/v1/shipments/imports | 20 | |||
POST /api/v1/shipments/imports/file | 20 | |||
PATCH /api/v1/shipments/id | 100 | |||
PATCH /api/v1/shipments/reference | 100 |
Rate Limit Headers
Every API response includes the following headers to help you manage your request usage:
-
X-RateLimit-Limit
The maximum number of requests allowed in the current time window. -
X-RateLimit-Remaining
The number of requests you still have available in the current time window. -
X-RateLimit-Reset
A UTC timestamp indicating when the rate limit window will reset.
Example Response Headers
HTTP/1.1 200 OK
Content-Type: application/json
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1724245860
Best Practices
- Spread out requests instead of sending them in bursts.
- Use the
X-RateLimit-RemainingandX-RateLimit-Resetheaders to adjust request pacing. - Implement retries with backoff when receiving
429 Too Many Requests.