Skip to main content
POST

Authentication

This endpoint requires Bearer token authentication with one of the following roles:
  • super_admin
  • hr_manager

Path Parameters

string
required
The unique identifier of the company (UUID format)

Request Body

This endpoint accepts multipart/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 address
  • first_name - Employee first name
  • last_name - Employee last name
  • phone - Employee phone number
  • employee_code - Internal employee code (e.g., EMP001)
  • department_id - Department UUID
  • designation_id - Designation UUID
  • level_id - Level UUID
  • role_id - Role UUID
  • status - 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 UUID
  • gender - Employee gender
  • address - Employee address
  • emergency_contact_name - Emergency contact name
  • emergency_contact_phone - Emergency contact phone
  • profile_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 of validation error objects (only present if failures occurred)
integer
Row number in CSV where error occurred
object
The employee record that failed validation
array
Array of error messages for this record
array
Array of created employee UUIDs (only present on success)