ProvidersBuilt-in providers
Loops webhooks
Receive and verify Loops webhooks with Trigger.dev. Check the Standard Webhooks signature and run a task for each Loops event, filtered on event.eventName.
webhooks.loops() verifies the Standard Webhooks signature Loops sends in the webhook-* headers on every request.
import { , } from "@trigger.dev/sdk";
export const loops = ..define({
: "loops",
: .loops(),
});
export const loopsEvents = ({
id: "loops-events",
: loops,
: "event.eventName == 'email.delivered'",
: async ({ }) => {
.();
},
});| Setting | Value |
|---|---|
| Source | webhooks.loops() |
| Verification | Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature) |
| Credential | Signing secret issued by Loops |
| Event type | event.eventName |
| Loops docs | Loops webhook docs |
Set up Loops
- Start
trigger devor deploy, then copy the endpoint's Webhook URL from the Webhooks page. - In Loops, go to Settings > Webhooks, add the webhook URL as the endpoint, and select the events 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
testing.testEventfrom the Loops settings page, or use the endpoint's Test tab, and check the endpoint's Deliveries tab. See Verify the connection if nothing arrives.
Was this page helpful?
Last updated
Edit on GitHub