Get Requests
curl --request GET \
--url https://app.untetherlabs.com/api/v1/time-off/requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.untetherlabs.com/api/v1/time-off/requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.untetherlabs.com/api/v1/time-off/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.untetherlabs.com/api/v1/time-off/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.untetherlabs.com/api/v1/time-off/requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.untetherlabs.com/api/v1/time-off/requests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.untetherlabs.com/api/v1/time-off/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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.",
"payCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"properties": "<unknown>",
"payCode": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Overtime",
"shorthandName": "OT",
"hexColor": "#f97316",
"value": 1.5
}
},
"provider": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Bruce Wayne",
"email": "bruce.wayne@goodhealth.com",
"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",
"name": "<string>",
"email": "<string>",
"isAdmin": true
},
"rejectionReason": "<string>",
"syncError": {
"message": "<string>",
"createdAt": "2024-11-20T07:43:34+0000"
},
"isFullDay": true
}
],
"cursor": "<string>"
}{
"type": "https://developers.untetherlabs.com/errors#validation",
"status": 400,
"title": "Input validation failed.",
"message": "<string>",
"detail": "The specified provider does not satisfy the skill requirements for this shift.",
"path": "<string>"
}Time Off
Get Requests
GET
/
v1
/
time-off
/
requests
Get Requests
curl --request GET \
--url https://app.untetherlabs.com/api/v1/time-off/requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.untetherlabs.com/api/v1/time-off/requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.untetherlabs.com/api/v1/time-off/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.untetherlabs.com/api/v1/time-off/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.untetherlabs.com/api/v1/time-off/requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.untetherlabs.com/api/v1/time-off/requests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.untetherlabs.com/api/v1/time-off/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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.",
"payCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"properties": "<unknown>",
"payCode": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Overtime",
"shorthandName": "OT",
"hexColor": "#f97316",
"value": 1.5
}
},
"provider": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Bruce Wayne",
"email": "bruce.wayne@goodhealth.com",
"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",
"name": "<string>",
"email": "<string>",
"isAdmin": true
},
"rejectionReason": "<string>",
"syncError": {
"message": "<string>",
"createdAt": "2024-11-20T07:43:34+0000"
},
"isFullDay": true
}
],
"cursor": "<string>"
}{
"type": "https://developers.untetherlabs.com/errors#validation",
"status": 400,
"title": "Input validation failed.",
"message": "<string>",
"detail": "The specified provider does not satisfy the skill requirements for this shift.",
"path": "<string>"
}Get all time off requests. Can be filtered if necessary.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
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.
Example:
"2024-11-20T07:43:34+0000"
Filter to requests whose end date is earlier than the provided timestamp.
Example:
"2024-11-20T07:43:34+0000"
Available options:
pending, approved, rejected, cancelled, pending_sync, sync_failed Example:
"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.
Required range:
1 <= x <= 200⌘I