Retrieve usage
GET/v1/usageKey scope read
Returns the organisation's checks for the current period (used, included, remaining and extra) and the project's traffic for a date range: totals and a breakdown per day, per template and per advanced policy. Traffic made with test keys is not counted.
Needs a key with the read scope. Authentication
Query parameters
fromdateFirst day of the project breakdown, as
YYYY-MM-DD. Default: the first day of the current calendar month. It does not change the checks figures, which always cover the current period.todateLast day of the project breakdown, as
YYYY-MM-DD. Default: today.
Returns
The usage summary.
- 200 OKAn usage object
Errors
- 422
validation_errorfromortois not a date in the formYYYY-MM-DD.
Every endpoint can also answer the errors any request can meet: a missing key, a rate limit, a malformed body. Errors
Something missing or unclear on this page? Write to support@useinfrared.com.