Request Distribution
Dashboard
Request Distribution
Get request distribution statistics by type and status
GET
Request Distribution
Overview
This endpoint returns request distribution analytics, showing breakdowns by request type and by status. It can be filtered by time range and scoped to a specific employee or organization-wide.Authentication
Requires JWT authentication token. Typically used by admins for analytics dashboards.Query Parameters
Time range filter. Supported values:
mes_actual- Current month only- Omit parameter for all-time data
Optional employee ID. If provided, returns distribution for that employee only. If omitted, returns organization-wide distribution.
Response
Response status (“success”)
Distribution data object
Error Responses
Internal server error
Code Examples
All-time Organization Distribution
cURL
JavaScript
Python
Current Month Employee Distribution
cURL
JavaScript
Python
Example Responses
Organization-wide All-time Distribution
Employee Current Month Distribution
Visualization Examples
Pie Chart by Type
Use
por_tipo data to create a pie chart showing the composition of request typesBar Chart by Status
Use
por_estado data to create a bar chart showing approval rates and pending volumesStacked Chart
Combine both datasets to show request types broken down by status
Comparison View
Compare current month vs all-time distributions to identify trends
Use Cases
Analytics Dashboard
Display distribution charts on admin dashboard for insights into request patterns
Resource Planning
Understand which request types are most common to plan resources accordingly
Approval Metrics
Calculate approval rates by comparing approved vs rejected/cancelled counts
Employee Reports
Generate employee-specific reports showing their request history breakdown