Skip to main content
POST
Create a webhook
The secret is returned only in this response. Store it now. If you lose it, rotate it.
Each call creates a new webhook with its own secret. To send to another URL with the same secret, add an endpoint instead.

Authorizations

Authorization
string
header
required

Your API key, with the webhooks:manage permission. See Authorization.

Path Parameters

venueId
string
required

Your venue's id. Must be the venue your API key belongs to.

Body

application/json
url
string
required

Your endpoint. Must be https:// on a public address, with no username or password. Redirects are not followed.

Maximum string length: 2048
Example:

"https://example.com/nowbookit"

events
enum<string>[]
required

The events to send. Booking events need reservations:read on your key, gift card events giftcards:read.

Minimum array length: 1
Available options:
booking.created,
booking.updated,
booking.seated,
booking.finished,
booking.cancelled,
giftcard.created,
giftcard.updated,
giftcard.cancelled,
giftcard.redeemed

Response

The webhook and its signing secret.

webhook
object
required

A webhook never includes its secret.

secret
string
required

The signing secret: whsec_ followed by 43 characters. Shown only in this response, so store it now.

Example:

"whsec_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"