curl -X GET "https://api.saludya.com/api/schedules/101" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"id": 101,
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-03-01T14:20:00Z"
}
Retrieve a specific schedule by ID
curl -X GET "https://api.saludya.com/api/schedules/101" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"id": 101,
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-03-01T14:20:00Z"
}
Get detailed information about a specific doctor schedule including its availability status and time configuration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DUVAN100/saludya-api/llms.txt
Use this file to discover all available pages before exploring further.
curl -X GET "https://api.saludya.com/api/schedules/101" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"id": 101,
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-03-01T14:20:00Z"
}
is_available is truestart_time and end_time// Step 1: Get doctor's Monday schedule
const schedule = await fetch('https://api.saludya.com/api/schedules/101').then(r => r.json());
if (!schedule.is_available) {
console.log('Schedule is not available');
return;
}
// Step 2: Check if desired time (10:00) falls within schedule
const desiredTime = '10:00:00';
if (desiredTime >= schedule.start_time && desiredTime < schedule.end_time) {
console.log('Time slot is within schedule');
// Step 3: Check for appointment conflicts (see appointments API)
}
doctor