Send Alert
Triggers alerts to configured notification channels through PaySentinel's infrastructure.
POST
/api/alerts🔒 Requires HMAC Authentication
This endpoint allows your WordPress site to send critical notifications to site owners through configured notification channels (Email, Slack, Discord, Teams). All delivery is routed through PaySentinel.
Post Data (Email Alert)
{
"channels": ["EMAIL"],
"message": "PaySentinel Alert: Stripe connection lost on your store!",
"license_key": "XXXX-XXXX-XXXX-XXXX"
}Post Data (Multi-channel)
{
"channels": ["SLACK", "EMAIL"],
"message": "Payment Failure: Order #12345 to Stripe failed after 3 retries.",
"license_key": "XXXX-XXXX-XXXX-XXXX"
}Post Data (All Enabled Channels)
{
"message": "Alert sent to all enabled notification channels",
"license_key": "XXXX-XXXX-XXXX-XXXX"
}Delivery Logic
- Channels: Supported channels are Email, Slack, Discord, and Teams.
- Channel Selection: If a channels array is provided and non-empty, sends only to those channels. If omitted or empty, sends to all enabled notification channels configured in the account.
- Quotas: Every alert checks the user's plan quota. If limits are reached, the request returns appropriate error codes.