curl --request GET \
--url https://app.untetherlabs.com/api/v1/time-off/requests \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2024-11-20T07:43:34+0000",
"status": "approved",
"startDate": "2024-11-20T07:43:34+0000",
"endDate": "2024-11-20T07:43:34+0000",
"policyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"providerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"note": "Going on vacation with my family.",
"dailyHours": [
{
"date": "2024-10-06T00:00:00.000Z",
"duration": 0
},
{
"date": "2024-10-07T00:00:00.000Z",
"duration": 8
},
{
"date": "2024-10-08T00:00:00.000Z",
"duration": 8
}
],
"paidHours": 32,
"policy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2024-11-20T07:43:34+0000",
"type": "vacation",
"name": "QC Vacation",
"description": "Vacation policy for Quebec-based employees.",
"accrualUnit": "hours",
"payCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"properties": "<unknown>",
"payCode": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Overtime",
"shorthandName": "OT",
"hexColor": "#f97316",
"type": "hours",
"value": 1.5
}
},
"provider": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Bruce Wayne",
"email": "[email protected]",
"hireDate": "2024-11-20T07:43:34+0000",
"status": "active",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"licensedRegions": [
"<string>"
],
"employmentType": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"rejectedById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rejectedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "user",
"name": "<string>",
"email": "<string>",
"status": "onboarding"
},
"rejectionReason": "<string>"
}
],
"cursor": "<string>"
}curl --request GET \
--url https://app.untetherlabs.com/api/v1/time-off/requests \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2024-11-20T07:43:34+0000",
"status": "approved",
"startDate": "2024-11-20T07:43:34+0000",
"endDate": "2024-11-20T07:43:34+0000",
"policyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"providerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"note": "Going on vacation with my family.",
"dailyHours": [
{
"date": "2024-10-06T00:00:00.000Z",
"duration": 0
},
{
"date": "2024-10-07T00:00:00.000Z",
"duration": 8
},
{
"date": "2024-10-08T00:00:00.000Z",
"duration": 8
}
],
"paidHours": 32,
"policy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2024-11-20T07:43:34+0000",
"type": "vacation",
"name": "QC Vacation",
"description": "Vacation policy for Quebec-based employees.",
"accrualUnit": "hours",
"payCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"properties": "<unknown>",
"payCode": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Overtime",
"shorthandName": "OT",
"hexColor": "#f97316",
"type": "hours",
"value": 1.5
}
},
"provider": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Bruce Wayne",
"email": "[email protected]",
"hireDate": "2024-11-20T07:43:34+0000",
"status": "active",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"licensedRegions": [
"<string>"
],
"employmentType": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"rejectedById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rejectedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "user",
"name": "<string>",
"email": "<string>",
"status": "onboarding"
},
"rejectionReason": "<string>"
}
],
"cursor": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Filter to requests for a specific provider.
Filter to requests for providers in specific teams.
Filter to requests for specific policies.
Filter to requests whose start date is on or after the given timestamp.
"2024-11-20T07:43:34+0000"
Filter to requests whose end date is earlier than the provided timestamp.
"2024-11-20T07:43:34+0000"
pending, approved, rejected, cancelled "approved"
Available expansions: policy, provider, rejectedBy
See Query Parameters for more information on expansions.
Available fields: createdAt, startDate
See Query Parameters for more information on sorting.
1 <= x <= 200Show child attributes
"2024-11-20T07:43:34+0000"
pending, approved, rejected, cancelled "approved"
"2024-11-20T07:43:34+0000"
"2024-11-20T07:43:34+0000"
"Going on vacation with my family."
Represents the number of hours requested off for each day in the time off request.
[
{
"date": "2024-10-06T00:00:00.000Z",
"duration": 0
},
{
"date": "2024-10-07T00:00:00.000Z",
"duration": 8
},
{
"date": "2024-10-08T00:00:00.000Z",
"duration": 8
}
]The total number of hours that will be paid out for this time off request.
32
Show child attributes
"2024-11-20T07:43:34+0000"
bereavement, floating-holiday, holiday-pay, jury-duty, learning-and-development, paid-time-off, vacation, parental-leave, personal-day, sick, volunteer, weather, wellness, flex-day, marriage-code, unpaid-day, absence, custom "vacation"
"QC Vacation"
"Vacation policy for Quebec-based employees."
hours, days The pay code for which associated time will be paid out.
Show child attributes
"Overtime"
"OT"
"#f97316"
hours, days, money 1.5
Show child attributes
"Bruce Wayne"
"2024-11-20T07:43:34+0000"
onboarding, active, dismissed, inactive "active"
Only present for rejected time off requests, the user who rejected the request.
Show child attributes
Only present for rejected time off requests, reason may be null for unspecified.