---
title: "webhookEvent Trigger"
sidebarTitle: "webhookEvent"
description: "Trigger a workflow when a webhook event is received"
---
## Usage
```ts
import { webhookEvent, Trigger } from "@trigger.dev/sdk";
new Trigger({
id: "caldotcom-to-slack",
name: "Cal.com To Slack",
on: webhookEvent({
service: "cal.com",
eventName: "BOOKING_CREATED",
filter: {
triggerEvent: ["BOOKING_CREATED"],
},
schema: z.any(),
verifyPayload: {
enabled: true,
header: "X-Cal-Signature-256",
},
}),
run: async (event, ctx) => {},
}).listen();
```
## Options
The name of the service that will be sending the webhook event.
The name of the event that will be sent by the service.
An event filter to apply to the webhook event. See the [event filter
documentation](/guides/event-filters) for more information.
A Zod schema to validate the webhook event payload against. See our [Zod
guide](/guides/zod) for more information.
Verify the payload of the webhook event. Currently only supports sha256 HMAC
signatures.
Whether to verify the payload of the webhook event. Defaults to `false`.
The name of the header that contains the signature to verify the payload
against. e.g. `X-Webhook-Signature`.