cURL
curl --request GET \ --url https://agent-studio.thena.ai/api/v1/flows/analytics \ --header 'x-api-key: <api-key>'
{ "analytics": { "time_period": "<string>", "flow_statistics": {}, "agent_statistics": {}, "trigger_statistics": {}, "hourly_distribution": {}, "error_analysis": {}, "performance_trends": {} }, "generated_at": "2023-11-07T05:31:56Z" }
Get execution analytics and statistics.
Provides:
Time period: 1h, 24h, 7d, 30d Time period: 1h, 24h, 7d, 30d
Filter by specific flow Filter by specific flow
Successful Response
Response model for execution analytics.
Execution analytics data
Show child attributes
Time period for analytics
Statistics per flow
Flow execution statistics.
Total number of executions
Number of successful executions
Number of failed executions
Average execution duration
Success rate as a percentage
Total tokens used across all executions
Total estimated cost
Timestamp of last execution
Statistics per agent
Execution count by trigger type
Executions by hour of day
Error count by type
Performance trends over time
When analytics were generated