Holiday Created Webhook Event
Use this event when your integration needs to react as soon as a new holiday appears for a location. It is delivered as a JSON webhook payload, carries the full holiday record, and requires the holidays:read scope for the webhook owner.
When this event fires
This event fires when a holiday is created in a location. The webhook owner must hold the holidays:read scope. Treat the delivery as a notification that a new holiday record now exists, then read the affected holiday from the data object in the payload.
Verify and deduplicate the delivery
Check the delivery before acting on it. Verify the signature header, confirm the event type header matches the type in the body, and record the event ID so a repeated delivery can be skipped. Keep the delivery ID and attempt number together: the delivery ID stays the same across retries of one delivery, while the attempt number starts at 1 and increases on each retry. That pairing lets you log retries without mistaking them for new holidays.
Implementation checklist:
- Verify the signature header against the raw request body before parsing or trusting any field.
- Confirm the event type header and the body type agree.
- Store the event ID from the body and skip any ID already processed.
- Log the delivery ID and attempt number for retry tracing.
- Only then process the holiday record in the data object.
The exact header contracts are provided by protected modules schema0001, schema0002, schema0003, schema0004, schema0005 and schema0006.
Payload fields to process
The request body is JSON. Its top-level fields identify the event, the company, and when the event was created, and the data object carries the affected holiday in the same shape as the matching GET endpoint. The type field for this payload is holiday.created, and the API version field identifies the data shape version.
Field map for the holiday record:
- id: identifies the holiday; days of a multi-day holiday can share one ID, with the earliest day representing it in the matching GET endpoint.
- locationId: identifies the location the holiday belongs to.
- name: the holiday name.
- date: the date of this holiday day.
- isHalfDay: whether this is a half-day holiday.
- type: distinguishes a custom holiday from an imported one; imported holidays can only be renamed or made non-recurring.
- recurring: whether the holiday repeats every year.
- multiDayId: present only for a multi-day holiday and shared by every day of it.
- transferredFrom: present only when the holiday fell on a non-working day and was moved to this date.
An optional apiClient object is present only when the change was made through the API, and it identifies the API key that made the change. The exact body contract is provided by protected module schema0008.
Responding and distinguishing related events
A successful handling of the delivery returns a 2XX response. Return success only after the signature check, deduplication check, and holiday processing have completed, so a retry can safely redeliver if processing did not finish. Do not confuse this event with holiday.updated, which covers a later change to an existing holiday, or with a bulk update, which covers many holidays changed at once.
Frequently asked questions
What permission does the webhook owner need for holiday.created?
The webhook owner needs the holidays:read scope for this event to be delivered.
How should duplicate holiday.created deliveries be handled?
Use the event ID from the body, which matches the VT-Event-Id header. It is deterministic for the same change, so storing processed IDs lets you ignore a repeated delivery. Test events are the exception and receive a random ID.
Which headers should be checked before processing the payload?
Verify the VT-Signature header against the raw body, check VT-Event-Type against the body type, and use VT-Delivery-Id with VT-Delivery-Attempt to distinguish a retry of the same delivery from a new delivery.
What does the data object contain?
The data object follows the shape returned by the matching GET endpoint for the affected holiday. Read its location, name, date, half-day flag, type, recurrence, and optional multi-day or transferred-date fields from that object rather than assuming extra fields.
VT-Signature
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Signature | string | Yes | t= ,v1= . "> . For 24 hours after a secret rotation it carries a second v1 entry signed with the previous secret. See Signature verification at the top of this document. |
VT-Webhook-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Webhook-Id | string | Yes | the ID of the webhook the delivery is for. |
VT-Event-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Event-Id | string | Yes | the event ID, the same as id in the body. Use it to skip duplicate deliveries. |
VT-Event-Type
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Event-Type | string | Yes | the event type, the same as type in the body. | Allowed values: $3b |
VT-Delivery-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Delivery-Id | string | Yes | the delivery ID, unique per delivery and kept across retries of the same delivery. |
VT-Delivery-Attempt
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Delivery-Attempt | integer | Yes | the attempt number of this delivery, starting at 1. | 1 <= value |