{"openapi":"3.0.3","info":{"title":"HROps API","version":"1.0.0","description":"Recruiting, people, attendance, leave, payroll and documents for one or many companies."},"components":{"securitySchemes":{"session":{"type":"apiKey","in":"cookie","name":"hrops_session"}},"schemas":{}},"paths":{"/":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/login":{"post":{"tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":1}},"required":["email","password"]}}}},"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/login/mfa":{"post":{"tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challenge":{"type":"string","minLength":20},"code":{"type":"string","minLength":6,"maxLength":20}},"required":["challenge","code"]}}}},"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/logout":{"post":{"tags":["Auth"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/me":{"get":{"tags":["Auth"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/accept-invite":{"post":{"tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20},"password":{"type":"string","minLength":10,"maxLength":200}},"required":["token","password"]}}}},"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/password-reset/request":{"post":{"tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}},"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/password-reset/confirm":{"post":{"tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20},"password":{"type":"string","minLength":10,"maxLength":200}},"required":["token","password"]}}}},"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/2fa":{"get":{"tags":["Auth"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/2fa/setup":{"post":{"tags":["Auth"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/2fa/enable":{"post":{"tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":6,"maxLength":8}},"required":["code"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/2fa/disable":{"post":{"tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":1},"code":{"type":"string","minLength":6,"maxLength":20}},"required":["password","code"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/sessions":{"get":{"tags":["Auth"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/sessions/{id}":{"delete":{"tags":["Auth"],"parameters":[{"schema":{"type":"string","minLength":8,"maxLength":64},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/sso/check":{"get":{"tags":["Auth"],"parameters":[{"schema":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"in":"query","name":"email","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/sso/start":{"post":{"tags":["Auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}},"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/sso/callback":{"get":{"tags":["Auth"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"code","required":true},{"schema":{"type":"string","minLength":1},"in":"query","name":"state","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/demo-accounts":{"get":{"tags":["Auth"],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/login-hints":{"get":{"tags":["Auth"],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/organizations":{"get":{"tags":["Companies"],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Companies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120},"shortName":{"type":"string","minLength":2,"maxLength":40},"slug":{"type":"string","pattern":"^[a-z0-9-]{2,40}$"},"industry":{"type":"string","minLength":2,"maxLength":120},"country":{"type":"string","minLength":2,"maxLength":80},"currency":{"type":"string","minLength":3,"maxLength":3},"timezone":{"type":"string"},"hue":{"type":"string","enum":["saffron","cobalt","plum","moss","slate"]},"careerDomain":{"nullable":true,"type":"string","maxLength":120},"policy":{"type":"object","properties":{"weekendDays":{"default":[0,6],"type":"array","items":{"type":"integer","minimum":0,"maximum":6}},"holidays":{"default":[],"maxItems":400,"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"name":{"type":"string","maxLength":80}},"required":["date","name"]}},"workdayStart":{"default":"09:00","type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"workdayHours":{"default":8,"type":"number","minimum":1,"maximum":16},"graceMinutes":{"default":10,"type":"integer","minimum":0,"maximum":240},"checkInMethods":{"default":["WEB"],"type":"array","items":{"type":"string","enum":["WEB","GEO","BIOMETRIC"]}},"geoFences":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180},"radiusM":{"type":"number","minimum":20,"maximum":50000}},"required":["name","lat","lng","radiusM"]}},"lateDeduction":{"default":{"enabled":true,"latesPerHalfDay":3},"type":"object","properties":{"enabled":{"default":true,"type":"boolean"},"latesPerHalfDay":{"default":3,"type":"integer","minimum":1,"maximum":9007199254740991},"expression":{"type":"string","maxLength":500}}},"overtimeExpression":{"type":"string","maxLength":500},"payrollCutoffDay":{"default":25,"type":"integer","minimum":1,"maximum":28},"payDay":{"default":28,"type":"integer","minimum":1,"maximum":31},"tax":{"default":{"pack":"NONE","lines":[]},"type":"object","properties":{"pack":{"default":"NONE","type":"string","enum":["NONE","US","PK","UAE","UK"]},"lines":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":30},"label":{"type":"string","minLength":1,"maxLength":80},"mode":{"type":"string","enum":["flat","percent"]},"value":{"type":"number","minimum":0}},"required":["code","label","mode","value"]}}}},"payout":{"default":{"format":"GENERIC","originatorName":"","originatorId":"","originatorBankCode":"","originatorAccountHint":""},"type":"object","properties":{"format":{"default":"GENERIC","type":"string","enum":["GENERIC","NACHA","UAE_WPS","UK_BACS","PK_CSV"]},"originatorName":{"default":"","type":"string","maxLength":35},"originatorId":{"default":"","type":"string","maxLength":20},"originatorBankCode":{"default":"","type":"string","maxLength":20},"originatorAccountHint":{"default":"","type":"string","maxLength":10}}},"accounting":{"default":{"expenseAccount":"Salaries and wages","liabilityAccount":"Payroll liabilities","taxAccount":"Payroll taxes payable"},"type":"object","properties":{"expenseAccount":{"default":"Salaries and wages","type":"string"},"liabilityAccount":{"default":"Payroll liabilities","type":"string"},"taxAccount":{"default":"Payroll taxes payable","type":"string"}}},"candidateRetentionMonths":{"default":12,"type":"integer","minimum":1,"maximum":120},"organizationRetentionDays":{"default":90,"type":"integer","minimum":0,"maximum":3650},"ipAllowList":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","maxLength":50}},"ai":{"default":{"anonymize":false},"type":"object","properties":{"anonymize":{"default":false,"type":"boolean"}}},"branding":{"default":{},"type":"object","properties":{"logoUrl":{"type":"string","maxLength":500},"primaryColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"intro":{"type":"string","maxLength":400},"emailFrom":{"type":"string","maxLength":120,"pattern":"^(?:[^<>\"\\r\\n@]{1,80}\\s*<[^\\s<>@\"]+@[^\\s<>@\"]+\\.[^\\s<>@\"]+>|[^\\s<>@\",;]+@[^\\s<>@\",;]+\\.[^\\s<>@\",;]+)$"}}},"meetingLinkTemplate":{"default":"https://meet.jit.si/hrops-{id}","type":"string","maxLength":200}}},"owner":{"type":"object","properties":{"name":{"type":"string","minLength":2},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["name","email"]}},"required":["name","shortName","slug","industry","country","currency","timezone","hue"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/organizations/deleted":{"get":{"tags":["Companies"],"responses":{"200":{"description":"Default Response"}}}},"/v1/organizations/{id}":{"delete":{"tags":["Companies"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"tags":["Companies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120},"shortName":{"type":"string","minLength":2,"maxLength":40},"industry":{"type":"string","minLength":2,"maxLength":120},"country":{"type":"string","minLength":2,"maxLength":80},"currency":{"type":"string","minLength":3,"maxLength":3},"timezone":{"type":"string"},"hue":{"type":"string","enum":["saffron","cobalt","plum","moss","slate"]},"careerDomain":{"nullable":true,"type":"string","maxLength":120},"policy":{"type":"object","properties":{"weekendDays":{"default":[0,6],"type":"array","items":{"type":"integer","minimum":0,"maximum":6}},"holidays":{"default":[],"maxItems":400,"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"name":{"type":"string","maxLength":80}},"required":["date","name"]}},"workdayStart":{"default":"09:00","type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"workdayHours":{"default":8,"type":"number","minimum":1,"maximum":16},"graceMinutes":{"default":10,"type":"integer","minimum":0,"maximum":240},"checkInMethods":{"default":["WEB"],"type":"array","items":{"type":"string","enum":["WEB","GEO","BIOMETRIC"]}},"geoFences":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180},"radiusM":{"type":"number","minimum":20,"maximum":50000}},"required":["name","lat","lng","radiusM"]}},"lateDeduction":{"default":{"enabled":true,"latesPerHalfDay":3},"type":"object","properties":{"enabled":{"default":true,"type":"boolean"},"latesPerHalfDay":{"default":3,"type":"integer","minimum":1,"maximum":9007199254740991},"expression":{"type":"string","maxLength":500}}},"overtimeExpression":{"type":"string","maxLength":500},"payrollCutoffDay":{"default":25,"type":"integer","minimum":1,"maximum":28},"payDay":{"default":28,"type":"integer","minimum":1,"maximum":31},"tax":{"default":{"pack":"NONE","lines":[]},"type":"object","properties":{"pack":{"default":"NONE","type":"string","enum":["NONE","US","PK","UAE","UK"]},"lines":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":30},"label":{"type":"string","minLength":1,"maxLength":80},"mode":{"type":"string","enum":["flat","percent"]},"value":{"type":"number","minimum":0}},"required":["code","label","mode","value"]}}}},"payout":{"default":{"format":"GENERIC","originatorName":"","originatorId":"","originatorBankCode":"","originatorAccountHint":""},"type":"object","properties":{"format":{"default":"GENERIC","type":"string","enum":["GENERIC","NACHA","UAE_WPS","UK_BACS","PK_CSV"]},"originatorName":{"default":"","type":"string","maxLength":35},"originatorId":{"default":"","type":"string","maxLength":20},"originatorBankCode":{"default":"","type":"string","maxLength":20},"originatorAccountHint":{"default":"","type":"string","maxLength":10}}},"accounting":{"default":{"expenseAccount":"Salaries and wages","liabilityAccount":"Payroll liabilities","taxAccount":"Payroll taxes payable"},"type":"object","properties":{"expenseAccount":{"default":"Salaries and wages","type":"string"},"liabilityAccount":{"default":"Payroll liabilities","type":"string"},"taxAccount":{"default":"Payroll taxes payable","type":"string"}}},"candidateRetentionMonths":{"default":12,"type":"integer","minimum":1,"maximum":120},"organizationRetentionDays":{"default":90,"type":"integer","minimum":0,"maximum":3650},"ipAllowList":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","maxLength":50}},"ai":{"default":{"anonymize":false},"type":"object","properties":{"anonymize":{"default":false,"type":"boolean"}}},"branding":{"default":{},"type":"object","properties":{"logoUrl":{"type":"string","maxLength":500},"primaryColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"intro":{"type":"string","maxLength":400},"emailFrom":{"type":"string","maxLength":120,"pattern":"^(?:[^<>\"\\r\\n@]{1,80}\\s*<[^\\s<>@\"]+@[^\\s<>@\"]+\\.[^\\s<>@\"]+>|[^\\s<>@\",;]+@[^\\s<>@\",;]+\\.[^\\s<>@\",;]+)$"}}},"meetingLinkTemplate":{"default":"https://meet.jit.si/hrops-{id}","type":"string","maxLength":200}}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/organizations/{id}/restore":{"post":{"tags":["Companies"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/organizations/{id}/secrets":{"get":{"tags":["Companies"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"put":{"tags":["Companies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"smtpUrl":{"type":"string","maxLength":300},"payoutAccount":{"type":"string","maxLength":40},"boardWebhookSecret":{"type":"string","maxLength":100}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users":{"get":{"tags":["Users"],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}":{"get":{"tags":["Users"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/invite":{"post":{"tags":["Users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["GROUP_OWNER","OWNER_ADMIN","GROUP_HR_LEAD","HR_COORDINATOR","FINANCE","HIRING_MANAGER","EMPLOYEE"]},"allOrganizations":{"type":"boolean"},"organizationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["name","email","role","allOrganizations","organizationIds"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/role":{"patch":{"tags":["Users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["GROUP_OWNER","OWNER_ADMIN","GROUP_HR_LEAD","HR_COORDINATOR","FINANCE","HIRING_MANAGER","EMPLOYEE"]}},"required":["role"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/organizations":{"put":{"tags":["Users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allOrganizations":{"type":"boolean"},"organizationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["allOrganizations","organizationIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/organizations/{id}/replace-hr":{"post":{"tags":["Users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"former":{"default":"SUSPEND","type":"string","enum":["SUSPEND","FINANCE","HIRING_MANAGER","EMPLOYEE"]}},"required":["userId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/suspend":{"post":{"tags":["Users"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/reactivate":{"post":{"tags":["Users"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/resend-invite":{"post":{"tags":["Users"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/password-reset":{"post":{"tags":["Users"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/reset-2fa":{"post":{"tags":["Users"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/revoke-sessions":{"post":{"tags":["Users"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/dashboard":{"get":{"tags":["Workspace"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/dashboard/counts":{"get":{"tags":["Workspace"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/search":{"get":{"tags":["Workspace"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"q","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/ai/insights":{"get":{"tags":["AI"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/ai/ask":{"post":{"tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":3,"maxLength":1000}},"required":["question"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/automations":{"get":{"tags":["AI"],"responses":{"200":{"description":"Default Response"}}}},"/v1/automations/{key}":{"patch":{"tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/jobs":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","enum":["DRAFT","OPEN","CLOSED"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":2,"maxLength":120},"department":{"type":"string","minLength":1,"maxLength":80},"location":{"type":"string","minLength":1,"maxLength":120},"employmentType":{"type":"string","enum":["FULL_TIME","PART_TIME","CONTRACT"]},"description":{"type":"string","maxLength":10000},"mustHaves":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":200}},"hiringManagerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["organizationId","title","department","location","employmentType","mustHaves"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/jobs/ai-draft":{"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brief":{"type":"string","minLength":10,"maxLength":4000}},"required":["organizationId","brief"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/jobs/{id}":{"patch":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":120},"department":{"type":"string","minLength":1,"maxLength":80},"location":{"type":"string","minLength":1,"maxLength":120},"employmentType":{"type":"string","enum":["FULL_TIME","PART_TIME","CONTRACT"]},"description":{"type":"string","maxLength":10000},"mustHaves":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":200}},"hiringManagerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["DRAFT","OPEN","CLOSED"]},"postingChannels":{"type":"array","items":{"type":"string","enum":["Career page","LinkedIn","Indeed","Glassdoor","StepStone","Bayt"]}}}}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"jobId","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/stage":{"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"type":"string","enum":["APPLIED","SCREENING","TEST","INTERVIEW","OFFER","HIRED","REJECTED"]}},"required":["stage"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/reject":{"post":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/assessments":{"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"dueInDays":{"type":"integer","minimum":1,"maximum":30}}}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/interview-slots":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/interviews":{"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{},"panelUserIds":{"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["startsAt"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/cv":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/interviews/complete":{"post":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/email":{"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","minLength":1,"maxLength":20000}},"required":["subject","body"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/screen":{"post":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/interviews":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/recruiting/score-distribution":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/jobs/hiring-managers":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/email-templates":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}},"put":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":2,"maxLength":80},"subject":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","minLength":1,"maxLength":20000}},"required":["organizationId","name","subject","body"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/email-templates/{id}":{"delete":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/candidates/{id}/email-preview":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"templateId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/talent-pool":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"candidateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"note":{"type":"string","maxLength":200}},"required":["candidateId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/talent-pool/{id}/reengage":{"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["jobId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/talent-pool/{id}/share":{"post":{"tags":["Recruiting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"consent":{"type":"boolean"}},"required":["organizationId","consent"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/talent-pool/matches":{"get":{"tags":["Recruiting"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees":{"get":{"tags":["People"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"includeFormer","required":false}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["People"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":2,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"designation":{"type":"string","minLength":1,"maxLength":120},"department":{"type":"string","minLength":1,"maxLength":80},"workMode":{"type":"string","enum":["ONSITE","ONLINE"]},"joinedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"managerName":{"type":"string","maxLength":120},"baseSalary":{"type":"number","minimum":0,"maximum":10000000},"status":{"type":"string","enum":["ONBOARDING","ACTIVE","ON_LEAVE","TERMINATED"]},"deviceUserId":{"nullable":true,"type":"string","maxLength":20},"bankAccountHolder":{"nullable":true,"type":"string","maxLength":120},"bankName":{"nullable":true,"type":"string","maxLength":120},"bankCode":{"nullable":true,"type":"string","maxLength":20},"bankAccount":{"type":"string","maxLength":40},"iban":{"type":"string","maxLength":40},"nationalId":{"type":"string","maxLength":40},"taxId":{"type":"string","maxLength":40},"access":{"type":"object","properties":{"role":{"type":"string","enum":["GROUP_OWNER","OWNER_ADMIN","GROUP_HR_LEAD","HR_COORDINATOR","FINANCE","HIRING_MANAGER","EMPLOYEE"]}},"required":["role"]}},"required":["organizationId","name","email","designation","department","workMode","joinedAt","baseSalary"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/export.csv":{"get":{"tags":["People"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/{id}":{"get":{"tags":["People"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"tags":["People"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"designation":{"type":"string","minLength":1,"maxLength":120},"department":{"type":"string","minLength":1,"maxLength":80},"workMode":{"type":"string","enum":["ONSITE","ONLINE"]},"joinedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"managerName":{"type":"string","maxLength":120},"baseSalary":{"type":"number","minimum":0,"maximum":10000000},"status":{"type":"string","enum":["ONBOARDING","ACTIVE","ON_LEAVE","TERMINATED"]},"deviceUserId":{"nullable":true,"type":"string","maxLength":20},"bankAccountHolder":{"nullable":true,"type":"string","maxLength":120},"bankName":{"nullable":true,"type":"string","maxLength":120},"bankCode":{"nullable":true,"type":"string","maxLength":20},"bankAccount":{"type":"string","maxLength":40},"iban":{"type":"string","maxLength":40},"nationalId":{"type":"string","maxLength":40},"taxId":{"type":"string","maxLength":40}}}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/{id}/compensation":{"get":{"tags":["People"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/{id}/access":{"post":{"tags":["People"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["GROUP_OWNER","OWNER_ADMIN","GROUP_HR_LEAD","HR_COORDINATOR","FINANCE","HIRING_MANAGER","EMPLOYEE"]}},"required":["role"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/{id}/terminate":{"post":{"tags":["People"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/{id}/portal-invite":{"post":{"tags":["People"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/{id}/attendance":{"get":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"in":"query","name":"period","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/{id}/payroll":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"in":"query","name":"period","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/attendance/today":{"get":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/attendance/reconcile":{"get":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/attendance/corrections/{id}/reject":{"post":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/attendance/corrections":{"get":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/attendance/days":{"put":{"tags":["Attendance"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["PRESENT","LATE","ABSENT","LEAVE","HOLIDAY"]},"note":{"type":"string","minLength":3,"maxLength":500}},"required":["employeeId","date","status","note"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/shifts":{"get":{"tags":["Shifts"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"week","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/shifts/generate":{"post":{"tags":["Shifts"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"week","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/shifts/publish":{"post":{"tags":["Shifts"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"week","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/shifts/cycle":{"post":{"tags":["Shifts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["employeeId","date"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/leaves":{"get":{"tags":["Leave"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/leaves/conflicts":{"get":{"tags":["Leave"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/leaves/{id}/decision":{"post":{"tags":["Leave"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["APPROVED","REJECTED"]}},"required":["decision"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/performance":{"get":{"tags":["Performance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/performance/review-cycles":{"post":{"tags":["Performance"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120}},"required":["name"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/performance/review-cycles/{id}/close":{"post":{"tags":["Performance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/performance/summary":{"post":{"tags":["Performance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/current":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/periods":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"in":"query","name":"period","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/anomalies":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/adjustments":{"post":{"tags":["Payroll"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["BONUS","COMMISSION","OVERTIME","ALLOWANCE","TAX","DEDUCTION_ADVANCE","DEDUCTION_PENALTY","DEDUCTION_OTHER"]},"label":{"default":"","type":"string","maxLength":120},"amount":{"type":"number"}},"required":["employeeId","type","amount"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/adjustments/{adjustmentId}":{"delete":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"adjustmentId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/approve":{"post":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/disburse":{"post":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/resend-payslips":{"post":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/bank-file":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/bank-file.csv":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/journal.csv":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"default":"quickbooks","type":"string","enum":["quickbooks","xero"]},"in":"query","name":"format","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/runs/{id}/payslips/{employeeId}.pdf":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"employeeId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/payroll/cost-allocation":{"get":{"tags":["Payroll"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"in":"query","name":"period","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/employees/{id}/cost-allocation":{"put":{"tags":["Payroll"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allocations":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"percent":{"type":"number","minimum":0,"maximum":100}},"required":["organizationId","percent"]}}},"required":["allocations"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/documents":{"get":{"tags":["Documents"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["CONTRACT","NDA","CONTRACTOR","POLICY"]},"send":{"default":false,"type":"boolean"}},"required":["employeeId","kind"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/documents/verify":{"get":{"tags":["Documents"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/documents/{id}":{"get":{"tags":["Documents"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/documents/{id}/pdf":{"get":{"tags":["Documents"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/documents/{id}/send":{"post":{"tags":["Documents"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/documents/{id}/remind":{"post":{"tags":["Documents"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/documents/{id}/countersign":{"post":{"tags":["Documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"signedName":{"type":"string","minLength":2,"maxLength":120}},"required":["signedName"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/documents/{id}/void":{"post":{"tags":["Documents"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/profile":{"get":{"tags":["Portal"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/attendance":{"get":{"tags":["Portal"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"in":"query","name":"period","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/attendance/check-in":{"post":{"tags":["Portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","enum":["WEB","GEO"]},"location":{"type":"string","maxLength":200},"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180},"accuracy":{"type":"number","minimum":0,"maximum":100000}},"required":["method"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/attendance/check-out":{"post":{"tags":["Portal"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/attendance/corrections":{"post":{"tags":["Portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"note":{"type":"string","minLength":3,"maxLength":500}},"required":["date","note"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/leaves":{"get":{"tags":["Portal"],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["ANNUAL","SICK","CASUAL","UNPAID"]},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"note":{"type":"string","maxLength":500}},"required":["type","startDate","endDate"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/leaves/{id}/cancel":{"post":{"tags":["Portal"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/payslips":{"get":{"tags":["Portal"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/payslips/{id}.pdf":{"get":{"tags":["Portal"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/documents/{id}/pdf":{"get":{"tags":["Portal"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/documents":{"get":{"tags":["Portal"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/documents/{id}":{"get":{"tags":["Portal"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/documents/{id}/sign":{"post":{"tags":["Portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"signedName":{"type":"string","minLength":2,"maxLength":120}},"required":["signedName"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/devices":{"get":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Attendance"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":2,"maxLength":80},"vendor":{"default":"GENERIC","type":"string","enum":["ZKTECO","HIKVISION","SUPREMA","GENERIC"]},"location":{"default":"","type":"string","maxLength":120}},"required":["organizationId","name"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/devices/{id}":{"patch":{"tags":["Attendance"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"location":{"type":"string","maxLength":120},"active":{"type":"boolean"},"clockOffsetSeconds":{"type":"integer","minimum":-86400,"maximum":86400}}}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/devices/{id}/rotate-token":{"post":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/ingest/devices/{id}/events":{"post":{"tags":["Attendance"],"parameters":[{"schema":{"default":"json","type":"string","enum":["json","adms"]},"in":"query","name":"format","required":false},{"schema":{"default":0,"type":"integer","minimum":-840,"maximum":840},"in":"query","name":"tzOffsetMinutes","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/ingest/devices/{id}/heartbeat":{"post":{"tags":["Attendance"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/api-keys":{"get":{"tags":["Integrations"],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"permissions":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string"}},"expiresInDays":{"type":"integer","minimum":1,"maximum":730}},"required":["name","permissions"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/api-keys/{id}":{"delete":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhooks/event-types":{"get":{"tags":["Integrations"],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhooks":{"get":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"default":"GENERIC","type":"string","enum":["GENERIC","SLACK","TEAMS"]},"url":{"type":"string","format":"uri"},"events":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["organizationId","url","events"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhooks/{id}":{"patch":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"minItems":1,"type":"array","items":{"type":"string"}},"active":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhooks/{id}/deliveries":{"get":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhooks/{id}/deliveries/{deliveryId}/replay":{"post":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"deliveryId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/webhooks/{id}/ping":{"post":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/providers":{"get":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":2,"maxLength":80},"issuer":{"type":"string","format":"uri"},"clientId":{"type":"string","minLength":2},"clientSecret":{"type":"string","minLength":2},"domains":{"minItems":1,"type":"array","items":{"type":"string","minLength":3}}},"required":["name","issuer","clientId","clientSecret","domains"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/providers/{id}":{"delete":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/audit":{"get":{"tags":["Governance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","maxLength":60},"in":"query","name":"action","required":false},{"schema":{"type":"string","maxLength":60},"in":"query","name":"entity","required":false},{"schema":{},"in":"query","name":"from","required":false},{"schema":{},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/audit/export":{"get":{"tags":["Governance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","maxLength":60},"in":"query","name":"action","required":false},{"schema":{"type":"string","maxLength":60},"in":"query","name":"entity","required":false},{"schema":{},"in":"query","name":"from","required":false},{"schema":{},"in":"query","name":"to","required":false},{"schema":{"default":"csv","type":"string","enum":["csv","json"]},"in":"query","name":"format","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/privacy/employees/{id}/export":{"get":{"tags":["Governance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/privacy/candidates/{id}/export":{"get":{"tags":["Governance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/privacy/candidates/{id}/erase":{"post":{"tags":["Governance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/privacy/employees/{id}/erase":{"post":{"tags":["Governance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/data-export":{"get":{"tags":["Portal"],"responses":{"200":{"description":"Default Response"}}}},"/v1/roles":{"get":{"tags":["Governance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}},"post":{"tags":["Governance"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":2,"maxLength":60},"basedOn":{"type":"string","enum":["GROUP_OWNER","OWNER_ADMIN","GROUP_HR_LEAD","HR_COORDINATOR","FINANCE","HIRING_MANAGER","EMPLOYEE"]},"permissions":{"maxItems":40,"type":"array","items":{"type":"string"}}},"required":["organizationId","name","basedOn","permissions"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""}],"responses":{"200":{"description":"Default Response"}}}},"/v1/roles/{id}":{"patch":{"tags":["Governance"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":60},"permissions":{"maxItems":40,"type":"array","items":{"type":"string"}}}}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"tags":["Governance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{id}/custom-role":{"put":{"tags":["Governance"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roleId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["roleId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"org","required":false,"description":"Company id or \"all\""},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/careers/{slug}":{"get":{"tags":["Public"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/careers-by-domain":{"get":{"tags":["Public"],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":120},"in":"query","name":"host","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/careers/{slug}/sitemap.xml":{"get":{"tags":["Public"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/feeds/{slug}/{kind}.xml":{"get":{"tags":["Public"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true},{"schema":{"type":"string","enum":["indeed","linkedin"]},"in":"path","name":"kind","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/careers/{slug}/jobs/{jobId}/applications":{"post":{"tags":["Public"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"jobId","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/boards/{slug}/{board}/applications":{"post":{"tags":["Public"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"experience":{"type":"string","minLength":10,"maxLength":5000},"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","email","experience","jobId"]}}}},"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true},{"schema":{"type":"string","minLength":2,"maxLength":40},"in":"path","name":"board","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/interviews/{token}":{"get":{"tags":["Public"],"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":64},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/interviews/{token}/reschedule":{"post":{"tags":["Public"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{}},"required":["startsAt"]}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":64},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/leads":{"post":{"tags":["Public"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["DEMO","SALES_CALL","MESSAGE"]},"name":{"type":"string","minLength":2,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"company":{"type":"string","maxLength":160},"details":{"default":{},"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":20,"type":"array","items":{"type":"string","maxLength":200}}]}},"scheduledAt":{}},"required":["kind","name","email"]}}}},"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/sales/days":{"get":{"tags":["Public"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"in":"query","name":"month","required":true}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/sales/slots":{"get":{"tags":["Public"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"date","required":true},{"schema":{"default":0,"type":"number","minimum":-12,"maximum":14},"in":"query","name":"tzOffset","required":false}],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/assistant/suggestions":{"get":{"tags":["Public"],"security":[],"responses":{"200":{"description":"Default Response"}}}},"/v1/public/assistant/ask":{"post":{"tags":["Public"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500}},"required":["question"]}}}},"security":[],"responses":{"200":{"description":"Default Response"}}}}},"servers":[{"url":"/"}],"security":[{"session":[]}]}