Skip to content
MD Live logoMD Live logoMD Live Developer API

Appointment Requests

Request an appointment with a Provider who does not have any availabilities during a specific date/time.

To request an appointment with a provider, make a request to:

POST {server_url}/api/v2/patients/{patient_id}/appointment_requests

Parameter Default
Authorization Bearer {jwt_token}
Accept application/json
Content-type application/json

This request must include a valid User JWT token, please see our documentation.

The following parameters need to be included in the URL of the request:

Attribute Required Description
patient_id true MD Live ID for patient
Attribute Required Description
appointment_request true Parent attribute for appointment_request
↳ provider_id true ID of the requested provider. Needed only when the patient would like to schedule a visit with a specific provider.
↳ chief_complaint true Reason for the appointment
↳ chief_complaint_comments false Any additional description of the reason the patient is making the appointment
↳ contact_number true Preferred phone number to contact the patient
↳ appointment_date true Requested date for appointment
↳ appointment_method true Requested type of appointment for the patient, should be ‘video’ or ‘phone’
↳ preferred_time true Preferred time of appointment. Should be one of:
  • First Available
  • Morning
  • Afternoon
  • Evening
↳ state_abbrev false Requested U.S. state for the appointment request
↳ provider_type_id true ID of provider type being requested
Terminal window
curl -X POST {server_url}/api/v2/patients/{patient_id}/appointment_requests \
-H 'Authorization: Bearer {jwt_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
-d '{
"appointment_request": {
"provider_id": "1",
"chief_complaint": "Depressed",
"chief_complaint_comments": "Have been feeling sad the past couple of weeks",
"contact_number": "888-632-2738",
"appointment_date": "2025-04-01",
"appointment_method": "phone",
"preferred_time": "morning",
"state_abbrev": "FL",
"provider_type_id": "5"
}
}'

The above command returns 200 OK with the following response:

{
"appointment_request": {
"id": 13,
"patient_id": 3,
"provider_id": 1,
"chief_complaint": "Depressed",
"contact_number": "888-632-2738",
"appointment_date": "18-12-20",
"appointment_method": "phone",
"preferred_time": "morning",
"state_abbrev": "FL",
"provider_type_id": "5"
}
}

Cancel a pending appointment request with a Provider.

To cancel a pending appointment request with a provider, make a request to:

POST {server_url}/api/v2/patients/{patient_id}/appointment_requests/{appointment_request_id}/cancel

Parameter Default
Authorization Bearer {jwt_token}
Accept application/json
Content-type application/json

This request must include a valid User JWT token, please see our documentation.

The following parameters need to be included in the URL of the request:

Attribute Required Description
patient_id true MD Live ID for patient
appointment_request_id true Appointment Request ID that is being canceled
Terminal window
curl -X POST {server_url}/api/v2/patients/{patient_id}/appointment_requests/{appointment_request_id}/cancel \
-H 'Authorization: Bearer {jwt_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'

The above command returns 200 OK with the following JSON structured response:

{
"message": "Your appointment request has been cancelled"
}

Remind a Provider with regards to a pending appointment request.

To remind a provider about a pending appointment request, make a request to:

POST {server_url}/api/v2/patients/{patient_id}/appointment_requests/{appointment_request_id}/remind

Parameter Default
Authorization Bearer {jwt_token}
Accept application/json
Content-type application/json

This request must include a valid User JWT token, please see our documentation.

The following parameters need to be included in the URL of the request:

Attribute Required Description
patient_id true MD Live ID for patient
appointment_request_id true Appointment Request ID that is being reminded
Terminal window
curl -X POST {server_url}/api/v2/patients/{patient_id}/appointment_requests/{appointment_request_id}/remind \
-H 'Authorization: Bearer {jwt_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'

The above command returns 200 OK with the following JSON structured response:

{
"message": "The Provider was reminded about your appointment request"
}