vercel webhooks
The vercel webhooks command is used to manage webhooks for your Vercel account, providing functionality to list, inspect, create, and delete webhooks. Webhooks allow you to receive HTTP POST requests when events occur in your Vercel account.
For more information about webhooks and their supported events, see the Webhooks documentation.
The vercel webhooks command supports the following subcommands:
list- List all webhooksinspect- Inspect details of a specific webhookcreate- Create a new webhookdelete- Delete a webhook
The vercel webhooks list command lists all webhooks configured for your account.
vercel webhooks listUsing the vercel webhooks list command to list all webhooks.
Use the --json option to output the list as JSON:
vercel webhooks list --jsonUsing the --json option to output webhooks as JSON.
The vercel webhooks inspect command displays detailed information about a specific webhook.
vercel webhooks inspect <id>Using the vercel webhooks inspect command to retrieve information about a webhook.
get remains a supported alias, but prints a deprecation warning. Use inspect for new commands.
Use the --json option to output the webhook details as JSON:
vercel webhooks inspect <id> --jsonUsing the --json option to output webhook details as JSON.
The vercel webhooks create command creates a new webhook for your account.
vercel webhooks create <url> --event <event>Using the vercel webhooks create command to create a new webhook.
At least one event is required when creating a webhook. Use the --event option to specify which events the webhook should listen for. You can specify multiple events by using the option multiple times:
vercel webhooks create https://example.com/webhook --event deployment.created --event deployment.readyCreating a webhook that listens for deployment created and ready events.
By default, webhooks listen to events from all projects in your account. Use the --project option (shorthand -p) to limit the webhook to specific projects. You must provide the project ID (for example, prj_abc123), not the project name. To find a project ID, open the project in the Vercel dashboard, go to Settings → General, or run vercel project inspect <name> in the CLI.
vercel webhooks create https://example.com/webhook --event deployment.created --project prj_abc123Creating a webhook that only listens for events from a specific project.
You can specify multiple projects:
vercel webhooks create https://example.com/webhook --event deployment.created --project prj_abc123 --project prj_def456Creating a webhook that listens for events from multiple projects.
The vercel webhooks delete command deletes a webhook from your account.
vercel webhooks delete <id>Using the vercel webhooks delete command to delete a webhook.
By default, the command prompts for confirmation before deleting the webhook. Use the --yes option to skip the confirmation:
vercel webhooks delete <id> --yesUsing the --yes option to skip the confirmation prompt.
These are options that only apply to the vercel webhooks command.
The --json option can be used with the list and inspect subcommands to output results as JSON:
vercel webhooks list --jsonUsing the vercel webhooks list command with the --json option.
The --event option specifies which events the webhook should listen for when using the create subcommand. This option can be used multiple times to subscribe to multiple events.
vercel webhooks create https://example.com/webhook --event deployment.createdUsing the vercel webhooks create command with the --event option.
See the supported event types for a complete list of available events.
The --project option (shorthand -p) limits the webhook to specific projects when using the create subcommand. Provide the project ID (for example, prj_abc123). You can find it in the project's Settings → General in the dashboard, or by running vercel project inspect <name>. This option can be used multiple times to include multiple projects.
vercel webhooks create https://example.com/webhook --event deployment.created --project prj_abc123Using the vercel webhooks create command with the --project option.
The --yes option can be used with the delete subcommand to skip the confirmation prompt when deleting a webhook.
vercel webhooks delete <id> --yesUsing the vercel webhooks delete command with the --yes option.
The following global options can be passed when using the vercel webhooks command:
For more information on global options and their usage, refer to the options section.
Was this helpful?