Retrieves an appointment by its ID.
API Reference
//
Book an Appointment
Hero Health Public API (1.0.0)
Download OpenAPI description
Languages
Servers
Mock server
https://developer.herohealth.net/_mock/apis/public-api/openapi/
Staging
https://api.staging.htech.app/
Production
https://api.herohealth.net/
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}
- Staginghttps://api.staging.htech.app/v1/appointments/{id}
- Productionhttps://api.herohealth.net/v1/appointments/{id}
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "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 }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}
- Staginghttps://api.staging.htech.app/v1/appointments/{id}
- Productionhttps://api.herohealth.net/v1/appointments/{id}
- curl
- NodeJS
- Ruby
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
}'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments
- Staginghttps://api.staging.htech.app/v1/appointments
- Productionhttps://api.herohealth.net/v1/appointments
- curl
- NodeJS
- Ruby
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
}'Response
application/json
{ "id": "string", "reserved_until": "2019-08-24T14:15:22Z" }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}/book
- Staginghttps://api.staging.htech.app/v1/appointments/{id}/book
- Productionhttps://api.herohealth.net/v1/appointments/{id}/book
- curl
- NodeJS
- Ruby
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
}'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}/cancel
- Staginghttps://api.staging.htech.app/v1/appointments/{id}/cancel
- Productionhttps://api.herohealth.net/v1/appointments/{id}/cancel
- curl
- NodeJS
- Ruby
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
}'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointments/{id}/reschedule
- Staginghttps://api.staging.htech.app/v1/appointments/{id}/reschedule
- Productionhttps://api.herohealth.net/v1/appointments/{id}/reschedule
- curl
- NodeJS
- Ruby
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
}'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/booking_links/{id}
- Staginghttps://api.staging.htech.app/v1/booking_links/{id}
- Productionhttps://api.herohealth.net/v1/booking_links/{id}
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "id": "string", "practice_group_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", "patient_id": "string" }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots/count
- Staginghttps://api.staging.htech.app/v1/slots/count
- Productionhttps://api.herohealth.net/v1/slots/count
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots/count?appointment_type_id=string&location_id=string&practitioner_id=string&start_date=string&end_date=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots/{id}
- Staginghttps://api.staging.htech.app/v1/slots/{id}
- Productionhttps://api.herohealth.net/v1/slots/{id}
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'Response
application/json
{ "id": "string", "practitioner_id": "string", "appointment_type_id": "string", "location_id": "string", "start_time": "2019-08-24T14:15:22Z", "finish_time": "2019-08-24T14:15:22Z" }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots
- Staginghttps://api.staging.htech.app/v1/slots
- Productionhttps://api.herohealth.net/v1/slots
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots?location_id=string&practitioner_id=string&start_date=string&end_date=string&appointment_type_id=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/slots/availability
- Staginghttps://api.staging.htech.app/v1/slots/availability
- Productionhttps://api.herohealth.net/v1/slots/availability
- curl
- NodeJS
- Ruby
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
}'Response
application/json
{ "available": true }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v2/appointments
- Staginghttps://api.staging.htech.app/v2/appointments
- Productionhttps://api.herohealth.net/v2/appointments
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/appointments?page_index=string&page_size=string&order_by=patient_id&order_descending=true&patient_id=string&patient_first_name=string&patient_last_name=string&patient_full_name=string&practitioner_first_name=string&practitioner_last_name=string&practitioner_full_name=string&appointment_template_name=string&location_name=string&has_been_cancelled=true&appointment_source=Hero+patient+led' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v2/automated_messages
- Staginghttps://api.staging.htech.app/v2/automated_messages
- Productionhttps://api.herohealth.net/v2/automated_messages
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/automated_messages?page_index=string&page_size=string&orderBy=createdAt&order_descending=true&recipient_id=string&status=INVALIDATED¬ification_type=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v2/bookinglinks
- Staginghttps://api.staging.htech.app/v2/bookinglinks
- Productionhttps://api.herohealth.net/v2/bookinglinks
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/bookinglinks?page_index=string&page_size=string&order_by=expiry_date&order_descending=true&status=expired&exclude_patient_specific_links=true' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … } ], "count": 0 }