GetVoiceWidgetBookingRulesAPI reads the booking rules of the Cal.com event
curl --request GET \
--url https://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules', 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://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules",
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://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules"
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://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules")
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{
"deployment": {
"agent": "<string>",
"booking_enabled": true,
"books_through_agent": "<string>",
"kind": "<string>",
"name": "<string>",
"widget": "<string>"
},
"event_ref": "<string>",
"provider": "<string>",
"provider_label": "<string>",
"rules": {
"after_buffer_minutes": 123,
"before_buffer_minutes": 123,
"meeting_reminders": {
"edit_url": "<string>",
"reminders": [
{
"all_event_types": true,
"channels": [
"<string>"
],
"minutes_before": 123,
"name": "<string>"
}
],
"status": "<string>"
},
"minimum_notice_minutes": 123,
"working_hours": {
"date_overrides": 123,
"edit_url": "<string>",
"is_default": true,
"schedule_name": "<string>",
"shared": true,
"status": "<string>",
"time_zone": "<string>",
"windows": [
{
"days": [
"<string>"
],
"end_time": "<string>",
"start_time": "<string>"
}
]
}
},
"supported": true
}{
"code": "not_found",
"details": {},
"message": "<string>"
}API Reference
GetVoiceWidgetBookingRulesAPI reads the booking rules of the Cal.com event
type a website widget books on. The widget is named by its public key (vw_…) or its name, url-encoded into the path.
GET
/
v1
/
voice
/
widgets
/
{widget}
/
booking-rules
GetVoiceWidgetBookingRulesAPI reads the booking rules of the Cal.com event
curl --request GET \
--url https://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules', 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://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules",
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://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules"
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://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/voice/widgets/{widget}/booking-rules")
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{
"deployment": {
"agent": "<string>",
"booking_enabled": true,
"books_through_agent": "<string>",
"kind": "<string>",
"name": "<string>",
"widget": "<string>"
},
"event_ref": "<string>",
"provider": "<string>",
"provider_label": "<string>",
"rules": {
"after_buffer_minutes": 123,
"before_buffer_minutes": 123,
"meeting_reminders": {
"edit_url": "<string>",
"reminders": [
{
"all_event_types": true,
"channels": [
"<string>"
],
"minutes_before": 123,
"name": "<string>"
}
],
"status": "<string>"
},
"minimum_notice_minutes": 123,
"working_hours": {
"date_overrides": 123,
"edit_url": "<string>",
"is_default": true,
"schedule_name": "<string>",
"shared": true,
"status": "<string>",
"time_zone": "<string>",
"windows": [
{
"days": [
"<string>"
],
"end_time": "<string>",
"start_time": "<string>"
}
]
}
},
"supported": true
}{
"code": "not_found",
"details": {},
"message": "<string>"
}Authorizations
Response
Success response

