webhooks.langfuse() verifies the HMAC-SHA256 signature Langfuse sends in x-langfuse-signature on every request.
/trigger/langfuse.ts
Set up Langfuse
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - In the Langfuse project, go to Prompts > Automations > Create Automation. Choose the prompt version event and the actions (created, updated, deleted) your subscribers need, and set the request URL to the webhook URL.
- Copy the signing secret Langfuse shows (it starts with
lf-whsec_), then choose Set signing secret on the Trigger.dev endpoint. - Send a test event from Langfuse, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.

