Check Usage

GET/v1/usage

Check your current month's API usage.

Headers

HeaderValueRequired
AuthorizationBearer YOUR_API_KEYYes

Response

json
{
"used": 45,
"limit": 100,
"plan": "free"
}

Fields

FieldDescription
usedPDFs generated this month
limitMonthly limit for your plan
planCurrent plan (free, starter, growth)

Plan Limits

PlanMonthly Limit
Free100
Starter2,000
Growth10,000

Example

bash
curl https://api.kagyz.com/v1/usage \
-H "Authorization: Bearer YOUR_API_KEY"
javascript
const response = await fetch('https://api.kagyz.com/v1/usage', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const usage = await response.json();
console.log(`Used ${usage.used} of ${usage.limit} PDFs`);