Time Off
get_ time_ off_ requests
Get list of time-off requests for the authenticated user's organization
Parameters
pagenumber1Page number for pagination
limitnumber10Number of items per page
searchstringSearch term for request description
relationsArray<string>Relations to include (e.g., ["employee", "policy", "approvedBy"])
statusstringREQUESTEDAPPROVEDDENIEDCANCELLEDFilter by request status
employeeIdstring<uuid>Filter by employee ID
policyIdstring<uuid>Filter by policy ID
startDatestringFilter requests from this date (ISO format)
endDatestringFilter requests until this date (ISO format)
get_ time_ off_ request_ count
Get time-off request count in the authenticated user's organization
Parameters
statusstringREQUESTEDAPPROVEDDENIEDCANCELLEDFilter by request status
employeeIdstring<uuid>Filter by employee ID
policyIdstring<uuid>Filter by policy ID
startDatestringFilter requests from this date (ISO format)
endDatestringFilter requests until this date (ISO format)
get_ time_ off_ request
Get a specific time-off request by ID
Parameters
idstring<uuid>requiredThe time-off request ID
relationsArray<string>Relations to include (e.g., ["employee", "policy", "approvedBy"])
create_ time_ off_ request
Create a new time-off request in the authenticated user's organization
Body
request_ dataobjectrequiredThe data for creating the time-off request
update_ time_ off_ request
Update an existing time-off request
Parameters
idstring<uuid>requiredThe time-off request ID
request_ dataobjectrequiredThe data for updating the time-off request
delete_ time_ off_ request
Delete a time-off request
Parameters
idstring<uuid>requiredThe time-off request ID
approve_ time_ off_ request
Approve a time-off request
Parameters
idstring<uuid>requiredThe time-off request ID
deny_ time_ off_ request
Deny a time-off request
Parameters
idstring<uuid>requiredThe time-off request ID
reasonstringReason for denial
cancel_ time_ off_ request
Cancel a time-off request
Parameters
idstring<uuid>requiredThe time-off request ID
get_ my_ time_ off_ requests
Get time-off requests for the current authenticated user
Parameters
pagenumber1Page number for pagination
limitnumber10Number of items per page
statusstringREQUESTEDAPPROVEDDENIEDCANCELLEDFilter by request status
policyIdstring<uuid>Filter by policy ID
startDatestringFilter requests from this date (ISO format)
endDatestringFilter requests until this date (ISO format)
relationsArray<string>Relations to include
get_ pending_ time_ off_ requests
Get pending time-off requests for the authenticated user's organization
Parameters
pagenumber1Page number for pagination
limitnumber10Number of items per page
employeeIdstring<uuid>Filter by employee ID
policyIdstring<uuid>Filter by policy ID
relationsArray<string>Relations to include
get_ time_ off_ policies
Get list of time-off policies for the authenticated user's organization
Parameters
pagenumber1Page number for pagination
limitnumber10Number of items per page
searchstringSearch term for policy name
relationsArray<string>Relations to include (e.g., ["employees"])
typestringVACATIONSICK_LEAVEPERSONALMATERNITYPATERNITYBEREAVEMENTOTHERFilter by policy type
requiresApprovalbooleanFilter by approval requirement
paidbooleanFilter by paid status
get_ time_ off_ policy
Get a specific time-off policy by ID
Parameters
idstring<uuid>requiredThe time-off policy ID
relationsArray<string>Relations to include (e.g., ["employees"])
create_ time_ off_ policy
Create a new time-off policy in the authenticated user's organization
Body
policy_ dataobjectrequiredThe data for creating the time-off policy
update_ time_ off_ policy
Update an existing time-off policy
Parameters
idstring<uuid>requiredThe time-off policy ID
policy_ dataobjectrequiredThe data for updating the time-off policy
delete_ time_ off_ policy
Delete a time-off policy
Parameters
idstring<uuid>requiredThe time-off policy ID
assign_ employees_ to_ time_ off_ policy
Assign employees to a time-off policy
Parameters
policyIdstring<uuid>requiredThe time-off policy ID
employeeIdsArray<string>requiredArray of employee IDs to assign
get_ time_ off_ balance
Get time-off balance for an employee
Parameters
employeeIdstring<uuid>requiredThe employee ID
policyIdstring<uuid>Filter by specific policy ID
yearnumberFilter by specific year
get_ my_ time_ off_ balance
Get time-off balance for the current authenticated user
Parameters
policyIdstring<uuid>Filter by specific policy ID
yearnumberFilter by specific year
get_ time_ off_ statistics
Get time-off statistics for the authenticated user's organization
Parameters
startDatestringStart date for statistics (ISO format)
endDatestringEnd date for statistics (ISO format)
employeeIdstring<uuid>Filter by specific employee ID
policyIdstring<uuid>Filter by specific policy ID
typestringVACATIONSICK_LEAVEPERSONALMATERNITYPATERNITYBEREAVEMENTOTHERFilter by time-off type
groupBystringemployeepolicytypemonthGroup statistics by