Request Usage-By-Agent Report
lyzr_report_usage_by_agentRequest an async usage report grouped by agent, receiving a job ID to poll for completion and retrieve results.
Instructions
Request an async usage report broken down by agent. Returns a job_id; poll with lyzr_report_get_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Filter by model name | |
| end_date | No | End date (YYYY-MM-DD), required when timeframe is 'custom' | |
| group_by | No | Optional row-splitting dimension: 'month' splits by calendar month, 'billing_cycle' splits by the org's subscription cycle. Omit for a single aggregated row per entity. | |
| timeframe | Yes | Timeframe preset for the report window. Use 'custom' with start_date/end_date. | |
| agent_type | No | Filter by agent type | |
| created_by | No | user_id to filter agents by creator | |
| start_date | No | Start date (YYYY-MM-DD), required when timeframe is 'custom' | |
| include_sub_orgs | No | When true, include agents from the current org AND all its sub-orgs |