Employees
Bulk Upload Employees
Upload a CSV file to create multiple employees in bulk
POST
Authentication
This endpoint requires Bearer token authentication with one of the following roles:super_adminhr_manager
Path Parameters
string
required
The unique identifier of the company (UUID format)
Request Body
This endpoint acceptsmultipart/form-data.
file
required
CSV file containing employee data. File must have a
.csv extension or text/csv content type.CSV Format
The CSV file must include the following headers (column order is flexible):Required Columns
email- Employee email addressfirst_name- Employee first namelast_name- Employee last namephone- Employee phone numberemployee_code- Internal employee code (e.g., EMP001)department_id- Department UUIDdesignation_id- Designation UUIDlevel_id- Level UUIDrole_id- Role UUIDstatus- Employee status (active, inactive, on_leave, terminated, probation)employment_type- Employment type (full_time, part_time, contract, intern)hire_date- Hire date (YYYY-MM-DD format)
Optional Columns
password- Employee password (if empty, temporary password will be generated)date_of_birth- Date of birth (YYYY-MM-DD format)manager_id- Manager UUIDgender- Employee genderaddress- Employee addressemergency_contact_name- Emergency contact nameemergency_contact_phone- Emergency contact phoneprofile_image_url- Profile image URL
Example CSV
Response
boolean
Indicates if the request was successful
string
Status message
object
integer
Number of employees successfully created
integer
Number of employees that failed validation
array
array
Array of created employee UUIDs (only present on success)