Get admin usage report
Returns period-bucketed usage metrics across all organizations. Use organization_name as a group_by dimension for organization-level dashboards. For money or credit totals, use the admin spend report endpoint instead.
Request
- Base URL: https://api.sanifu.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.sanifu.ai/api/v1/admin/billing/usage/report
- Auth: one of:
- OAuth 2 (password, token URL auth/jwt/login)
- HTTP basic
Query parameters
Preset date range. Use custom with start_date and end_date for an explicit range.
Time bucket size for rows in the report.
Inclusive start date. Required when preset=custom.
Inclusive end date. Required when preset=custom.
Dimensions to group by in addition to the period bucket. Supports up to 3 values. Admin reports can use organization_name for cross-organization charts.
Usage metrics to return. These are named dashboard metrics such as task runs, task steps, runtime minutes, and AI input/output tokens. Usage reports do not include money or credit totals; use spend/report for usd and credits.
Filter by source: execution or builder.
Filter by AI/service provider returned by billing events, such as openai, anthropic, aws.
Filter by model name, such as gpt-6-sol or claude-sonnet-4.
Filter by usage item type, such as input_tokens, output_tokens, runtime_minutes, pages, requests, or agent_call.
Filter by credit transaction type, such as workflow_execution or agent_usage.
Filter by billing environment: production or sandbox.
Filter by organization ID. Most useful with the admin organization lookup endpoint for unique organization selection.
Filter by organization name. Most useful on admin reports.
Filter by AI/builder agent name, such as intent_analyzer. This is not the data app name.
Filter by data app name for readable dashboards.
Filter by workflow name.
Filter by workflow component name, such as ai_classifier or textract_reader.
Filter by execution record category, such as runtime or component.
Filter by runtime container tier used for runtime usage.
Filter by execution context, such as direct, for_each, or parallel.
Filter by loop type, such as parallel_map or for_each.
Filter by triggering app type, such as gmail, slack, scheduler, or pubsub.
Filter by integration pattern, such as webhook, schedule, or pubsub.
Response
Successful Response
Example response
{
"end_date": "2026-05-08",
"granularity": "day",
"group_by": [
"data_app_name"
],
"metrics": [
"task_runs",
"task_steps",
"runtime_minutes",
"ai_input_tokens",
"ai_output_tokens"
],
"rows": [
{
"dimensions": {
"data_app_name": "Invoice Processor"
},
"metrics": {
"ai_input_tokens": "350000.0000",
"ai_output_tokens": "81142.0000",
"runtime_minutes": "94.1200",
"task_runs": 32,
"task_steps": 188
},
"period_end": "2026-05-02",
"period_start": "2026-05-01"
}
],
"start_date": "2026-04-09",
"summary": {
"ai_input_tokens": "1829304.0000",
"ai_output_tokens": "418205.0000",
"runtime_minutes": "682.4400",
"task_runs": 218,
"task_steps": 1432
}
}Changes
No recorded changes to this operation across all 1 revision of this API.