Bookings

Booking created

Triggered when a new booking is created

postWebhookbooking.created

Headers

webhook-id, string required

The event's id, identical on every retry and equal to id in the body. Store it to ignore a delivery you have already handled.

webhook-timestamp, string required

Unix seconds when this attempt was sent. Reject anything older than five minutes.

webhook-signature, string required

v1,<signature>, per the Standard Webhooks specification: the base64 HMAC-SHA256 of <webhook-id>.<webhook-timestamp>.<raw request body>, keyed with the bytes your whsec_ secret encodes. Verify it with a Standard Webhooks library before processing the event.

Payload

object required
id, string required

Unique identifier for this webhook event

object, 'event' required
type, 'booking.created' required

The event type

livemode, boolean required

false when a test purchase or a test event from the dashboard caused this event, true otherwise

created_at, string date-time required

ISO 8601 timestamp of when the event was created

api_version, string required

API version used to generate the payload

data, object required

object is the resource exactly as its API endpoint returns it.

Example payload

{
  "id": "whev_abc123",
  "object": "event",
  "type": "booking.created",
  "livemode": true,
  "created_at": "2025-01-15T10:30:00Z",
  "api_version": "v1"
}

Response

Return any 2xx status within 5 seconds to acknowledge receipt.

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.