API reference//
API Reference
/- Create a Webhook
List Webhooks
Delete a Webhook
List Webhook Executions
Create a Webhook
Create a webhook subscription for the authenticated practice group. Hero will send an HTTP POST request to the specified URL whenever the subscribed event occurs.
Available events: appointment.confirmed, appointment.cancelled, appointment.rescheduled, prescription.issued, patient.added-to-sequence, write-to-record.succeeded, write-to-record.failed.
Optionally provide a signing_key to enable HMAC-SHA256 signature verification on incoming webhook requests. See the webhook security documentation for verification examples.
Security
apiKeyAuth and practiceGroupId
Enum:"appointment.confirmed""appointment.cancelled""appointment.rescheduled""form-submission.created""prescription.issued""patient.medical-record-updated""patient.added-to-sequence""write-to-record.succeeded""write-to-record.failed"
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/webhooks
- Staginghttps://api.staging.htech.app/v1/webhooks
- Productionhttps://api.herohealth.net/v1/webhooks
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/webhooks \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"description": "Notify our system when appointments are confirmed",
"event_type": "appointment.confirmed",
"signing_key": "whsec_your-secret-key-here",
"url": "https://example.com/webhooks/hero"
}'Response
{ "id": "string", "event_type": "string", "url": "string", "signing_key": "string", "headers": { "property1": "string", "property2": "string" }, "created_at": "string", "updated_at": "string" }