Get organization usage
Changed onReturns usage charged across every workspace in an organization for an inclusive UTC day range (default: the last 30 days), as USD totals and run counts. Pass group_by to add one breakdown: per workspace, per member, per model, or per day. The figures come from the same aggregates as the in-app Organization Analytics tab; for per-generation detail with project and user columns, create a usage export instead. Requires an organization with multiple workspaces enabled, and the credential's user must hold billing permissions in that organization. An API key works for the organization that owns its workspace; an OAuth token works for any organization the user administers. Other organizations return 403.
Request
- Base URLhttps://app.flora.ai/api/v1
- URLhttps://app.flora.ai/api/v1/organizations/{organizationId}/usage
- AuthHTTP bearer
Path parameters
Organization identifier
Query parameters
First UTC day to include (YYYY-MM-DD). Defaults to 29 days before end_date.
Last UTC day to include (YYYY-MM-DD). Defaults to today (UTC).
Breakdown axis. workspace: one row per organization workspace. user: one row per member (plus agent-attributed pool spend). model: one row per model endpoint, with all technique runs combined under model_id technique. day: one row per UTC day.
Response
Organization usage returned.
Example response
{
"organization_id": "org_abc123",
"period": {
"start_date": "2026-08-01",
"end_date": "2026-08-01"
},
"workspaces": [
{
"workspace_id": "ws_abc123"
}
],
"by_workspace": [
{
"workspace_id": "ws_abc123"
}
],
"by_model": [
{
"model_id": "t2i-flux-2-pro"
}
],
"by_day": [
{
"date": "2026-08-01"
}
]
}Changes
- warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status
- warning
- info
endpoint added
- info