Skip to main content

In the dashboard

  1. Go to the โ€œEnvironments & API Keysโ€ page in your Trigger.dev dashboard Go to the Environments & API Keys page
  2. Select your endpoint row in the table of endpoints. Select your endpoint
  3. There is a webhook URL in the โ€œAutomatic Refreshโ€ section. Copy this URL. Copy the webhook URL

How to use the webhook URL

Vercel

You can use this webhook URL in your Vercel dashboard, so when a deployment succeeds it automatically refreshes the endpoint.
  1. From your Vercel team dashboard, select โ€œSettingsโ€ Go to your Team's settings
  2. Go to the โ€œWebhooksโ€ page Go to the Webhooks page
  3. Select the โ€œDeployment Succeededโ€ event, your Vercel Project, and paste in our webhook URL. Then โ€œCreate Webhookโ€. Fill in the webhook details
  4. Youโ€™re done! Whenever a deploy succeeds, Vercel will tell us to refresh your endpoint. You're done!

GitHub Actions

You can add a step to the GitHub Action that deploys your app.
.github/workflows/release.yml
- name: ๐Ÿš€ Refresh Trigger.dev Jobs
   env:
      TRIGGER_ENDPOINT_HOOK: ${{ secrets.TRIGGER_ENDPOINT_HOOK }}
   run: |
      curl -X POST $TRIGGER_ENDPOINT_HOOK
You will need to setup the TRIGGER_ENDPOINT_HOOK secret in your GitHub repo. Set it to the webhook URL from the endpoint panel.

Do an HTTP request yourself

Any GET or POST request to the webhook URL will cause a refresh of the Jobs for that endpoint. POST requests donโ€™t need a body. There is no authentication required.