curl --request GET \
--url https://api.eka.care/schedule/resolved \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/schedule/resolved"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/schedule/resolved', 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.eka.care/schedule/resolved",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$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.eka.care/schedule/resolved"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
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.eka.care/schedule/resolved")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/schedule/resolved")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"status": 200,
"data": {
"doc_12345": [
{
"schedule_id": "651f0c2b8e4a2d1a2c3b4d5e",
"name": "Dr. Sharma - OPD",
"schedule_slot_config_enabled": false,
"slot_durations": [],
"schedule": {
"2026-09-22": {
"bounds": [
{
"s": "2026-09-22T09:00:00.000+05:30",
"e": "2026-09-22T13:00:00.000+05:30",
"source": "weekly",
"services": [
{
"conf_id": "conf_abc123",
"name": "OPD Consultation",
"modes": [
"clinic"
],
"duration": 15
}
]
}
],
"blocks": []
}
},
"config": {
"overbooking_limit": 2,
"schedule_slot_config_enabled": false,
"slot_durations": []
},
"rules": {
"weekly": {
"1": {
"is_enabled": true,
"bounds": [
{
"s": 900,
"e": 1300,
"conf_ids": [
"conf_abc123"
]
}
]
}
},
"daily": {},
"repeat-weekly": [],
"repeat-daily": [],
"block": []
}
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "failed to resolve schedules"
}Get Resolved Schedule
Overview
Resolves one or more entities’ schedules over a date range into concrete daily availability windows (bounds), any blackout blocks, and — when include_rules=true — the raw underlying rules and config each schedule was resolved from. Also returns each entity’s schedule_id.
curl --request GET \
--url https://api.eka.care/schedule/resolved \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/schedule/resolved"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/schedule/resolved', 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.eka.care/schedule/resolved",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$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.eka.care/schedule/resolved"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
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.eka.care/schedule/resolved")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/schedule/resolved")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"status": 200,
"data": {
"doc_12345": [
{
"schedule_id": "651f0c2b8e4a2d1a2c3b4d5e",
"name": "Dr. Sharma - OPD",
"schedule_slot_config_enabled": false,
"slot_durations": [],
"schedule": {
"2026-09-22": {
"bounds": [
{
"s": "2026-09-22T09:00:00.000+05:30",
"e": "2026-09-22T13:00:00.000+05:30",
"source": "weekly",
"services": [
{
"conf_id": "conf_abc123",
"name": "OPD Consultation",
"modes": [
"clinic"
],
"duration": 15
}
]
}
],
"blocks": []
}
},
"config": {
"overbooking_limit": 2,
"schedule_slot_config_enabled": false,
"slot_durations": []
},
"rules": {
"weekly": {
"1": {
"is_enabled": true,
"bounds": [
{
"s": 900,
"e": 1300,
"conf_ids": [
"conf_abc123"
]
}
]
}
},
"daily": {},
"repeat-weekly": [],
"repeat-daily": [],
"block": []
}
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "failed to resolve schedules"
}Headers
"auth"
IANA timezone for the returned ISO timestamps. Defaults to Asia/Kolkata.
"Asia/Kolkata"
Query Parameters
Comma-separated entity ids to resolve. Deduplicated; max 20 values.
"doc_12345,doc_67890"
Location/clinic id to resolve against.
"c-98765"
One of product-emr, product-widget. Defaults to product-emr.
product-emr, product-widget Range start, ISO datetime. Must be before endTime; range capped at 400 days.
"2026-09-22T00:00:00.000Z"
Range end, ISO datetime.
"2026-09-29T00:00:00.000Z"
Whether to apply blackout blocks when resolving bounds.
true, false When true, includes rules and config per schedule alongside the resolved bounds.
true, false Was this page helpful?

