Skip to main content
POST
Create Webhook
Subscribe to a new NowBookIt webhook event. NowBookIt will POST a payload to your webhookUrl when the event occurs.
string
required
Your API key
string
required
Must be application/json
string
required
Event to subscribe to. Valid values: BOOKING_CREATED, BOOKING_UPDATED, GIFTCARDS_CREATED, GIFTCARDS_UPDATED, GIFTCARDS_CANCELLED, GIFTCARDS_REDEEMED
string
required
Your endpoint URL where NowBookIt will POST the event payload
string
Auth key sent in the webhook request header
string
Auth token sent alongside securityKey
Example 200 Response

Authorizations

X-API-KEY
string
header
required

Headers

X-API-KEY
string
required

API Key authentication header

Body

application/json
webhookUrl
string<uri>
required

A valid URL that can receive POST requests with NBI events.

Minimum string length: 1
event
string
required

The event that this webhook will subscribe to

Minimum string length: 1
securityKey
string | null

The key used in the webhook authentication.

securityToken
string | null

The token used in the webhook authentication.

Response

200 - application/json

Create new Webhook Events

event
string | null
webhookUrl
string | null
locationId
string | null
errorMessage
string | null