Skip to content

Usage and reports

Limitry counts every check per limit, per subject, per hour. Reports in the app and the API are at most about a minute behind. Test and live each have their own usage. The app shows the environment you picked, and the API returns usage for the key’s environment.

The Usage page shows two things for the limit you pick:

  • Last 30 days: the units all subjects used each day (UTC). A plan that keeps less history shows fewer days, such as 7 on Free.
  • Right now: the subjects using the limit, most used first. Each row shows what the subject has used and has left in its current period. For a limit that resets on each subject’s billing date or from first use, that’s the subject’s own period. When a limit has said no to a subject, the row shows how many of its checks got a no. When another subject’s limit said no, such as a team’s budget, the row names that subject. A check that uses several budgets counts in each of them, so the rows don’t add up to a total. The owner and admins can click Reset to reset a subject at once, and members can in test. See When limits reset.
The Usage page's Last 30 days chart for AI budget: about 12,000 cents used by every user together, per day, rising over the month with quieter weekends. The Usage page's Last 30 days chart for AI budget: about 12,000 cents used by every user together, per day, rising over the month with quieter weekends. The Usage page's Last 30 days chart for AI budget: about 12,000 cents used by every user together, per day, rising over the month with quieter weekends. The Usage page's Last 30 days chart for AI budget: about 12,000 cents used by every user together, per day, rising over the month with quieter weekends.
The Usage page's Right now table, listing who used the most this month. The top two users used all 200 cents, and 6 and 2 of their checks got a no. The Usage page's Right now table, listing who used the most this month. The top two users used all 200 cents, and 6 and 2 of their checks got a no. The Usage page's Right now table, listing who used the most this month. The top two users used all 200 cents, and 6 and 2 of their checks got a no. The Usage page's Right now table, listing who used the most this month. The top two users used all 200 cents, and 6 and 2 of their checks got a no.

At the bottom of the page, Busiest lists the five subjects that made the most checks per second in the last 7 days, and when that happened. The figure is the checks in the subject’s busiest minute, divided by 60. A check counts for every subject it names, including its shared subjects. A team’s pool takes the checks of all its users, so it can be busier than any one of them. Limitry handles up to about 100 checks a second on one subject. A subject making 60 or more a second gets a note that it’s busy. Limitry is still handling it, and there’s nothing for you to do.

Below it, Recent checks lists each check from the last 3 days, newest first: every subject it named, its action and cost, and whether Limitry allowed it. A refused check names the subject whose budget refused it. Limitry keeps the last 3 days, and at most 100,000 checks in each environment. Click any subject to open its page (see Subjects, names and links).

Your code can read a limit’s use over time, by day (the default) or by hour. It can also see who is using the limit in the current window, or who used it most in a past period. Name the limit by its ID or by its name. A key or token needs the limits:read scope.

import { createClient } from "@limitry/sdk";
// Uses the LIMITRY_API_KEY environment variable.
const limitry = createClient();
const lastMonth = await limitry.usage.query({
limitName: "AI budget",
period: "last_month",
});
const busiest = await limitry.usage.subjects({
limitName: "AI budget",
period: "last_month",
});
const now = await limitry.usage.subjects({ limitName: "AI budget" });
console.log(lastMonth.total, busiest.subjects, now.subjects);

The history has every bucket in the range, including empty ones. Each bucket has used, allowed and refused. total adds them up for the whole range. To see one subject, add subject as kind:id, such as user:user_123. To see a different range, add a period, or from and to as ISO 8601 times. A time can end in Z or an offset, such as +05:00. The default range is the last 30 days. No range reaches further back than your plan’s history, which is 7 days on Free. See Plan allowances.

period The range, in UTC
today From midnight to now
this_week From Monday to now
last_week The week before this one, Monday to Monday
this_month From the 1st to now
last_month The whole calendar month before this one

A name matches an active limit in the same environment. An exact match comes first. Otherwise, the name matches whatever its case. When two limits match that way, the request fails with a 400: send the exact name or the ID.

Both answers name the limit with its unit, amount and window, so you can read the numbers without fetching the limit. The ranking of subjects also says when the current window resetsAt.

The ranking of subjects covers the current window by default. With a period or a range, it ranks the subjects by their use in that range instead. Each one’s remaining is then null, since what’s left belongs to the current window. To list the most refused first, add sort as refused. The answer’s subjects ranks at most 50 subjects, or 25 for a concurrent limit. top sets fewer.

The overview gives every active limit’s usage in one answer. Each limit comes with its unit, amount and window, its total, and its top subjects. It covers each limit’s current window by default, the whole window on every plan. Add a period, or from and to, for a past range. A past range reaches no further back than your plan’s history. With sort as refused, each limit lists only the subjects it refused. top sets how many subjects each limit lists, up to 20. A balance (window total) also lists its credits: the credits added and taken back in the range, and the latest credits, newest first.

import { createClient } from "@limitry/sdk";
const limitry = createClient();
const overview = await limitry.usage.overview({ period: "last_month" });
for (const limit of overview.limits) {
console.log(limit.limitName, limit.total.used, limit.unit);
}

used is net. Limitry gives back the unused part of a committed reservation, and all of a released one.

For a balance (window total), what’s left includes the credits you’ve added.

Limitry keeps usage history as long as your plan shows it, then deletes it.

Plan History kept
Free 7 days
Pro 90 days
Business 13 months
Enterprise What your agreement says

Limitry always keeps each limit’s current period whole, such as this month for a monthly limit. When your plan changes to one that keeps less, Limitry keeps the older history for 30 days, then deletes it. If you upgrade again within those 30 days, Limitry keeps all of it.

To read a whole billing period after it ends, use Pro or Business. On Free, send each finished hour to your billing system as it ends, as Use Limitry with Stripe does.

The first time a limit refuses a subject in a window, your webhook endpoints receive limit.reached. Here a user has spent this month’s AI budget:

{
"type": "limit.reached",
"data": {
"limitId": "lmt_…",
"limitName": "AI budget",
"action": "ai-call",
"unit": "cents",
"window": "month",
"subject": { "kind": "user", "id": "user_123" },
"environment": "live",
"periodStart": "2026-10-01T00:00:00.000Z",
"resetsAt": "2026-11-01T00:00:00.000Z"
}
}

Limitry sends it once per subject, limit and window, not on every check that gets a no. environment says whether it happened in test or live, and only that environment’s endpoints receive it. For a balance, periodStart and resetsAt are null. Add an endpoint under Settings → Developers.

To hear before a limit says no, use limit.threshold_crossed. Limitry sends it at 80% and 100% of a limit. See Warnings before a limit.

limitry.standing(...) in the SDKs tells you where one subject stands on every limit that applies to it, exactly as a check would see it. On the CLI, it’s limitry subjects standing. Call it to show your users how much they have left. See Show users where they stand.