Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Rampop01/HR-Platform/llms.txt
Use this file to discover all available pages before exploring further.
Employee
Basic employee information returned by list and search endpoints.Interface
Fields
Employee’s unique identifier
Employee’s full name. Mapped from
full_name or name in raw API response.Employee’s email address
Employee’s job title or position
Department name (e.g., Engineering, Sales, Marketing)
Office location or city
Employment type. Mapped from
employment_type or emp_type in raw API response.Common values:Full-timePart-timeContractIntern
Employment statusCommon values:
activeinactiveon_leave
Start date in ISO format (YYYY-MM-DD)
URL to employee’s avatar image. Mapped from
image_url or avatar in raw API response. Optional field.Index Signature
The interface includes an index signature[key: string]: any to allow additional fields from the API that may not be explicitly typed.
Example
Usage
EmployeeDetail
Extended employee information with personal details, salary, and emergency contact. Returned by the single employee endpoint.Interface
Additional Fields
Includes all fields fromEmployee plus:
Employee’s phone number. Mapped from
phone or phone_number in raw API response.Date of birth in ISO format (YYYY-MM-DD). Mapped from
dob or date_of_birth in raw API response.Employee’s home address
Current salary amount. Mapped from
current_salary or salary in raw API response.Manager’s full name
Manager’s employee ID for relational lookup
Next of kin full name. Mapped from
next_of_kin or next_of_kin_name in raw API response.Relationship to next of kin. Mapped from
next_of_kin_relationship or relationship in raw API response.Common values:SpouseParentSiblingChildFriend
Next of kin phone number. Mapped from
phone_no_nok or next_of_kin_phone in raw API response.Full years of employment with the company
Additional months of employment beyond full years (0-11)
Spouse’s name, or null if not applicable
Example
Usage
EmployeesResponse
Paginated response containing an array of employees.Interface
Fields
Array of Employee objects
Current page number (1-indexed)
Number of items per page (typically 15)
Total number of employees across all pages
URL for the next page of results, or null if on the last page
URL for the previous page of results, or null if on the first page
Example
Usage
Field Mapping Reference
The API client automatically maps raw API field names to standardized interface fields:Employee Mapping
| Interface Field | Raw API Fields |
|---|---|
name | full_name or name |
employment_type | employment_type or emp_type |
avatar | image_url or avatar |
EmployeeDetail Additional Mapping
| Interface Field | Raw API Fields |
|---|---|
phone | phone or phone_number |
date_of_birth | dob or date_of_birth |
salary | current_salary or salary |
next_of_kin_name | next_of_kin or next_of_kin_name |
next_of_kin_relationship | next_of_kin_relationship or relationship |
next_of_kin_phone | phone_no_nok or next_of_kin_phone |
Related
- Employees List API - Fetch employee lists
- Employee Details API - Get detailed employee info
