Skip to main content
webhooks.replicate() verifies the Standard Webhooks signature Replicate sends in the webhook-* headers on every request.
/trigger/replicate.ts
To run a subscriber only for some events, add a filter on event.status.

Set up Replicate

  1. Start trigger dev or deploy, then copy the endpoint’s Webhook URL from the Webhooks page.
  2. Replicate has no webhook settings page. Pass the webhook URL as webhook when you create a prediction, with webhook_events_filter set to the events you want (start, output, logs, completed).
  3. Get your signing secret from GET https://api.replicate.com/v1/webhooks/default/secret. It starts with whsec_ and is the same for every webhook on your user or organization. Choose Set signing secret on the Trigger.dev endpoint and paste it.
  4. Create a prediction with the webhook set, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.