# Vercel

> Get a push when a Vercel deployment succeeds or fails, and for any other Vercel webhook event you choose.

Connect your Vercel team with a webhook. Opush pushes the result of each deployment, and shows live progress while it builds.

## Set it up [#set-it-up]

<Steps>
<Step>

### Create the integration in Opush [#create-the-integration-in-opush]

In the app or the web console, add a service integration and pick **Vercel**. Give it a name if you like. Copy the **Payload URL**.

</Step>
<Step>

### Create the webhook in Vercel [#create-the-webhook-in-vercel]

In Vercel, open your team's **Settings › Webhooks** and create a webhook.

- **Events**: pick **Deployment Created**, **Deployment Succeeded**, **Deployment Error** and **Deployment Canceled**. Other events work too.
- **Projects**: choose the projects you want.
- **Endpoint**: the payload URL from Opush.

</Step>
<Step>

### Paste Vercel's secret into Opush [#paste-vercels-secret-into-opush]

Vercel shows a secret after you create the webhook. **It's shown only once**, so copy it now.

Back in Opush, paste it into **Signing secret from the service** on the integration's page and save. Until you do, Opush rejects every event from Vercel.

</Step>
</Steps>

Opush checks the `x-vercel-signature` header on every request with this secret.

## What gets pushed [#what-gets-pushed]

| Vercel event | Subtitle | Message |
|---|---|---|
| Deployment Succeeded | `Deployed` | `production · main · Fix login bug` |
| Deployment Error | `Deploy error` | `preview · feature/login · Fix login bug` |
| Any other event | The event name, like `domain.created` | The project or domain name |

The message has the target (`production` or `preview`), the branch and the commit message. When the project name is different from the integration's name, it's added at the end, for example `production · main · Fix login bug · rocket`.

Tapping the push opens the deployment.

Deployment errors arrive as time-sensitive notifications.

These events are not pushed:

- **Deployment Created**: it only opens the live progress card.
- **Deployment Canceled**: it only closes the card.
- `deployment.ready`, `deployment.promoted`, `deployment.cleanup`, `deployment.rollback` and `deployment.check-rerequested`: they repeat what "Succeeded" already told you, or aren't useful as a push.

## Options [#options]

- **Only push failures**: skip pushes for deployments that succeed.
- **Show progress as a Live Activity** (iPhone and Android apps): when a deployment is created, a live progress card shows how long it has been building. It ends when the deployment succeeds, fails or is canceled. Vercel doesn't send build steps, so the card has no progress bar.

See [Live progress](/docs/push/live-progress) for how cards look on iPhone and Android.

## Troubleshooting [#troubleshooting]

- Nothing arrives: the secret in Opush is probably missing or wrong, and Opush answers `401`. If you didn't keep Vercel's secret, delete the webhook in Vercel, create it again, and paste the new secret into Opush.
- No push for a successful deploy: check that **Only push failures** is off, and that **Deployment Succeeded** is selected.
