Create webhook

Create an outgoing Duve Connect webhook configuration for your company.

Required fields include name, event, and url. Optionally configure conditions, data points, headers, brand scoping, and email notifications for failures. For reservationDetailsUpdated, you can set valueNameToCompare to target ETA, ETD, or stayDateChanged.

Headers

AuthorizationstringRequired

Bearer access token. See Authentication endpoint for details.

Request

This endpoint expects an object.
namestringRequired
eventstringRequired

Event key. See Appendix - Webhook events.

urlstringRequired
conditionslist of objectsOptional
dataPointslist of stringsOptional

See Appendix - Webhook data points.

isEnabledbooleanOptionalDefaults to true
headerslist of objectsOptional
brandslist of stringsOptional

Brand ids (ObjectId as string) to limit delivery

valueNameToComparestringOptional

Used for specific events like reservationDetailsUpdated to target ETA/ETD/stayDateChanged

notifyOnWebhookFailuresbooleanOptional
Email notification on webhook failures
failureNotificationEmailslist of stringsOptional
Email addresses to notify on webhook failures

Response

Created successfully
_idstring or null
namestring or null
eventstring or null

Event key. See Appendix - Webhook events.

urlstring or null
conditionslist of objects or null
dataPointslist of strings or null

See Appendix - Webhook data points.

isEnabledboolean or nullDefaults to true
headerslist of objects or null
brandslist of strings or null

Brand ids (ObjectId as string) to limit delivery

valueNameToComparestring or null

Used for specific events like reservationDetailsUpdated to target ETA/ETD/stayDateChanged

notifyOnWebhookFailuresboolean or null
Email notification on webhook failures
failureNotificationEmailslist of strings or null
Email addresses to notify on webhook failures

Errors