Introduction
The Employees API provides endpoints to manage and retrieve employee information within the Integra system. This API allows you to query employee records, access supervisor lists, and retrieve detailed employee information including organizational relationships and contact details. All endpoints in this API require authentication via Bearer token.Base URL
All employee endpoints are prefixed with:Employee Model
TheEmpleado model represents an employee in the system with the following structure:
Unique identifier for the employee
Employee code (unique identifier, max 20 characters)
Employee’s first name (max 50 characters)
Employee’s paternal surname (max 50 characters)
Employee’s maternal surname (max 50 characters)
Full name (automatically generated, max 152 characters)
Employee’s position information
Employee’s department information
Business unit information
Employee contact information
Hire date (ISO 8601 format: YYYY-MM-DD)
Termination date (ISO 8601 format: YYYY-MM-DD)
Rehire date if applicable (ISO 8601 format: YYYY-MM-DD)
Employee status (default: “A” for Active)
Gender
List of managers/supervisors for this employee
Response Wrapper
All successful API responses are wrapped in a standardResponseData object:
Indicates whether the request was successful
The actual response data (employee object or array of employees)
Descriptive message about the operation
Optional metadata (e.g., pagination information)
Common Use Cases
1. List All Employees
Retrieve a list of all employees in the system, with optional filtering by department, position, unit, supervisor, or status.2. Get Employee Details
Fetch comprehensive information about a specific employee, including their organizational relationships, contact information, and assigned managers.3. Get Supervisors
Retrieve a list of employees who have supervisor roles, optionally filtered by active status.4. Filter Employees
Query employees using various filter criteria:- By supervisor ID
- By position ID
- By department
- By business unit
- By zone
- By employee code
- By status (active/inactive)
Authentication
All endpoints require authentication using a Bearer token in the Authorization header:Error Handling
Error responses follow this structure:200 OK- Request successful400 Bad Request- Invalid request parameters401 Unauthorized- Missing or invalid authentication404 Not Found- Employee not found500 Internal Server Error- Server error
Next Steps
Employee Management
Learn about all CRUD operations and filtering options
Authentication
Set up authentication for API access