Get Agent Document Count Data
GET
/api/v2/analytics/agents/document-counts
Analyticsv2
include_types (bool): Whether to include document type breakdown (default: true)
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')
limit (int): Number of top entities to return per date bucket (default: 10)
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v2/analytics/agents/document-counts'
Response Response Example
200 - Response without document types
{
"success": true,
"message": "Agent document data retrieved successfully",
"data": {
"document_counts": [
{
"agent_name": "Example Agent",
"total_documents": 100
}
]
}
}
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
include_types
booleanÂ
optional
Default:
true
Example:
true
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