webhooks.openai() verifies the Standard Webhooks signature OpenAI sends in the webhook-* headers on every request.
/trigger/openai.ts
Set up OpenAI
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - Add the webhook URL as an endpoint in OpenAI’s webhook settings and subscribe it to the event types your subscribers need.
- Copy the endpoint’s signing secret (it starts with
whsec_), then choose Set signing secret on the Trigger.dev endpoint. - Send a test event from OpenAI, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.

