curl -X GET "https://api.companyflow.com/companies/123e4567-e89b-12d3-a456-426614174000/employees?page=1&page_size=10&status=active&search=john" \ -H "Authorization: Bearer YOUR_TOKEN"
{ "success": true, "data": { "employees": [ { "id": "emp-uuid-1", "company_id": "123e4567-e89b-12d3-a456-426614174000", "email": "[email protected]", "phone": "+1234567890", "first_name": "John", "last_name": "Doe", "employee_code": "EMP001", "department_id": "dept-uuid-here", "designation_id": "desig-uuid-here", "level_id": "level-uuid-here", "role_id": "role-uuid-here", "manager_id": "manager-uuid-here", "status": "active", "employment_type": "full_time", "date_of_birth": "1990-01-15T00:00:00Z", "hire_date": "2024-01-01T00:00:00Z", "termination_date": null, "gender": "Male", "address": "123 Main St, City, State", "emergency_contact_name": "Jane Doe", "emergency_contact_phone": "+1987654321", "profile_image_url": "", "last_login_at": "2024-03-01T15:30:00Z", "created_at": "2024-01-01T10:00:00Z", "updated_at": "2024-03-01T15:30:00Z" } ], "pagination": { "page": 1, "page_size": 10, "total_items": 45, "total_pages": 5 } } }
Get a paginated list of employees in a company with optional filtering
super_admin
hr_manager