CreateWebhookResponseBody
August 18, 2026 ยท View on GitHub
Example Usage
import { CreateWebhookResponseBody } from "@vercel/sdk/models/createwebhookop.js";
let value: CreateWebhookResponseBody = {
secret: "<value>",
events: [
"deployment.created",
],
id: "account_hook_GflD6EYyo7F4ViYS",
url: "https://my-webhook.com",
ownerId: "ZspSRT4ljIEEmMHgoDwKWDei",
createdAt: 1567024758130,
updatedAt: 1567024758130,
projectIds: [
"prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
secret | string | :heavy_check_mark: | The webhook secret used to sign the payload | |
alertRuleIds | string[] | :heavy_minus_sign: | N/A | |
events | models.CreateWebhookWebhooksEvents[] | :heavy_check_mark: | The webhooks events | deployment.created |
id | string | :heavy_check_mark: | The webhook id | account_hook_GflD6EYyo7F4ViYS |
url | string | :heavy_check_mark: | A string with the URL of the webhook | https://my-webhook.com |
ownerId | string | :heavy_check_mark: | The unique ID of the team the webhook belongs to | ZspSRT4ljIEEmMHgoDwKWDei |
createdAt | number | :heavy_check_mark: | A number containing the date when the webhook was created in in milliseconds | 1567024758130 |
updatedAt | number | :heavy_check_mark: | A number containing the date when the webhook was updated in in milliseconds | 1567024758130 |
projectIds | string[] | :heavy_minus_sign: | The ID of the projects the webhook is associated with | [ "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB" ] |