The Pattern
Configure your platform’s outgoing webhook with:| Setting | Value |
|---|---|
| URL | https://api.apialerts.com/event |
| Method | POST |
| Headers | Authorization: Bearer YOUR-API-KEY |
Content-Type: application/json |
Platform Recipes
Step-by-step setup for popular platforms.PostHog
PostHog can forward events to API Alerts using its webhook destination.- Go to Data pipelines > Destinations > New destination
- Select Webhook
- Configure:
- URL:
https://api.apialerts.com/event - Method:
POST - Headers:
- Body:
- URL:
- Choose which PostHog events trigger the webhook
- Save and test
Stripe
Stripe webhooks can notify you of payments, subscriptions, and disputes.- Go to Developers > Webhooks > Add endpoint
- You’ll need a small relay service since Stripe sends its own payload format. The simplest approach:
- Use a Zapier Zap with Stripe as the trigger and API Alerts as the action
- Or write a small serverless function that transforms the Stripe payload and forwards it
Sentry
Sentry can send alerts to API Alerts when errors occur.- Go to Settings > Integrations > WebHooks
- Enable the webhook integration
- Add a webhook URL — Sentry uses its own format, so use a Zapier Zap or a small relay:
- Zapier: Sentry trigger > API Alerts action
- Or: a serverless function that maps
event.titletomessage
Generic Setup
For any platform not listed above:- Look for Webhooks, Notifications, Integrations, or Data pipelines in the platform’s settings
- Add a new webhook with the URL
https://api.apialerts.com/event - Set the
AuthorizationandContent-Typeheaders - Map the platform’s template variables into the JSON body
- Test the webhook