Retrieves an appointment by its ID.
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "id": "string", "patient_id": "string", "practitioner_id": "string", "location_id": "string", "appointment_type_id": "string", "duration": 1, "start_time": "2019-08-24T14:15:22Z", "video": false, "in_person": false, "telephone": false, "link_id": "string", "reserved_until": "2019-08-24T14:15:22Z", "booking_confirmed_at": "2019-08-24T14:15:22Z", "can_be_cancelled": false, "can_be_rescheduled": false, "cancellation_policy_hours": 0, "suppress_mail": false }
curl -i -X PUT \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"start_time": "1989-04-11",
"duration": 0,
"practitioner_id": "string",
"suppress_availability_check": true,
"suppress_mail": true
}'
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"appointment_type_id": "string",
"location_id": "string",
"practitioner_id": "string",
"duration": 0,
"start_time": "1989-04-11",
"patient_id": "string",
"billpayer_id": "string",
"reason": "string",
"suppress_mail": true,
"suppress_availability_check": true
}'
{ "id": "string", "reserved_until": "2019-08-24T14:15:22Z" }
curl -i -X PATCH \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}/book' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"reason": "string",
"patient_id": "string",
"billpayer_id": "string",
"suppress_invoice": true,
"suppress_availability_check": true
}'
curl -i -X PATCH \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}/cancel' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"suppress_mail": true,
"suppress_cancellation_policy": true
}'
curl -i -X PATCH \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}/reschedule' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"start_time": "1989-04-11",
"duration": 0,
"practitioner_id": "string",
"suppress_availability_check": true,
"suppress_mail": true
}'
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/booking_links/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "id": "string", "short_link": "string", "active": false, "expiry_date": "2019-08-24T14:15:22Z", "maximum_uses": 0, "number_of_uses": 0, "open_count": 0, "unlimited_use": true, "meta": { "appointment_type_id": [ … ], "location_id": [ … ], "practitioner_id": [ … ], "from_date": "2019-08-24T14:15:22Z", "to_date": "2019-08-24T14:15:22Z" }, "created_at": "2019-08-24T14:15:22Z", "link_name": "string" }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots?appointment_type_id=string&end_date=string&location_id=string&practitioner_id=string&start_date=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots/availability \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"practitioner_id": "string",
"appointment_type_id": "string",
"location_id": "string",
"start_time": "1989-04-11",
"duration": 0
}'
{ "available": true }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots/count?appointment_type_id=string&end_date=string&location_id=string&practitioner_id=string&start_date=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/appointments?appointment_source=Hero%20patient%20led&appointment_template_name=string&has_been_cancelled=true&location_name=string&order_by=patient_id&order_descending=true&page_index=string&page_size=string&patient_first_name=string&patient_full_name=string&patient_id=string&patient_last_name=string&practitioner_first_name=string&practitioner_full_name=string&practitioner_last_name=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/automated_messages?notification_type=string&orderBy=createdAt&order_descending=true&page_index=string&page_size=string&recipient_id=string&status=INVALIDATED' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/bookinglinks?order_by=expiry_date&order_descending=true&page_index=string&page_size=string&status=expired' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }