Sync one appointment from a scheduling system
Requires a REST API key with appointments:sync on an account HueChat approved for a scheduling system connection. The booking is stored exactly as the system has it - past, same-day, off-grid and outside-hours times, overlapping bookings for one resource, archived services or resources and any lifecycle status (native names, HL7 FHIR R4 Appointment.status or HL7 v2 SIU filler status) - with source sync. Send source_updated_at (the system’s last-modified time) so updates that arrive out of order are ignored. Resources and services match by HueChat id, then the system’s own code (resource_code, service_code), then name; a code HueChat has not seen is added to the catalog. The booking links to an existing contact by contact_id, patient_identifier (the contact’s identifier) or phone. Rejected bookings stay listed in GET /appointments/sync/status until a later version succeeds.
curl --request PUT \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cancellation_reason": "<string>",
"contact_id": 42,
"customer_email": "patient@example.com",
"customer_name": "Example Patient",
"customer_phone": "+966500000000",
"date": "2026-09-22",
"duration_minutes": 21600,
"ends_at": "2026-09-22T13:20:00+03:00",
"external_id": "oracle-main:A-10492",
"notes": "<string>",
"patient_identifier": "MRN-000205",
"resource_code": "Practitioner/482",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_name": "Dr. Sara Ali",
"resource_type": "Doctor",
"service_code": "DENT-CONSULT",
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "Dental consultation",
"source_updated_at": "2026-09-22T09:58:00Z",
"starts_at": "2026-09-22T13:00:00+03:00",
"status": "booked",
"time": "13:00"
}
'import requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}"
payload = {
"cancellation_reason": "<string>",
"contact_id": 42,
"customer_email": "patient@example.com",
"customer_name": "Example Patient",
"customer_phone": "+966500000000",
"date": "2026-09-22",
"duration_minutes": 21600,
"ends_at": "2026-09-22T13:20:00+03:00",
"external_id": "oracle-main:A-10492",
"notes": "<string>",
"patient_identifier": "MRN-000205",
"resource_code": "Practitioner/482",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_name": "Dr. Sara Ali",
"resource_type": "Doctor",
"service_code": "DENT-CONSULT",
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "Dental consultation",
"source_updated_at": "2026-09-22T09:58:00Z",
"starts_at": "2026-09-22T13:00:00+03:00",
"status": "booked",
"time": "13:00"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
cancellation_reason: '<string>',
contact_id: 42,
customer_email: 'patient@example.com',
customer_name: 'Example Patient',
customer_phone: '+966500000000',
date: '2026-09-22',
duration_minutes: 21600,
ends_at: '2026-09-22T13:20:00+03:00',
external_id: 'oracle-main:A-10492',
notes: '<string>',
patient_identifier: 'MRN-000205',
resource_code: 'Practitioner/482',
resource_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
resource_name: 'Dr. Sara Ali',
resource_type: 'Doctor',
service_code: 'DENT-CONSULT',
service_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
service_name: 'Dental consultation',
source_updated_at: '2026-09-22T09:58:00Z',
starts_at: '2026-09-22T13:00:00+03:00',
status: 'booked',
time: '13:00'
})
};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}', 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/external/{externalId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'cancellation_reason' => '<string>',
'contact_id' => 42,
'customer_email' => 'patient@example.com',
'customer_name' => 'Example Patient',
'customer_phone' => '+966500000000',
'date' => '2026-09-22',
'duration_minutes' => 21600,
'ends_at' => '2026-09-22T13:20:00+03:00',
'external_id' => 'oracle-main:A-10492',
'notes' => '<string>',
'patient_identifier' => 'MRN-000205',
'resource_code' => 'Practitioner/482',
'resource_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'resource_name' => 'Dr. Sara Ali',
'resource_type' => 'Doctor',
'service_code' => 'DENT-CONSULT',
'service_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'service_name' => 'Dental consultation',
'source_updated_at' => '2026-09-22T09:58:00Z',
'starts_at' => '2026-09-22T13:00:00+03:00',
'status' => 'booked',
'time' => '13:00'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}"
payload := strings.NewReader("{\n \"cancellation_reason\": \"<string>\",\n \"contact_id\": 42,\n \"customer_email\": \"patient@example.com\",\n \"customer_name\": \"Example Patient\",\n \"customer_phone\": \"+966500000000\",\n \"date\": \"2026-09-22\",\n \"duration_minutes\": 21600,\n \"ends_at\": \"2026-09-22T13:20:00+03:00\",\n \"external_id\": \"oracle-main:A-10492\",\n \"notes\": \"<string>\",\n \"patient_identifier\": \"MRN-000205\",\n \"resource_code\": \"Practitioner/482\",\n \"resource_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"resource_name\": \"Dr. Sara Ali\",\n \"resource_type\": \"Doctor\",\n \"service_code\": \"DENT-CONSULT\",\n \"service_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_name\": \"Dental consultation\",\n \"source_updated_at\": \"2026-09-22T09:58:00Z\",\n \"starts_at\": \"2026-09-22T13:00:00+03:00\",\n \"status\": \"booked\",\n \"time\": \"13:00\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cancellation_reason\": \"<string>\",\n \"contact_id\": 42,\n \"customer_email\": \"patient@example.com\",\n \"customer_name\": \"Example Patient\",\n \"customer_phone\": \"+966500000000\",\n \"date\": \"2026-09-22\",\n \"duration_minutes\": 21600,\n \"ends_at\": \"2026-09-22T13:20:00+03:00\",\n \"external_id\": \"oracle-main:A-10492\",\n \"notes\": \"<string>\",\n \"patient_identifier\": \"MRN-000205\",\n \"resource_code\": \"Practitioner/482\",\n \"resource_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"resource_name\": \"Dr. Sara Ali\",\n \"resource_type\": \"Doctor\",\n \"service_code\": \"DENT-CONSULT\",\n \"service_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_name\": \"Dental consultation\",\n \"source_updated_at\": \"2026-09-22T09:58:00Z\",\n \"starts_at\": \"2026-09-22T13:00:00+03:00\",\n \"status\": \"booked\",\n \"time\": \"13:00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cancellation_reason\": \"<string>\",\n \"contact_id\": 42,\n \"customer_email\": \"patient@example.com\",\n \"customer_name\": \"Example Patient\",\n \"customer_phone\": \"+966500000000\",\n \"date\": \"2026-09-22\",\n \"duration_minutes\": 21600,\n \"ends_at\": \"2026-09-22T13:20:00+03:00\",\n \"external_id\": \"oracle-main:A-10492\",\n \"notes\": \"<string>\",\n \"patient_identifier\": \"MRN-000205\",\n \"resource_code\": \"Practitioner/482\",\n \"resource_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"resource_name\": \"Dr. Sara Ali\",\n \"resource_type\": \"Doctor\",\n \"service_code\": \"DENT-CONSULT\",\n \"service_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_name\": \"Dental consultation\",\n \"source_updated_at\": \"2026-09-22T09:58:00Z\",\n \"starts_at\": \"2026-09-22T13:00:00+03:00\",\n \"status\": \"booked\",\n \"time\": \"13:00\"\n}"
response = http.request(request)
puts response.read_body{
"account_id": 123,
"buffer_after_minutes": 123,
"buffer_before_minutes": 123,
"busy_ends_at": "2023-11-07T05:31:56Z",
"busy_starts_at": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"cancelled_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"confirmed_at": "2023-11-07T05:31:56Z",
"contact_id": 123,
"conversation_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by_ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": 123,
"customer_email": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"duration_minutes": 123,
"ends_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notes": "<string>",
"public_id": "<string>",
"resource_color": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_name": "<string>",
"resource_type": "<string>",
"service_color": "<string>",
"service_currency": "<string>",
"service_description": "<string>",
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "<string>",
"service_price": 123,
"source": "<string>",
"starts_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123
}{
"account_id": 123,
"buffer_after_minutes": 123,
"buffer_before_minutes": 123,
"busy_ends_at": "2023-11-07T05:31:56Z",
"busy_starts_at": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"cancelled_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"confirmed_at": "2023-11-07T05:31:56Z",
"contact_id": 123,
"conversation_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by_ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": 123,
"customer_email": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"duration_minutes": 123,
"ends_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notes": "<string>",
"public_id": "<string>",
"resource_color": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_name": "<string>",
"resource_type": "<string>",
"service_color": "<string>",
"service_currency": "<string>",
"service_description": "<string>",
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "<string>",
"service_price": 123,
"source": "<string>",
"starts_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}Authorizations
Your personal access token where supported, or a scoped API key (hc_…) created inside HueChat at Account → Developer API. Send it as Authorization: Bearer <token>.
Path Parameters
HueChat account ID
The scheduling system's booking identifier
Body
Booking as the scheduling system has it
42
"patient@example.com"
200"Example Patient"
"+966500000000"
"2026-09-22"
1 <= x <= 43200"2026-09-22T13:20:00+03:00"
128"oracle-main:A-10492"
255"MRN-000205"
128"Practitioner/482"
160"Dr. Sara Ali"
80"Doctor"
128"DENT-CONSULT"
160"Dental consultation"
"2026-09-22T09:58:00Z"
"2026-09-22T13:00:00+03:00"
"booked"
"13:00"
Response
Updated, unchanged or stale (see X-HueChat-Sync-Result)
curl --request PUT \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cancellation_reason": "<string>",
"contact_id": 42,
"customer_email": "patient@example.com",
"customer_name": "Example Patient",
"customer_phone": "+966500000000",
"date": "2026-09-22",
"duration_minutes": 21600,
"ends_at": "2026-09-22T13:20:00+03:00",
"external_id": "oracle-main:A-10492",
"notes": "<string>",
"patient_identifier": "MRN-000205",
"resource_code": "Practitioner/482",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_name": "Dr. Sara Ali",
"resource_type": "Doctor",
"service_code": "DENT-CONSULT",
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "Dental consultation",
"source_updated_at": "2026-09-22T09:58:00Z",
"starts_at": "2026-09-22T13:00:00+03:00",
"status": "booked",
"time": "13:00"
}
'import requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}"
payload = {
"cancellation_reason": "<string>",
"contact_id": 42,
"customer_email": "patient@example.com",
"customer_name": "Example Patient",
"customer_phone": "+966500000000",
"date": "2026-09-22",
"duration_minutes": 21600,
"ends_at": "2026-09-22T13:20:00+03:00",
"external_id": "oracle-main:A-10492",
"notes": "<string>",
"patient_identifier": "MRN-000205",
"resource_code": "Practitioner/482",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_name": "Dr. Sara Ali",
"resource_type": "Doctor",
"service_code": "DENT-CONSULT",
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "Dental consultation",
"source_updated_at": "2026-09-22T09:58:00Z",
"starts_at": "2026-09-22T13:00:00+03:00",
"status": "booked",
"time": "13:00"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
cancellation_reason: '<string>',
contact_id: 42,
customer_email: 'patient@example.com',
customer_name: 'Example Patient',
customer_phone: '+966500000000',
date: '2026-09-22',
duration_minutes: 21600,
ends_at: '2026-09-22T13:20:00+03:00',
external_id: 'oracle-main:A-10492',
notes: '<string>',
patient_identifier: 'MRN-000205',
resource_code: 'Practitioner/482',
resource_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
resource_name: 'Dr. Sara Ali',
resource_type: 'Doctor',
service_code: 'DENT-CONSULT',
service_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
service_name: 'Dental consultation',
source_updated_at: '2026-09-22T09:58:00Z',
starts_at: '2026-09-22T13:00:00+03:00',
status: 'booked',
time: '13:00'
})
};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}', 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/external/{externalId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'cancellation_reason' => '<string>',
'contact_id' => 42,
'customer_email' => 'patient@example.com',
'customer_name' => 'Example Patient',
'customer_phone' => '+966500000000',
'date' => '2026-09-22',
'duration_minutes' => 21600,
'ends_at' => '2026-09-22T13:20:00+03:00',
'external_id' => 'oracle-main:A-10492',
'notes' => '<string>',
'patient_identifier' => 'MRN-000205',
'resource_code' => 'Practitioner/482',
'resource_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'resource_name' => 'Dr. Sara Ali',
'resource_type' => 'Doctor',
'service_code' => 'DENT-CONSULT',
'service_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'service_name' => 'Dental consultation',
'source_updated_at' => '2026-09-22T09:58:00Z',
'starts_at' => '2026-09-22T13:00:00+03:00',
'status' => 'booked',
'time' => '13:00'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}"
payload := strings.NewReader("{\n \"cancellation_reason\": \"<string>\",\n \"contact_id\": 42,\n \"customer_email\": \"patient@example.com\",\n \"customer_name\": \"Example Patient\",\n \"customer_phone\": \"+966500000000\",\n \"date\": \"2026-09-22\",\n \"duration_minutes\": 21600,\n \"ends_at\": \"2026-09-22T13:20:00+03:00\",\n \"external_id\": \"oracle-main:A-10492\",\n \"notes\": \"<string>\",\n \"patient_identifier\": \"MRN-000205\",\n \"resource_code\": \"Practitioner/482\",\n \"resource_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"resource_name\": \"Dr. Sara Ali\",\n \"resource_type\": \"Doctor\",\n \"service_code\": \"DENT-CONSULT\",\n \"service_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_name\": \"Dental consultation\",\n \"source_updated_at\": \"2026-09-22T09:58:00Z\",\n \"starts_at\": \"2026-09-22T13:00:00+03:00\",\n \"status\": \"booked\",\n \"time\": \"13:00\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cancellation_reason\": \"<string>\",\n \"contact_id\": 42,\n \"customer_email\": \"patient@example.com\",\n \"customer_name\": \"Example Patient\",\n \"customer_phone\": \"+966500000000\",\n \"date\": \"2026-09-22\",\n \"duration_minutes\": 21600,\n \"ends_at\": \"2026-09-22T13:20:00+03:00\",\n \"external_id\": \"oracle-main:A-10492\",\n \"notes\": \"<string>\",\n \"patient_identifier\": \"MRN-000205\",\n \"resource_code\": \"Practitioner/482\",\n \"resource_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"resource_name\": \"Dr. Sara Ali\",\n \"resource_type\": \"Doctor\",\n \"service_code\": \"DENT-CONSULT\",\n \"service_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_name\": \"Dental consultation\",\n \"source_updated_at\": \"2026-09-22T09:58:00Z\",\n \"starts_at\": \"2026-09-22T13:00:00+03:00\",\n \"status\": \"booked\",\n \"time\": \"13:00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/appointments/external/{externalId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cancellation_reason\": \"<string>\",\n \"contact_id\": 42,\n \"customer_email\": \"patient@example.com\",\n \"customer_name\": \"Example Patient\",\n \"customer_phone\": \"+966500000000\",\n \"date\": \"2026-09-22\",\n \"duration_minutes\": 21600,\n \"ends_at\": \"2026-09-22T13:20:00+03:00\",\n \"external_id\": \"oracle-main:A-10492\",\n \"notes\": \"<string>\",\n \"patient_identifier\": \"MRN-000205\",\n \"resource_code\": \"Practitioner/482\",\n \"resource_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"resource_name\": \"Dr. Sara Ali\",\n \"resource_type\": \"Doctor\",\n \"service_code\": \"DENT-CONSULT\",\n \"service_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_name\": \"Dental consultation\",\n \"source_updated_at\": \"2026-09-22T09:58:00Z\",\n \"starts_at\": \"2026-09-22T13:00:00+03:00\",\n \"status\": \"booked\",\n \"time\": \"13:00\"\n}"
response = http.request(request)
puts response.read_body{
"account_id": 123,
"buffer_after_minutes": 123,
"buffer_before_minutes": 123,
"busy_ends_at": "2023-11-07T05:31:56Z",
"busy_starts_at": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"cancelled_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"confirmed_at": "2023-11-07T05:31:56Z",
"contact_id": 123,
"conversation_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by_ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": 123,
"customer_email": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"duration_minutes": 123,
"ends_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notes": "<string>",
"public_id": "<string>",
"resource_color": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_name": "<string>",
"resource_type": "<string>",
"service_color": "<string>",
"service_currency": "<string>",
"service_description": "<string>",
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "<string>",
"service_price": 123,
"source": "<string>",
"starts_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123
}{
"account_id": 123,
"buffer_after_minutes": 123,
"buffer_before_minutes": 123,
"busy_ends_at": "2023-11-07T05:31:56Z",
"busy_starts_at": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"cancelled_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"confirmed_at": "2023-11-07T05:31:56Z",
"contact_id": 123,
"conversation_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by_ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": 123,
"customer_email": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"duration_minutes": 123,
"ends_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notes": "<string>",
"public_id": "<string>",
"resource_color": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_name": "<string>",
"resource_type": "<string>",
"service_color": "<string>",
"service_currency": "<string>",
"service_description": "<string>",
"service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "<string>",
"service_price": 123,
"source": "<string>",
"starts_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}{
"error": "<string>",
"limit": "<string>"
}
