Get Pending Requests
Requests
Get Pending Requests
Retrieve all pending requests awaiting approval (Admin only)
GET
Get Pending Requests
Overview
This admin-only endpoint retrieves all requests with “Pendiente” (Pending) status. It returns paginated results with support for filtering by type, search, and date range.Authentication
Requires JWT authentication token with Admin or Super Admin role.Authorization
Admin Access Required
Only users with Admin or Super Admin roles can access this endpoint
Query Parameters
Page number for pagination
Number of records per page
Filter by request type ID (optional)
Search by employee name or ID (optional)
Filter by start date (YYYY-MM-DD format, optional)
Filter by end date (YYYY-MM-DD format, optional)
Response
Returns paginated pending requests with employee and type information.Response status (“success”)
Response data container
Array of pending request objects
Request ID
Employee ID
Start date
End date
Days requested
Request description
Creation timestamp
Error Responses
Internal server error
Code Examples
cURL
JavaScript
Python
Example Response
Use Cases
Approval Queue
Display all pending requests in an admin dashboard for quick review and approval
Filtered Review
Filter by request type to process specific categories (e.g., vacation requests only)
Search Employees
Search for pending requests from specific employees
Date-based Review
Filter by date range to review requests submitted in a specific period