Check Usage
GET/v1/usage
Check your current month's API usage.
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer YOUR_API_KEY | Yes |
Response
json
{"used": 45,"limit": 100,"plan": "free"}
Fields
| Field | Description |
|---|---|
used | PDFs generated this month |
limit | Monthly limit for your plan |
plan | Current plan (free, starter, growth) |
Plan Limits
| Plan | Monthly Limit |
|---|---|
| Free | 100 |
| Starter | 2,000 |
| Growth | 10,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`);