Appearance
Monitor your Doppio usage: Rate-Limits and Quotas
Monitoring your Doppio API usage helps you avoid interruptions and stay within the limits of your plan. This guide explains the headers returned in each response so you can track both quota usage and rate limits.
The quota and the rate limit belong to your organization: each render made with its API key counts, whoever makes it. When the monthly quota is reached, renders are refused until the first day of next month, except on the Pro plan, which bills the documents beyond its quota.
Every response includes headers that can help you monitor usage:
Rate-limit headers
These headers help you understand your current request rate and avoid accidental throttling.
| Header Name | Description |
|---|---|
X-RateLimit-Limit | The maximum number of requests per minute you are allowed. |
X-RateLimit-Remaining | The number of requests left for the time window. |
X-RateLimit-Reset | The number of seconds remaining until the rate limit resets. |
Retry-After | The number of seconds you should wait before making another request. Present when the rate limit has been exceeded. |
Usage headers
These headers help you track your monthly usage so you know how much quota remains on your subscription.
| Header Name | Description |
|---|---|
x-doppio-subscription-limit | Your subscription limit for the current month |
x-doppio-current-month-usage | Your current usage for the month |
x-doppio-remaining-usage | The number of requests remaining for the month |
Manually check your Doppio usage with the statistics route
Route
Method: GET
Route: api.doppio.sh/v1/statistics
Response
js
{
"data": {
"month": "11",
"year": "2023",
"totalCallCount": "10223",
"successCount": "10223",
"failureCount": "0"
}
}