Triggers
Webhooks
Webhooks allow you to subscribe to events from APIs you use.
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Webhooks are a crucial part of API development, allowing for real-time reactions to various events across different systems, such as when a Stripe Payment is made, or when a GitHub issue is created.
Advantages of using Trigger.dev for webhooks
Webhooks can be difficult to work with, especially when developing locally. We make them far easier to use with our Integrations.
- You don’t need to register/unregister for webhooks, we do it for you
- We receive the webhook, then keep trying to send it to you until you receive it. If your server goes down, no problem.
Usage
There are three ways to use webhooks with Trigger.dev:
- Use one of our built-in Integrations, such as GitHub. We’ll take care of registering the webhook for you.
- Use our HTTP endpoints and HTTP triggers to subscribe to any webhooks you want. This is useful if you want to use a service that we don’t have an Integration for.
- Create your own Integration that registers for webhooks.
Example
Github
Was this page helpful?