Skip to main content
GET
Get current usage projections

Authorizations

Authorization
string
header
required

The Checkly Public API uses API keys to authenticate requests. You can get the API Key here. Your API key is like a password: keep it secure!

Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID.

For example, set Authorization header while using cURL: curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"

Headers

x-checkly-account
string<uuid>

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Query Parameters

usageTermsId
string<uuid>

The usage term to project. Defaults to the term in force today.

asOf
string<date>

Inclusive completed UTC date. Defaults to yesterday UTC; today and future dates are rejected.

Response

Successful

Whole-term projections from v2-priced daily charges. Amounts are in the unit of the term and use four decimals; percentages and exhaustion weeks use two. Reads are live, including historical asOf dates.

usageTermsId
string<uuid>
required
asOf
string<date>
required

Requested completed UTC date, including when it falls outside the term.

period
object | null
required

Usage start through the earlier of asOf and term end. Null before usage starts.

weeksSinceStart
integer
required
Required range: x >= 0
weeksRemaining
integer
required
Required range: x >= 0
unit
enum<string>
required

What every amount of the term counts: credits for a contract term, US cents for a Stripe-billed account.

Available options:
credits,
usdCents
creditsUsed
number | null
required

Deprecated: use unitsUsed. Credits rounded to four decimals per resource-day and applied rate, before aggregation. Rules absent from configured pricing contribute zero. Null means unavailable or incompatible pricing, or uncovered dates.

Required range: x >= 0
unitsUsed
number | null
required

In the unit of the term, rounded to four decimals per resource-day and applied rate, before aggregation. Rules absent from configured pricing contribute zero. Null means unavailable or incompatible pricing, or uncovered dates.

Required range: x >= 0
remainingCredits
number | null
required

Deprecated: use unitsRemaining. Term budget minus credits used. Negative when over budget.

unitsRemaining
number | null
required

Term budget minus units used. Negative when over budget.

budgetedDailyCredits
number | null
required

Deprecated: use budgetedDailyUnits. Term budget divided by inclusive days from usage start through contract end, rounded to four decimals. Null when the budget is unavailable.

Required range: x >= 0
budgetedDailyUnits
number | null
required

Term budget divided by inclusive days from usage start through contract end, rounded to four decimals. Null when the budget is unavailable.

Required range: x >= 0
windows
object
required