Creates a webhook for the authenticated practice group.
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": "string",
"event_type": "appointment.confirmed",
"signing_key": "string",
"url": "http://example.com",
"headers": {
"property1": "string",
"property2": "string"
}
}'
{ "id": "string", "event_type": "string", "url": "string", "signing_key": "string", "headers": { "property1": "string", "property2": "string" }, "created_at": "string", "updated_at": "string" }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/webhooks?event_type=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }
curl -i -X DELETE \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/webhooks/{id}' \
-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/webhooks/{id}/executions' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }