Get appointment by ID
curl --request GET \
--url https://api.maxcare.ai/v2/appointments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://api.maxcare.ai/v2/appointments/{id}"
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Organization-Id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.maxcare.ai/v2/appointments/{id}', 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.maxcare.ai/v2/appointments/{id}",
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>",
"X-Organization-Id: <x-organization-id>"
],
]);
$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.maxcare.ai/v2/appointments/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
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.maxcare.ai/v2/appointments/{id}")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v2/appointments/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Organization-Id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"id": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"scheduledStartDate": "2025-01-20T09:00:00.000Z",
"scheduledEndDate": "2025-01-20T09:30:00.000Z",
"status": "confirmed",
"integrationStatus": "CHECKED_IN",
"isNewPatient": false,
"instanceId": "3a7b9c1d-2e4f-45a6-8b0c-1d2e3f4a5b6c",
"appointmentTypeAbbreviation": "EST",
"appointmentTypeDurationMinutes": 15,
"cancelReasonIntegrationId": "CR00000001",
"cancelReasonName": "Patient cancelled",
"appointmentTypeName": "Injection Visit",
"integrationAppointmentTypeId": "12345",
"reasonForVisit": "Biologic injection follow-up",
"isCosmetic": false,
"patientId": "c56103bc-d39c-46d3-9f31-38dd2b5e05f6",
"patientFirstName": "Sarah",
"patientLastName": "Johnson",
"patientMrn": "MRN-10042",
"providerId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"providerFirstName": "James",
"providerLastName": "Wilson",
"facilityId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"createdAt": "2025-01-15T09:30:00.000Z",
"lastSyncedAt": "2025-01-16T04:12:00.000Z",
"externalId": "<string>",
"syncStatus": "pending",
"lastError": "auth_error",
"retryCount": 0,
"nextRetryAt": "<string>",
"bookingSource": {
"system": "dcc-online-booking",
"bookingReference": "BK-2026-000123",
"campaignId": "google-gbp-flint",
"url": "https://book.dccderm.com/l/flint?utm_source=gbp"
}
}
}{
"code": "bad_request",
"message": "'id' must be a valid UUID",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "unauthorized",
"message": "Invalid or missing API key",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "forbidden",
"message": "Insufficient scope",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "not_found",
"message": "Resource not found",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Maximum 1000 requests per 60 seconds.",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}Appointments
Get appointment by ID
Returns a single appointment by ID. Requires read:appointments scope.
GET
/
appointments
/
{id}
Get appointment by ID
curl --request GET \
--url https://api.maxcare.ai/v2/appointments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://api.maxcare.ai/v2/appointments/{id}"
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Organization-Id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.maxcare.ai/v2/appointments/{id}', 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.maxcare.ai/v2/appointments/{id}",
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>",
"X-Organization-Id: <x-organization-id>"
],
]);
$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.maxcare.ai/v2/appointments/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
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.maxcare.ai/v2/appointments/{id}")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v2/appointments/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Organization-Id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"id": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"scheduledStartDate": "2025-01-20T09:00:00.000Z",
"scheduledEndDate": "2025-01-20T09:30:00.000Z",
"status": "confirmed",
"integrationStatus": "CHECKED_IN",
"isNewPatient": false,
"instanceId": "3a7b9c1d-2e4f-45a6-8b0c-1d2e3f4a5b6c",
"appointmentTypeAbbreviation": "EST",
"appointmentTypeDurationMinutes": 15,
"cancelReasonIntegrationId": "CR00000001",
"cancelReasonName": "Patient cancelled",
"appointmentTypeName": "Injection Visit",
"integrationAppointmentTypeId": "12345",
"reasonForVisit": "Biologic injection follow-up",
"isCosmetic": false,
"patientId": "c56103bc-d39c-46d3-9f31-38dd2b5e05f6",
"patientFirstName": "Sarah",
"patientLastName": "Johnson",
"patientMrn": "MRN-10042",
"providerId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"providerFirstName": "James",
"providerLastName": "Wilson",
"facilityId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"createdAt": "2025-01-15T09:30:00.000Z",
"lastSyncedAt": "2025-01-16T04:12:00.000Z",
"externalId": "<string>",
"syncStatus": "pending",
"lastError": "auth_error",
"retryCount": 0,
"nextRetryAt": "<string>",
"bookingSource": {
"system": "dcc-online-booking",
"bookingReference": "BK-2026-000123",
"campaignId": "google-gbp-flint",
"url": "https://book.dccderm.com/l/flint?utm_source=gbp"
}
}
}{
"code": "bad_request",
"message": "'id' must be a valid UUID",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "unauthorized",
"message": "Invalid or missing API key",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "forbidden",
"message": "Insufficient scope",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "not_found",
"message": "Resource not found",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Maximum 1000 requests per 60 seconds.",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}