Usage & Billing

GET/v1/usage

Returns your organization's current plan, usage statistics, and billing period.

Example

cURL
curl https://api.dokai.dev/v1/usage \
  -H "Authorization: Bearer dk_live_your_api_key"

Response

200 OK
{
  "plan": {
    "name": "Pro",
    "parse_quota": 5000,
    "data_retention_days": 30
  },
  "billing_period": {
    "start": "2026-03-01T00:00:00Z",
    "end": "2026-03-31T23:59:59Z"
  },
  "usage": {
    "parses_used": 1247,
    "parses_remaining": 3753,
    "percentage_used": 24.9
  }
}

Response fields

FieldTypeDescription
plan.namestringCurrent plan name
plan.parse_quotaintegerMonthly parse limit
plan.data_retention_daysintegerHow long results are stored
billing_period.startstringISO 8601 billing period start
billing_period.endstringISO 8601 billing period end
usage.parses_usedintegerParses consumed this billing period
usage.parses_remainingintegerParses left before hitting quota
usage.percentage_usednumberQuota consumption as a percentage

Note: Usage data updates in near real-time. The billing period resets automatically based on your subscription cycle. You can also view detailed usage breakdowns in the dashboard.