Create a webhook
POST
/api/v1/webhooksSubscribes a public HTTPS URL to one or more events. The signing secret is returned only in this response; store it securely.
Scope: manage:webhooks
Body
urlstringrequiredA public HTTPS URL. Private and internal addresses are rejected.
eventsstring[]requiredEvents to receive. See the Webhooks guide for the list.
curl -X POST "https://calendeur.com/api/v1/webhooks" \
-H "Authorization: Bearer $CALENDEUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://api.example.com/calendeur",
"events": [
"booking.created",
"booking.cancelled"
]
}'Response · 201
{
"id": "wh_3k2",
"object": "webhook",
"url": "https://api.example.com/calendeur",
"events": [
"booking.created",
"booking.cancelled"
],
"active": true,
"last_delivery": null,
"created_at": "2026-10-05T18:30:00.000Z",
"secret": "whsec_…"
}