Generate an Access Token to utilize Hero Health SDKs. Note that this endpoint is only available for server-side requests.
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/access_token \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "access_token": "string" }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/appointment_types?has_availability=true&location_ids=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/v1/locations?appointment_type_ids=string&has_availability=true' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }
curl -i -X GET \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/me \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "id": "string", "name": "string", "sector": "nhs", "write_to_record": true, "ehr_partner": "emis", "ehr_partner_enabled": true, "ehr_partner_settings": { "emis_ip_address": "string", "emis_supplier_id": "string", "emis_username": "string", "emis_orgid": "string", "emis_user_id": "string", "emis_password": "string" }, "custom_slot_to_slot": true, "use_partner_bookable_slots": true, "authenticated_as": { "id": "string", "first_name": "string", "last_name": "string", "email": "string", "external_prescriber_id": "string", "signature": "string", "linked_practitioners_id": "string", "preferences": { … }, "team_memberships": [ … ] }, "js_booking_service": true }
curl -i -X GET \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/me/capabilities \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "capabilities": [ "sms_messaging" ] }
curl -i -X GET \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/me/configuration \
-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/v1/network \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }
curl -i -X GET \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/me/sms-credits \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "sms_credit_count": 0 }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/practitioners?appointment_type_ids=string&has_availability=true&location_ids=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'