Get Agent Summary Statistics
GET
/api/v2/analytics/agents/summary
Analyticsv2
2.1.0
agent_id (str): List of agent IDs to filter by (can be specified multiple times)
type (str): Query type ('fixed' or 'range')
days (int): Number of days to look back (for 'fixed' type)
start_date (str): Start date in ISO format (for 'range' type)
end_date (str): End date in ISO format (for 'range' type)
time_series (bool): Whether to return data in time series format
bucket_type (str): Type of time bucket ('day', 'week', 'month')
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v2/analytics/agents/summary'
Response Response Example
200 - Standard Response
{
"success": true,
"message": "Agent summary data retrieved successfully",
"data": {
"summary": [
{}
]
}
}
Request
Query Params
agent_id
array[integer]
optional
bucket_type
enum<string>Â
optional
Allowed values:
daymonthweek
Default:
day
Example:
day
days
integerÂ
optional
Example:
30
end_date
stringÂ
optional
Example:
2024-03-31
limit
integerÂ
optional
Default:
10
Example:
10
start_date
stringÂ
optional
Example:
2024-03-01
time_series
booleanÂ
optional
Default:
false
Example:
true
type
enum<string>Â
optional
Allowed values:
fixedrange
Example:
fixed