webhooks

Creates a webhook

Changed on

Creates a webhook

post/v1/webhooks

Request

  • Base URL: https://api.vercel.com
  • URL: https://api.vercel.com/v1/webhooks
  • Auth: HTTP bearer

Query parameters

teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Request body

urlstring uri required
eventsstring[] required
projectIdsstring[]

Response

alertRuleIdsstring[]
createdAtnumber required

A number containing the date when the webhook was created in in milliseconds

eventsstring[] required

The webhooks events

idstring required

The webhook id

ownerIdstring required

The unique ID of the team the webhook belongs to

projectIdsstring[]

The ID of the projects the webhook is associated with

secretstring required

The webhook secret used to sign the payload

updatedAtnumber required

A number containing the date when the webhook was updated in in milliseconds

urlstring required

A string with the URL of the webhook

Example response

{
  "createdAt": 1567024758130,
  "events": [
    "deployment.created"
  ],
  "id": "account_hook_GflD6EYyo7F4ViYS",
  "ownerId": "ZspSRT4ljIEEmMHgoDwKWDei",
  "projectIds": [
    "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
  ],
  "updatedAt": 1567024758130,
  "url": "https://my-webhook.com"
}

Changes