GET /v1/usage
GET https://api.deskew.dev/v1/usage
Returns usage for the organization that owns the key, across all its projects, for the key’s mode (test or live), within the current billing cycle. Any valid key may call it today; give integration keys usage:read so they keep working when scope enforcement lands.
Example
Section titled “Example”curl https://api.deskew.dev/v1/usage -H "Authorization: Bearer $DESKEW_API_KEY"usage = requests.get(f"{API}/v1/usage", headers=HEADERS).json()remaining = (usage["included_pages"] or 0) - usage["credits"]const usage = await (await fetch(`${API}/v1/usage`, { headers })).json();const remaining = (usage.included_pages ?? 0) - usage.credits;Response
Section titled “Response”{ "object": "usage", "plan": "pro", "env": "live", "cycle": { "start": "2026-11-15", "end": "2026-12-15" }, "pages": 6210, "credits": 6874, "premium_credits": 412, "jobs": 1893, "included_pages": 10000}| Field | Meaning |
|---|---|
plan |
free, pro, scale or enterprise |
env |
test or live, from the key |
cycle |
Start (inclusive) and end (exclusive) dates of the current monthly cycle, anchored on the organization’s billing day |
pages |
Pages processed |
credits |
Credits consumed; this is what is compared against included_pages |
premium_credits |
The part of credits that came from premium engine use, handwriting, fields and schema |
jobs |
Jobs created, including failed ones |
included_pages |
The plan’s monthly allowance; null on Enterprise |
Test usage is reported with the same shape but is never billed.
Errors
Section titled “Errors”| Status | Code |
|---|---|
| 401 | missing_api_key, invalid_api_key, key_revoked, key_expired |
| 403 | ip_not_allowed |
| 429 | rate_limited |