Plan usage lets you track your organization's usage against the allowances of your plan, such as active users and AI conversations, and see which of your suborganizations and users drive that usage, e.g. to gate features or manage allowances for your own customers. It contains the same counters as the usage overview of the billing page in the Luzmo application, without prices, discounts or charge estimates.
Plan usage is read-only and reports monthly billing periods: the current one by default, or up to 12 past or current ones selected with period_end . Each row contains the usage of one usage type in one period ( used , in the unit given by unit ), the allowance of your plan for that type in that period ( included ) and the percentage of the allowance used ( percent ). Rows are returned at one of three levels, selected with the level filter:
organization (default): one row for each usage type ( mau , mav , mad , iq_conversations , warp_rows , sessions , views and storage ).
suborganization : one row per suborganization and usage type.
user : one row per user, suborganization and usage type.
At the suborganization and user levels, only mau , mav , mad , iq_conversations , sessions and views are returned, and only rows with a usage above 0. Warp synced rows and storage cannot be attributed to individual users.
Attribution at the time of use
Usage belongs to the suborganization the user was in when it happened, and moving a user to another suborganization never moves their past usage. A view counts towards the suborganization of the embed token it was made with, and an AI conversation towards the suborganization of the user when the conversation was created. For example, if Jane creates 20 conversations at Acme, then joins Globex and creates 5 more there, Acme has 20 conversations, Globex 5 and the organization 25.
As a result, a user can have several rows for the same usage type in one period, one per suborganization they used Luzmo in. Filtering on suborganization or group_id returns the usage attributed to that suborganization, not all the usage of its current members.
The username and email of user rows are the user's current values, not the values at the time of use: they identify the user, they are not a history of their identity.
Users of the main organization (without a suborganization) are returned at the user level with a null suborganization and group_id , count towards the organization row, and are not part of any suborganization row.
Allowances and percentages
included is always the allowance of your organization for the selected period, also on suborganization and user rows: there are no allowances per suborganization or user. percent is used divided by included , times 100, rounded down, e.g. 996 of 1000 is 99%, 1000 of 1000 is 100% and 1250 of 1000 is 125%. It can exceed 100 when the allowance is exceeded, and it is null when included is null (no counted allowance) or 0. Rows with a null percent never match a percent filter.
On suborganization and user rows, percent is the share of the organization's allowance: if your organization includes 1000 AI conversations and Acme used 80, the Acme row has included 1000 and percent 8. A limit of your own, such as 100 conversations for Acme, has to be enforced in your application. Because percent is rounded down, base exact blocking decisions on used and your own threshold rather than on percent .
Totals
Suborganization and user rows do not always add up to the organization row:
Usage without a suborganization (main-organization users) and usage that cannot be attributed to a user (e.g. views without a username) only count towards the organization row, so the sum of the suborganizations can be lower than the organization's total.
A person who was active in several suborganizations in the period counts as an active user ( mau , mav , mad ) in each of them, so the sum of the suborganizations can be higher than the organization's distinct count. The same goes for sessions . The organization row counts every person once.
The organization row of mav , sessions and views can be based on browser fingerprints instead of usernames when usernames are not unique enough.
The organization row of iq_conversations follows the billing rule and only counts conversations of the organization's current users, while suborganization and user rows keep the conversations of users that were removed since.
Past periods
Set period_end to the end of a billing period to retrieve that period, or to { "in": [...] } with up to 12 period ends to retrieve several periods in one request, e.g. to follow a suborganization over the last months. Every row carries its period_start and period_end , and rows are sorted with the latest period first by default. The end of the current period is its period_end , and the end of the previous period is usually the period_start of the current one. A period can be reported once Luzmo recorded its allowances, which happens when the period is invoiced. Periods that ended before that was in place, and periods that were not invoiced by Luzmo (e.g. a trial that ended without a subscription, or a plan billed through AWS Marketplace), cannot be reported and return a validation error, as do dates that are not the end of a billing period and periods that have not started yet. When one of several requested periods cannot be reported, the whole request returns that validation error.
The suborganization and user levels are only available for periods in which all usage was attributed to users and suborganizations at the time of use. That recording started with this API: a billing period that was already running when it was rolled out is not fully attributed, and returns a validation error at those levels, while the organization level stays available. The first fully attributed period is the first one that starts after the rollout. The error message contains the earliest fully attributed period, when there is one.
Other things to keep in mind
Accessible to Organization Owners and Organization Admins, at every level and for every available period. The user level returns end-user emails. Temporary tokens cannot retrieve plan usage.
Results are always scoped to your organization.
During a trial, the billing period is the month before the end of the trial. When the trial lasts longer than a month, mau , mav , mad , sessions and views cover the whole trial, while AI conversations and Warp synced rows only cover the last month. The billing page only shows a trial period once its end is less than a month away.
like and ilike filters match values that contain the given text: % is added around the value. % and _ in the value keep their meaning of wildcards (any text and any single character).
Only the filters, order properties and options listed below are supported. Unknown properties (including attributes and include ) and filters that are not supported at the requested level result in a validation error.
npm install @luzmo/nodejs-sdk{
"count": 8,
"rows": [
{
"level": "organization",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization": null,
"group_id": null,
"user_id": null,
"username": null,
"email": null,
"type": "mau",
"used": 412,
"unit": "users",
"included": 500,
"percent": 82,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-11-01T00:00:00.000Z"
},
{
"level": "organization",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization": null,
"group_id": null,
"user_id": null,
"username": null,
"email": null,
"type": "mav",
"used": 3120,
"unit": "users",
"included": 5000,
"percent": 62,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-11-01T00:00:00.000Z"
},
{
"level": "organization",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization": null,
"group_id": null,
"user_id": null,
"username": null,
"email": null,
"type": "mad",
"used": 18,
"unit": "users",
"included": 25,
"percent": 72,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-11-01T00:00:00.000Z"
},
{
"level": "organization",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization": null,
"group_id": null,
"user_id": null,
"username": null,
"email": null,
"type": "iq_conversations",
"used": 820,
"unit": "conversations",
"included": 1000,
"percent": 82,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-11-01T00:00:00.000Z"
},
{
"level": "organization",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization": null,
"group_id": null,
"user_id": null,
"username": null,
"email": null,
"type": "warp_rows",
"used": 12.4,
"unit": "million_rows",
"included": 50,
"percent": 24,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-11-01T00:00:00.000Z"
},
{
"level": "organization",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization": null,
"group_id": null,
"user_id": null,
"username": null,
"email": null,
"type": "sessions",
"used": 9875,
"unit": "sessions",
"included": null,
"percent": null,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-11-01T00:00:00.000Z"
},
{
"level": "organization",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization": null,
"group_id": null,
"user_id": null,
"username": null,
"email": null,
"type": "views",
"used": 48210,
"unit": "views",
"included": 100000,
"percent": 48,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-11-01T00:00:00.000Z"
},
{
"level": "organization",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization": null,
"group_id": null,
"user_id": null,
"username": null,
"email": null,
"type": "storage",
"used": 3.2,
"unit": "gb",
"included": 10,
"percent": 32,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-11-01T00:00:00.000Z"
}
]
}