Request Trends
Dashboard
Request Trends
Get historical request trends over time
GET
Request Trends
Overview
This endpoint returns time-series data showing request trends over a specified number of months. It groups requests by month and provides counts, enabling trend analysis and visualization.Authentication
Requires JWT authentication token. Typically used by admins for analytics and reporting.Query Parameters
Number of months to look back. Defaults to 6 months if not specified.
Optional employee ID. If provided, returns trends for that employee only. If omitted, returns organization-wide trends.
Response
Response status (“success”)
Error Responses
Internal server error
Code Examples
Last 6 Months (Default)
cURL
JavaScript
Python
Custom Time Range
cURL
JavaScript
Python
Employee-specific Trends
cURL
JavaScript
Python
Example Responses
6-Month Organization Trend
Employee-specific 6-Month Trend
Visualization Examples
Line Chart
Create a line chart to visualize request volume trends over time
Area Chart
Use an area chart to emphasize cumulative volume trends
Bar Chart
Display monthly volumes as bars for easy comparison
Sparkline
Show compact inline trend visualization in dashboards or tables
Use Cases
Trend Analysis
Identify seasonal patterns or growth/decline trends in request submissions
Forecasting
Use historical trends to predict future request volumes for resource planning
Performance Reports
Include trend charts in monthly or quarterly reports to stakeholders
Employee Activity
Track individual employee request patterns over time
Notes
- Data is aggregated by month and ordered chronologically
- Months with zero requests may not appear in the response
- The
fecha_ordenfield is used internally for sorting and typically not displayed to users - Time range is calculated backwards from the current date using SQL Server’s
DATEADDfunction