Website →

Usage

GET /usage/ — current billing-cycle usage stats for your API key.

What it does

GET /usage/ returns your check usage for the current billing cycle: how many checks you used, your plan limit, your per-second rate tier, and whether you've exceeded the limit.

GET
/usage/

Current billing-cycle usage stats for your API key.

Example request

curl --request GET \
  --url 'https://shildmatrix.binomatrix.com/api/v1/usage/' \
  --header 'accept: application/json' \
  --header 'X-API-Key: $SHILDMATRIX_API_KEY'

Windows shells: this snippet uses bash/zsh syntax (\ line continuations and single quotes). In cmd.exe use ^ for line breaks and escaped double quotes (\"); in PowerShell use a backtick for line breaks and curl.exe on Windows PowerShell 5.1. Git Bash and WSL run it unchanged.

Example response

{
  "success": true,
  "plan": "pro",
  "checks_used": 12430,
  "checks_limit": 300000,
  "rate_limit_per_second": 50,
  "period": "2026-11",
  "period_end": "2026-11-15T12:00:00+00:00",
  "exceeded": false
}

Authentication

X-API-Key header (API key only — JWT is not accepted).

Errors

  • 401 — missing or invalid API key.
  • 402 — the account has no active plan; the body is the same subscription_required object as POST /check/:
    {
      "success": false,
      "error": "subscription_required",
      "message": "Choose a plan to activate your API key."
    }
    

Response fields

FieldTypeDescription
successbooleanAlways true on success
planstringPlan id (starter, pro)
checks_usednumberChecks used in the current billing period
checks_limitnumberMonthly check limit for the plan (Starter 50,000, Pro 300,000)
rate_limit_per_secondnumberPer-second rate tier (Starter 10, Pro 50)
periodstringCurrent billing period, YYYY-MM
period_endstring | nullISO 8601 timestamp of the current cycle's end (subscription-anchored)
exceededbooleantrue when checks_used >= checks_limit. Exceeding the limit is never an API error — checks fail open (see quota on POST /check/)