curl --request GET \
--url https://api.openloophealth.com/v0.1/appointments/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.openloophealth.com/v0.1/appointments/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.openloophealth.com/v0.1/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.openloophealth.com/v0.1/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>"
],
]);
$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.openloophealth.com/v0.1/appointments/{id}"
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.openloophealth.com/v0.1/appointments/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openloophealth.com/v0.1/appointments/{id}")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"status": "open",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"outcome": "completed",
"state": "<string>",
"closed_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"cancel_reason": "<string>",
"notes": "<string>",
"external_refs": [
{
"system": "<string>",
"id": "<string>"
}
],
"state_history": {
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_status": "open",
"from_outcome": "completed",
"to_status": "open",
"to_outcome": "completed",
"reason": "<string>",
"transitioned_at": "2023-11-07T05:31:56Z",
"source": "<string>"
}
],
"after": "<string>",
"before": "<string>"
},
"reschedule_history": {
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_start": "2023-11-07T05:31:56Z",
"previous_end": "2023-11-07T05:31:56Z",
"new_start": "2023-11-07T05:31:56Z",
"new_end": "2023-11-07T05:31:56Z",
"rescheduled_at": "2023-11-07T05:31:56Z",
"source": "<string>"
}
],
"after": "<string>",
"before": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "slot_search.window_too_large",
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "slot_search.window_too_large",
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "slot_search.window_too_large",
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "slot_search.window_too_large",
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Retrieve an appointment
Returns one of your appointments, including the assigned provider and the current status and outcome.
The two audit logs are sub-objects of the appointment, opted into per request: state_history=true adds the status-transition log, reschedule_history=true adds the reschedule chain. Each arrives as a nested { items, after?, before? } page, oldest first — no request_id inside, since the enclosing response already carries one. Omit the flags and neither log is read or returned — this is one request, not three, and you pay only for the parts you ask for.
Neither log has an intrinsic bound, so page them with history_limit plus the matching *_history_cursor.
curl --request GET \
--url https://api.openloophealth.com/v0.1/appointments/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.openloophealth.com/v0.1/appointments/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.openloophealth.com/v0.1/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.openloophealth.com/v0.1/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>"
],
]);
$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.openloophealth.com/v0.1/appointments/{id}"
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.openloophealth.com/v0.1/appointments/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openloophealth.com/v0.1/appointments/{id}")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"status": "open",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"outcome": "completed",
"state": "<string>",
"closed_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"cancel_reason": "<string>",
"notes": "<string>",
"external_refs": [
{
"system": "<string>",
"id": "<string>"
}
],
"state_history": {
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_status": "open",
"from_outcome": "completed",
"to_status": "open",
"to_outcome": "completed",
"reason": "<string>",
"transitioned_at": "2023-11-07T05:31:56Z",
"source": "<string>"
}
],
"after": "<string>",
"before": "<string>"
},
"reschedule_history": {
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_start": "2023-11-07T05:31:56Z",
"previous_end": "2023-11-07T05:31:56Z",
"new_start": "2023-11-07T05:31:56Z",
"new_end": "2023-11-07T05:31:56Z",
"rescheduled_at": "2023-11-07T05:31:56Z",
"source": "<string>"
}
],
"after": "<string>",
"before": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "slot_search.window_too_large",
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "slot_search.window_too_large",
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "slot_search.window_too_large",
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "slot_search.window_too_large",
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Authorizations
Query Parameters
Maximum entries per page, applied to both requested logs. Defaults to 25. There is no declared maximum, so a larger value is accepted rather than rejected, but the page size is capped at 100 — ask for more and you get 100. Values below 1 return 400. Named history_limit rather than limit because one value sizes two nested logs.
x >= 1Response
The appointment, plus whichever history sub-objects you asked for.
An appointment as returned by the retrieve endpoint: the appointment, plus either audit log you opted into. Both sub-objects are absent unless the request asked for them. Returned bare — single-resource responses carry no request_id; that field is on the collection envelopes only.

