Create a new webhook endpoint to receive event notifications. Specify the URL and the event types you want to subscribe to. A signing secret will be generated and returned - store it securely.
Event types to subscribe to. Must be non-empty and every value must match a known event type returned by GET /event-types.
[ "appointment.created", "appointment.updated", "form.completed" ]
- Mock serverhttps://api-docs.lobbie.com/_mock/openapi/partner/v2/webhook
- Productionhttps://api-prod.lobbie.com/lobbie/api/partner/v2/webhook
curl -i -X POST \
https://api-docs.lobbie.com/_mock/openapi/partner/v2/webhook \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"active": true,
"eventTypes": [
"appointment.created",
"appointment.updated",
"form.completed"
],
"name": "Production Webhook",
"url": "https://api.example.com/webhooks/lobbie"
}'Webhook endpoint created successfully
Event types this endpoint is subscribed to
[ "appointment.created", "appointment.updated", "form.completed" ]
UTC timestamp of the last failed outbound delivery for this endpoint. Null until the delivery worker records a failure.
UTC timestamp of the last successful outbound delivery for this endpoint. Null until the delivery worker records a success.
Signing secret — only returned on the create response, never on reads. Store it securely the moment it is returned; it cannot be retrieved later.
{ "active": true, "createdAt": "2025-01-15T14:00:00Z", "eventTypes": [ "appointment.created", "appointment.updated", "form.completed" ], "id": 12345, "lastFailureAt": "2025-01-15T14:00:00Z", "lastSuccessAt": "2025-01-15T14:00:00Z", "name": "Production Webhook", "signingSecret": "abc123XYZ...", "updatedAt": "2025-01-15T14:00:00Z", "url": "https://api.example.com/webhooks/lobbie" }