Skip to navigation

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
_idstringOptional
namestringOptional
eventstringOptional

Event key. See Appendix - Webhook events.

urlstringOptional
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

Errors

400
Bad Request Error