Appointments
List appointment availability
Requires appointments:read. Exceptions are limited to the requested RFC3339 range, which may not exceed 366 days.
GET
/
api
/
v2
/
accounts
/
{accountId}
/
appointments
/
availability
List appointment availability
curl --request GET \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/availabilityimport requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/availability"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/availability', 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.huechat.ai/api/v2/accounts/{accountId}/appointments/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.huechat.ai/api/v2/accounts/{accountId}/appointments/availability"
req, _ := http.NewRequest("GET", url, nil)
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.huechat.ai/api/v2/accounts/{accountId}/appointments/availability")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"availability_exceptions": [
{
"account_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"reason": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"starts_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"availability_rules": [
{
"account_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"day_of_week": 123,
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"end_minute": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_minute": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}⌘I
List appointment availability
curl --request GET \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/availabilityimport requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/availability"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/availability', 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.huechat.ai/api/v2/accounts/{accountId}/appointments/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.huechat.ai/api/v2/accounts/{accountId}/appointments/availability"
req, _ := http.NewRequest("GET", url, nil)
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.huechat.ai/api/v2/accounts/{accountId}/appointments/availability")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"availability_exceptions": [
{
"account_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"reason": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"starts_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"availability_rules": [
{
"account_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"day_of_week": 123,
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"end_minute": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_minute": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}
