events overview
Retrieves aggregated request statistics for a specific project over a given time period. This endpoint provides time-series data showing allowed and declined request counts, enabling you to monitor traffic patterns and security events.
Endpoint
Authentication
Requires API key authentication:
Path Parameters
Query Parameters
This endpoint supports standard time-based filtering parameters to specify the date range and granularity of the data:
- Time period filters - Specify start/end dates and aggregation level (hourly, daily, monthly)
- See Pagination query parameters for additional options
Response Structure
The response returns an array of time-series data points, each containing:
Example Response
Use Cases
- Traffic Monitoring: Track overall request volume trends over time
- Security Dashboard: Visualize allowed vs. declined request ratios
- Capacity Planning: Understand peak traffic periods
- Anomaly Detection: Identify unusual spikes in declined requests
- Performance Reporting: Generate reports on API protection effectiveness
- Trend Analysis: Compare traffic patterns across different time periods
Important Notes
- Data granularity depends on the time range requested (hourly for short periods, daily/monthly for longer periods)
- The
customerIdfield is alwaysnullfor project-level aggregations - Use the
idfield as a unique key when storing or processing this data - Historical data availability depends on your BotBye plan’s retention policy
Accepted permissions
Project → Project → InfoToken scope
Project View
Authentication
Personal access token. Create it in your BotBye account under Profile → Personal Access Tokens, tick the scopes the endpoints you call require (see each endpoint’s Token scope), and send the token in the X-Api-Key request header. A token works only for the account it was created in.
Path parameters
Query parameters
(Optional) Size of the lookback window, counted in interval_type units back from now. The default value is 1, meaning the current day (or the current hour if interval_type is HOUR). A negative value is rejected.
(Optional) Unit of the lookback window: HOUR or DAY, case-insensitive. Defaults to DAY. Any other value is rejected.

