curl --request POST \
--url https://api.example.com/api/appointments \
--header 'Content-Type: application/json' \
--data '
{
"patient_id": "<string>",
"doctor_id": "<string>",
"date": "<string>",
"time": "<string>",
"duration_minutes": 123,
"reason": "<string>",
"notes": "<string>",
"send_notification": true
}
'{
"id": "<string>",
"patient_id": "<string>",
"patient_name": "<string>",
"doctor_id": "<string>",
"doctor_name": "<string>",
"specialty": "<string>",
"date": "<string>",
"time": "<string>",
"duration_minutes": 123,
"status": "<string>",
"reason": "<string>",
"notes": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Schedule a new medical appointment
curl --request POST \
--url https://api.example.com/api/appointments \
--header 'Content-Type: application/json' \
--data '
{
"patient_id": "<string>",
"doctor_id": "<string>",
"date": "<string>",
"time": "<string>",
"duration_minutes": 123,
"reason": "<string>",
"notes": "<string>",
"send_notification": true
}
'{
"id": "<string>",
"patient_id": "<string>",
"patient_name": "<string>",
"doctor_id": "<string>",
"doctor_name": "<string>",
"specialty": "<string>",
"date": "<string>",
"time": "<string>",
"duration_minutes": 123,
"status": "<string>",
"reason": "<string>",
"notes": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Create a new appointment in the system. The appointment will be created with aDocumentation 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.
scheduled status by default.
scheduled for new appointments)curl -X POST "https://api.saludya.com/api/appointments" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"patient_id": "pat_5x8y2z4a6b",
"doctor_id": "doc_3j5k7m9n1p",
"date": "2026-03-15",
"time": "14:30",
"duration_minutes": 30,
"reason": "Consulta de seguimiento",
"notes": "Paciente reporta dolor en el pecho",
"send_notification": true
}'
{
"id": "apt_9n5p2r6t8v",
"patient_id": "pat_5x8y2z4a6b",
"patient_name": "María González",
"doctor_id": "doc_3j5k7m9n1p",
"doctor_name": "Dr. Carlos Ramírez",
"specialty": "Cardiología",
"date": "2026-03-15",
"time": "14:30",
"duration_minutes": 30,
"status": "scheduled",
"reason": "Consulta de seguimiento",
"notes": "Paciente reporta dolor en el pecho",
"created_at": "2026-03-06T10:30:45Z",
"updated_at": "2026-03-06T10:30:45Z"
}
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": {
"date": "Date must be in the future",
"time": "Time must be in HH:MM format"
}
}
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API token"
}
}
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Patient with ID 'pat_5x8y2z4a6b' not found"
}
}
{
"error": {
"code": "APPOINTMENT_CONFLICT",
"message": "Doctor is not available at the requested time",
"details": {
"conflicting_appointment_id": "apt_7k3m9n2p4q",
"suggested_times": ["15:00", "15:30", "16:00"]
}
}
}
{
"error": {
"code": "INVALID_TIME_SLOT",
"message": "Appointment time must be during doctor's working hours (09:00-17:00)"
}
}