Usage
Usage reports the organisation's checks for the current period (used, included, remaining and extra) and the project's traffic for a date range.
Endpoints
The usage object
The organisation's checks for the current period and the project's traffic for a date range.
{
"object": "usage_summary",
"checks_used": 20,
"checks_quota": 250000,
"checks_remaining": 249980,
"extra_checks": 0,
"period_start": "2026-10-08",
"period_end": "2026-11-01",
"resets_at": "2026-11-01T00:00:00.000Z",
"project": {
"object": "usage",
"period": {
"from": "2026-10-01",
"to": "2026-10-08"
},
"environment": "live",
"totals": {
"moderations": 20,
"checks": 20,
"flagged": 15,
"allowed": 5,
"reviewed": 0,
"rejected": 15,
"cached": 0,
"partial": 0,
"failed": 0
},
"by_day": [
{
"date": "2026-10-08",
"moderations": 20,
"checks": 20,
"flagged": 15
}
],
"by_template": [
{
"template": "review",
"moderations": 20,
"checks": 20,
"flagged": 15,
"rejected": 15,
"reviewed": 0
}
],
"by_policy": [
{
"policy": "made_with_ai",
"moderations": 20,
"checks": 20
}
]
}
}Attributes
object"usage_summary"Always
usage_summary.checks_usedintegerChecks consumed from the period's allowance, across all projects of the organisation.
checks_quotaintegerChecks included in the period: the plan's monthly checks plus any credit added to the period.
checks_remainingintegerChecks left in the period's allowance:
checks_quotaminuschecks_used.extra_checksintegerPurchased extra checks that are still available. They are used only after the period's allowance is spent, carry over between periods and expire 365 days after purchase.
period_startdateFirst day of the current period, as
YYYY-MM-DD. A period is a calendar month in UTC, or a month counted from the subscription's billing date.period_enddateThe day the period ends and the next one begins, as
YYYY-MM-DD.resets_attimestampWhen the allowance resets, ISO 8601 in UTC. The same moment as
period_end.projectmapTraffic of the key's project for the requested date range, live keys only. It is aggregated every 5 minutes, so the most recent moderations can be missing.
objectstringAlways
usage.periodobjectThe date range covered.
fromstringFirst day of the range, as
YYYY-MM-DD.tostringLast day of the range, as
YYYY-MM-DD.
environmentstringAlways
live.totalsobjectCounts over the range:
moderations,checks,flagged,allowed,reviewed,rejected,cached,partialandfailed.by_dayarrayOne entry per day that had traffic, in date order:
date,moderations,checksandflagged.by_templatearrayOne entry per template:
template(the slug),moderations,checks,flagged,rejectedandreviewed.by_policyarrayOne entry per advanced policy:
policy,moderationsandchecks.checksadds the policy's catalog weight once for every moderation whose template enables it, so it is not a share oftotals.checks.
Something missing or unclear on this page? Write to support@useinfrared.com.