Skip to content

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 NameDescription
X-RateLimit-LimitThe maximum number of requests per minute you are allowed.
X-RateLimit-RemainingThe number of requests left for the time window.
X-RateLimit-ResetThe number of seconds remaining until the rate limit resets.
Retry-AfterThe 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 NameDescription
x-doppio-subscription-limitYour subscription limit for the current month
x-doppio-current-month-usageYour current usage for the month
x-doppio-remaining-usageThe 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"
    }
}

All rights reserved