Create a webhook endpoint
POST
/v1/webhook-endpointsRegister an HTTPS URL to receive events.
Call this with AIA brief with this endpoint's request, response and auth, ready for a typed client in your language.
Body
urlstringrequiredHTTPS only.eventsstring[]requiredEvent types, or["*"]for all. See Event types.descriptionstring
Try itEdit the fields and copy the request. Nothing is sent from this page.
curl -X POST https://api.daybookhealthcare.com/v1/webhook-endpoints \
-H "Authorization: Bearer $DAYBOOK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"url": "https://example.com/daybook/webhooks",
"events": [
"*"
]
}'Response
idstringUnique id, prefixedwhe_.urlstringeventsstring[]secretstringSigning secret, prefixedwhsec_. Returned only on create.statusstringenabledordisabled.
curl -X POST https://api.daybookhealthcare.com/v1/webhook-endpoints \
-H "Authorization: Bearer $DAYBOOK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"url": "https://example.com/daybook/webhooks",
"events": [
"*"
]
}'{
"id": "whe_01JBXK4R7T2M9P5W3Y6A8C0D1E",
"object": "webhook_endpoint",
"url": "https://example.com/daybook/webhooks",
"events": [
"*"
],
"secret": "whsec_...",
"status": "enabled"
}
