Limits by endpoint (per user)
Limits by endpoint (per user)
- POST /v2/medias (upload): 10 requests / minute
- GET /v2/medias/{media_uid}/file (download): 60 requests / minute
- GET /v2/medias/{media_uid}/metadata (status): 120 requests / minute
Rate limit response headers
Rate limit response headers
- X-RateLimit-Limit: Configured max requests for the endpoint within the window
- X-RateLimit-Remaining: Requests remaining in the current 60‑second window
- X-RateLimit-Used: Requests already used in the current window
- X-RateLimit-Window: Window duration in seconds (e.g.,
60
)
Example
Best practices
- Poll smartly: For metadata, start at 3–5s intervals and back off to 5–10s for long jobs.
- Fan‑out responsibly: Batch uploads to stay within 10/min on
POST /v2/medias
. - Handle 429: Implement exponential backoff with jitter, then retry when
X-RateLimit-Remaining > 0
. - Cache status: Avoid redundant metadata calls if your app already knows the last state.