cURL
curl --request GET \
--url https://{company}.fairwayze.com/api/integrations/bookings \
--header 'ApiKey: <api-key>'import requests
url = "https://{company}.fairwayze.com/api/integrations/bookings"
headers = {"ApiKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {ApiKey: '<api-key>'}};
fetch('https://{company}.fairwayze.com/api/integrations/bookings', 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://{company}.fairwayze.com/api/integrations/bookings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>"
],
]);
$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://{company}.fairwayze.com/api/integrations/bookings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ApiKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{company}.fairwayze.com/api/integrations/bookings")
.header("ApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{company}.fairwayze.com/api/integrations/bookings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ApiKey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_time": "2026-02-04T17:00:00+00:00",
"end_time": "2026-02-04T18:00:00+00:00",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "jsmith@example.com"
},
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"bay": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tag": "<string>"
}
}
]{
"error": "<string>"
}API Reference
Get bookings
GET
/
bookings
cURL
curl --request GET \
--url https://{company}.fairwayze.com/api/integrations/bookings \
--header 'ApiKey: <api-key>'import requests
url = "https://{company}.fairwayze.com/api/integrations/bookings"
headers = {"ApiKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {ApiKey: '<api-key>'}};
fetch('https://{company}.fairwayze.com/api/integrations/bookings', 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://{company}.fairwayze.com/api/integrations/bookings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>"
],
]);
$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://{company}.fairwayze.com/api/integrations/bookings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ApiKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{company}.fairwayze.com/api/integrations/bookings")
.header("ApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{company}.fairwayze.com/api/integrations/bookings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ApiKey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_time": "2026-02-04T17:00:00+00:00",
"end_time": "2026-02-04T18:00:00+00:00",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "jsmith@example.com"
},
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"bay": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tag": "<string>"
}
}
]{
"error": "<string>"
}Authorizations
Query Parameters
The location ID to retrieve bookings for
The earliest booking time to include (ex. 2026-02-04T00:00:00-05:00)
The latest booking time to include (ex. 2026-02-05T00:00:00-05:00)
The timezone used in the response (ex. America/Toronto)
⌘I
