ProvidersBuilt-in providers
Plain webhooks
Receive and verify Plain webhooks with Trigger.dev. Check the HMAC-SHA256 signature in plain-request-signature and run a task for each Plain event, filtered on event.type.
webhooks.plain() verifies the HMAC-SHA256 signature Plain sends in plain-request-signature on every request.
import { , } from "@trigger.dev/sdk";
export const plain = ..define({
: "plain",
: .plain(),
});
export const plainEvents = ({
id: "plain-events",
: plain,
: "event.type == 'thread.thread_created'",
: async ({ }) => {
.();
},
});| Setting | Value |
|---|---|
| Source | webhooks.plain() |
| Verification | HMAC-SHA256 in plain-request-signature |
| Credential | Signing secret issued by Plain |
| Event type | event.type |
| Plain docs | Plain webhook docs |
Set up Plain
- Start
trigger devor deploy, then copy the endpoint's Webhook URL from the Webhooks page. - As a workspace admin, view or generate the request signing secret under Settings > Request signing. It is one secret for the whole workspace, so read the existing one if other webhook targets use it.
- Choose Set signing secret on the Trigger.dev endpoint and paste it.
- Add the target under Settings > Webhooks > Add webhook target, with the webhook URL and the events your subscribers need.
- Send a test event from Plain, 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