import { CreateWebhookResponseBody } from "@simplesagar/vercel/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,
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
secret |
string | ✔️ | The webhook secret used to sign the payload | |
events |
models.CreateWebhookWebhooksEvents[] | ✔️ | The webhooks events | deployment.created |
id |
string | ✔️ | The webhook id | account_hook_GflD6EYyo7F4ViYS |
url |
string | ✔️ | A string with the URL of the webhook | https://my-webhook.com |
ownerId |
string | ✔️ | The unique ID of the team the webhook belongs to | ZspSRT4ljIEEmMHgoDwKWDei |
createdAt |
number | ✔️ | A number containing the date when the webhook was created in in milliseconds | 1567024758130 |
updatedAt |
number | ✔️ | A number containing the date when the webhook was updated in in milliseconds | 1567024758130 |
projectIds |
string[] | ➖ | The ID of the projects the webhook is associated with | [ "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB" ] |