Get Request by ID
Requests
Get Request by ID
Retrieve detailed information about a specific request
GET
Get Request by ID
Overview
This endpoint retrieves complete details of a specific request by its ID. All authenticated users can access this endpoint, but employees can only view their own requests unless they have admin privileges.Authentication
Requires JWT authentication token in the Authorization header.Path Parameters
The unique identifier of the request
Authorization Rules
Employees
Can only view their own requests
Admin/Super Admin
Can view any request in the system
Response
Returns a detailed request object with related information.Request ID
Employee ID who created the request
Request type ID
Request status ID
Start date (YYYY-MM-DD HH:mm:ss)
End date (YYYY-MM-DD HH:mm:ss)
Number of days requested
Request description
URL to supporting document (if any)
Request creation timestamp
Request type details
Type name (e.g., “Vacaciones”, “Permiso”, “Ausencia”)
Request status details
Status name (e.g., “Pendiente”, “Aprobada”, “Rechazada”)
Error Responses
Request not found
Forbidden - User doesn’t have permission to view this request
Internal server error
Code Examples
cURL
JavaScript
Python