# PeopleSync API ## API Docs - Authentication [Authenticate user](https://peoplesync.apidog.io/authenticate-user-24352919e0.md): Exchange credentials for JWT token - Authentication [Get current user](https://peoplesync.apidog.io/get-current-user-24352920e0.md): Returns the authenticated user profile with roles and permissions - Roles [List all roles](https://peoplesync.apidog.io/list-all-roles-24352921e0.md): - Roles [Create a new role](https://peoplesync.apidog.io/create-a-new-role-24352922e0.md): - Roles [Get role details](https://peoplesync.apidog.io/get-role-details-24352923e0.md): - Roles [Update role](https://peoplesync.apidog.io/update-role-24352924e0.md): - Departments [List all departments](https://peoplesync.apidog.io/list-all-departments-24352925e0.md): - Departments [Create a new department](https://peoplesync.apidog.io/create-a-new-department-24352926e0.md): - Departments [Get department details](https://peoplesync.apidog.io/get-department-details-24352927e0.md): - Departments [Update department](https://peoplesync.apidog.io/update-department-24352928e0.md): - Employees [List employees](https://peoplesync.apidog.io/list-employees-24352929e0.md): Retrieve paginated employee list with optional filters and includes - Employees [Create employee](https://peoplesync.apidog.io/create-employee-24352930e0.md): Add new employee record - Employees [Get employee details](https://peoplesync.apidog.io/get-employee-details-24352931e0.md): - Employees [Update employee](https://peoplesync.apidog.io/update-employee-24352932e0.md): - Attendances [Record clock-in](https://peoplesync.apidog.io/record-clock-in-24352933e0.md): Register employee attendance start with geolocation - Attendances [Sync offline attendances](https://peoplesync.apidog.io/sync-offline-attendances-24352934e0.md): Idempotent endpoint for syncing multiple offline attendance records. - Leaves [List leaves](https://peoplesync.apidog.io/list-leaves-24352935e0.md): - Leaves [Create leave request](https://peoplesync.apidog.io/create-leave-request-24352936e0.md): - Leaves [Approve/reject leave](https://peoplesync.apidog.io/approvereject-leave-24352937e0.md): - SalaryComponents [List all salary components](https://peoplesync.apidog.io/list-all-salary-components-24352938e0.md): - SalaryComponents [Create a new salary component](https://peoplesync.apidog.io/create-a-new-salary-component-24352939e0.md): - SalaryComponents [Get salary component details](https://peoplesync.apidog.io/get-salary-component-details-24352940e0.md): - SalaryComponents [Update salary component](https://peoplesync.apidog.io/update-salary-component-24352941e0.md): - Payroll [Generate payroll](https://peoplesync.apidog.io/generate-payroll-24352942e0.md): Asynchronously generate payroll for given period. - Jobs [Check job status](https://peoplesync.apidog.io/check-job-status-24352943e0.md): Check progress for async jobs (attendance sync, payroll generation) - Uploads [Get presigned upload URL](https://peoplesync.apidog.io/get-presigned-upload-url-24352944e0.md): Generate S3 presigned URL for file uploads - Settings [Get organization settings](https://peoplesync.apidog.io/get-organization-settings-24352945e0.md): - Settings [Update settings](https://peoplesync.apidog.io/update-settings-24352946e0.md): - ActivityLogs [List activity logs](https://peoplesync.apidog.io/list-activity-logs-24352947e0.md): Retrieve audit logs for system activities - Notifications [List notifications](https://peoplesync.apidog.io/list-notifications-24352948e0.md): Get notifications for the authenticated user - System [Health check](https://peoplesync.apidog.io/health-check-24352949e0.md): Public endpoint to check API and dependency status ## Schemas - Schemas [MetaPagination](https://peoplesync.apidog.io/metapagination-10963000d0.md): - Schemas [ErrorResponse](https://peoplesync.apidog.io/errorresponse-10963001d0.md): - Schemas [UUID](https://peoplesync.apidog.io/uuid-10963002d0.md): - Schemas [AuthLoginRequest](https://peoplesync.apidog.io/authloginrequest-10963003d0.md): - Schemas [User](https://peoplesync.apidog.io/user-10963004d0.md): - Schemas [AuthLoginResponse](https://peoplesync.apidog.io/authloginresponse-10963005d0.md): - Schemas [Role](https://peoplesync.apidog.io/role-10963006d0.md): - Schemas [Department](https://peoplesync.apidog.io/department-10963007d0.md): - Schemas [DepartmentCreate](https://peoplesync.apidog.io/departmentcreate-10963008d0.md): - Schemas [DepartmentUpdate](https://peoplesync.apidog.io/departmentupdate-10963009d0.md): - Schemas [Employee](https://peoplesync.apidog.io/employee-10963010d0.md): - Schemas [EmployeeCreate](https://peoplesync.apidog.io/employeecreate-10963011d0.md): - Schemas [EmployeeUpdate](https://peoplesync.apidog.io/employeeupdate-10963012d0.md): - Schemas [Attendance](https://peoplesync.apidog.io/attendance-10963013d0.md): - Schemas [AttendanceClockIn](https://peoplesync.apidog.io/attendanceclockin-10963014d0.md): - Schemas [AttendanceSync](https://peoplesync.apidog.io/attendancesync-10963015d0.md): - Schemas [Leave](https://peoplesync.apidog.io/leave-10963016d0.md): - Schemas [LeaveCreate](https://peoplesync.apidog.io/leavecreate-10963017d0.md): - Schemas [LeaveApprove](https://peoplesync.apidog.io/leaveapprove-10963018d0.md): - Schemas [SalaryComponent](https://peoplesync.apidog.io/salarycomponent-10963019d0.md): - Schemas [SalaryComponentCreate](https://peoplesync.apidog.io/salarycomponentcreate-10963020d0.md): - Schemas [SalaryComponentUpdate](https://peoplesync.apidog.io/salarycomponentupdate-10963021d0.md): - Schemas [Payroll](https://peoplesync.apidog.io/payroll-10963022d0.md): - Schemas [PayrollItem](https://peoplesync.apidog.io/payrollitem-10963023d0.md): - Schemas [PayrollGenerate](https://peoplesync.apidog.io/payrollgenerate-10963024d0.md): - Schemas [PayrollSnapshot](https://peoplesync.apidog.io/payrollsnapshot-10963025d0.md): - Schemas [ActivityLog](https://peoplesync.apidog.io/activitylog-10963026d0.md): - Schemas [Notification](https://peoplesync.apidog.io/notification-10963027d0.md): - Schemas [Setting](https://peoplesync.apidog.io/setting-10963028d0.md): - Schemas [SettingUpdate](https://peoplesync.apidog.io/settingupdate-10963029d0.md): - Schemas [JobStatus](https://peoplesync.apidog.io/jobstatus-10963030d0.md): - Schemas [PresignedUrl](https://peoplesync.apidog.io/presignedurl-10963031d0.md): - Schemas [PresignRequest](https://peoplesync.apidog.io/presignrequest-10963032d0.md): - Schemas [HealthCheck](https://peoplesync.apidog.io/healthcheck-10963033d0.md): - Response [Unauthorized](https://peoplesync.apidog.io/unauthorized-10963034d0.md): - Response [Forbidden](https://peoplesync.apidog.io/forbidden-10963035d0.md): - Response [NotFound](https://peoplesync.apidog.io/notfound-10963036d0.md): - Response [ValidationError](https://peoplesync.apidog.io/validationerror-10963037d0.md): - Response [Conflict](https://peoplesync.apidog.io/conflict-10963038d0.md):