Plan usage reports your organization's usage against your plan's allowances, broken down by suborganization and user, e.g. to gate features or manage allowances for your own customers. It holds the same counters as the billing page's usage overview.
Each row holds one usage type in one monthly billing period: used , your plan's allowance included , and percent used. The level filter sets the granularity:
organization (default): one row per usage type.
suborganization : one row per suborganization and usage type.
user : one row per user, suborganization and usage type.
The suborganization and user levels only return mau , mav , mad , iq_conversations , sessions and views , and only rows with usage above 0.
Attribution
Usage stays with the suborganization the user was in when it happened (for views: the suborganization of the embed token; for AI conversations: the user's suborganization when the conversation was created), even if the user moves later. A user can therefore have several rows per usage type in one period, and a suborganization or group_id filter returns usage attributed to it, not the usage of its current members. username and email are current values. Main-organization users appear at the user level with a null suborganization and group_id , and count towards the organization row but not towards any suborganization row.
Allowances and percentages
included is always the organization's allowance, also on suborganization and user rows. percent is used / included × 100 , rounded down; it can exceed 100, and is null (never matching a percent filter) when included is null or 0. Enforce per-suborganization limits in your own application, based on used .
Totals
Suborganization and user rows don't always sum to the organization row:
Usage of main-organization users is in their user rows but in no suborganization row, and usage without a user (e.g. views without a username) only counts at the organization level.
A person active in several suborganizations counts as an active user ( mau , mav , mad ) and for sessions in each; the organization row counts them once.
The organization row of iq_conversations only counts conversations of current users; lower levels also keep conversations of removed users.
Billing periods
The current period is returned by default. Set period_end to a period's end date, or { "in": [...] } with up to 12, to get past periods or several periods at once; rows are sorted latest first by default. A past period is only available once Luzmo recorded its allowances at invoicing; periods from before that recording started, trials that ended without a subscription and periods billed through AWS Marketplace aren't reported. Dates that aren't a period end, future periods and unavailable periods return a validation error, which fails the whole request. At the suborganization and user levels, periods that started before this API was released return a validation error, even when the organization level can return them.
Other things to keep in mind
Only Organization Owners and Admins can retrieve plan usage, not temporary tokens. The user level includes end-user emails.
During a trial, the period is the last month of the trial. For longer trials, mau , mav , mad , sessions and views cover the whole trial.
attributes and include aren't supported.
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"
}
]
}